/*
Theme Name: Joyería Florencia
Theme URI: https://joyasflorencia.com
Author: Joyería Florencia
Description: Tema exclusivo para Joyería Florencia. Elegancia, catálogo de productos y checkout por WhatsApp.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joyeria-florencia
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, sans-serif;
  --color-gold: #D4AF37;
  --color-gold-dark: #8B6B23;
  --color-cream: #FFFDF9;
  --color-rose: #F5E1D1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-stone-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
}

/* ========== Navbar ========== */
.jf-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.jf-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .jf-nav-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .jf-nav-inner { padding: 0 2rem; }
}

.jf-nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.jf-logo-img-wrap {
  display: flex;
  align-items: center;
  max-width: 120px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .jf-logo-img-wrap {
    max-width: 140px;
  }
}

.jf-logo-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .jf-logo-img {
    height: 44px !important;
    max-height: 44px !important;
    max-width: 140px !important;
  }
}

.jf-logo-img-footer {
  height: 48px;
  max-width: 140px;
  object-fit: contain;
}

.jf-logo-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 500;
}

.jf-logo-name {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--color-gold-dark);
  font-style: italic;
}

.jf-nav-links {
  display: none;
}

@media (min-width: 768px) {
  .jf-nav-links {
    display: flex;
    gap: 2rem;
  }
}

.jf-nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-stone-600);
  text-decoration: none;
  transition: color 0.2s;
}

.jf-nav-links a:hover {
  color: var(--color-gold);
}

.jf-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-gold-dark);
  position: relative;
  transition: color 0.2s;
}

.jf-cart-btn:hover {
  color: var(--color-gold);
}

.jf-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 9999px;
  text-align: center;
}

.jf-menu-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--color-gold-dark);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .jf-menu-toggle { display: none; }
}

.jf-mobile-menu {
  display: none;
  background: var(--color-cream);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 0.5rem 1rem 1.5rem;
}

.jf-mobile-menu.is-open {
  display: block;
}

.jf-mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-stone-600);
  text-decoration: none;
}

.jf-mobile-menu a:hover {
  color: var(--color-gold);
}

/* ========== Hero ========== */
.jf-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(245, 225, 209, 0.2);
}

.jf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.jf-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.jf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,253,249,0.4), transparent, var(--color-cream));
}

.jf-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.jf-hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.jf-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-serif);
  color: var(--color-gold-dark);
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.jf-hero-title em {
  font-style: italic;
}

.jf-hero-desc {
  font-size: 1.125rem;
  color: var(--color-stone-600);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .jf-hero-desc { font-size: 1.25rem; }
}

.jf-hero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .jf-hero-btns { flex-direction: row; }
}

.jf-btn-primary {
  display: inline-block;
  background: var(--color-gold);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.2);
}

.jf-btn-primary:hover {
  background: var(--color-gold-dark);
}

.jf-btn-secondary {
  display: inline-block;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.875rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.jf-btn-secondary:hover {
  background: var(--color-gold);
  color: white;
}

.jf-hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(212,175,55,0.5), transparent);
}

/* ========== Catalog ========== */
.jf-catalog {
  padding: 6rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.jf-catalog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.jf-catalog-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.jf-catalog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-serif);
  color: var(--color-gold-dark);
  margin: 0 0 1.5rem;
}

.jf-catalog-divider {
  width: 6rem;
  height: 1px;
  background: rgba(212, 175, 55, 0.3);
  margin: 0 auto 2.5rem;
}

.jf-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.jf-cat-btn {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  color: var(--color-stone-400);
  transition: all 0.3s;
}

.jf-cat-btn:hover {
  color: var(--color-stone-600);
}

.jf-cat-btn.is-active {
  border-bottom-color: var(--color-gold);
  color: var(--color-gold);
}

.jf-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .jf-products-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .jf-products-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.jf-product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(212, 175, 55, 0.05);
  transition: box-shadow 0.5s;
}

.jf-product-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.jf-product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.jf-product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.jf-product-card:hover .jf-product-image-wrap img {
  transform: scale(1.1);
}

.jf-product-add {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--color-gold-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(3rem);
  opacity: 0;
  transition: all 0.3s;
}

.jf-product-card:hover .jf-product-add {
  transform: translateY(0);
  opacity: 1;
}

.jf-product-add:hover {
  background: var(--color-gold);
  color: white;
}

.jf-product-body {
  padding: 1.5rem;
}

.jf-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.jf-product-cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  font-weight: 700;
  text-transform: uppercase;
}

.jf-product-price {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-gold-dark);
}

.jf-product-name {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  color: var(--color-stone-800);
  margin: 0 0 0.5rem;
}

.jf-product-card:hover .jf-product-name {
  color: var(--color-gold);
}

.jf-product-desc {
  font-size: 0.75rem;
  color: var(--color-stone-500);
  font-weight: 300;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Features ========== */
.jf-features {
  background: rgba(245, 225, 209, 0.2);
  padding: 5rem 1rem;
}

.jf-features-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .jf-features-inner { grid-template-columns: repeat(3, 1fr); }
}

.jf-feature-title {
  font-size: 1.875rem;
  font-family: var(--font-serif);
  color: var(--color-gold-dark);
  font-style: italic;
  margin: 0 0 1rem;
}

.jf-feature-heading {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-stone-800);
  margin: 0 0 1rem;
}

.jf-feature-text {
  font-size: 0.875rem;
  color: var(--color-stone-500);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

/* ========== Footer ========== */
.jf-footer {
  background: var(--color-stone-900);
  color: var(--color-stone-400);
  padding: 4rem 1rem;
  margin-top: auto;
}

.jf-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .jf-footer-inner { grid-template-columns: repeat(4, 1fr); }
}

.jf-footer-logo .jf-logo-label {
  color: var(--color-gold);
}

.jf-footer-logo .jf-logo-name {
  color: white;
  font-size: 1.5rem;
}

.jf-footer-about {
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 1.5rem 0;
}

.jf-footer-social {
  display: flex;
  gap: 1rem;
}

.jf-footer-social a {
  color: inherit;
  transition: color 0.2s;
}

.jf-footer-social a:hover {
  color: var(--color-gold);
}

.jf-footer h4 {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
}

.jf-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jf-footer ul li {
  margin-bottom: 1rem;
}

.jf-footer ul li a,
.jf-footer-contact span {
  font-size: 0.875rem;
  font-weight: 300;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.jf-footer ul li a:hover {
  color: var(--color-gold);
}

.jf-footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.jf-footer-contact .icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.jf-footer-bottom {
  max-width: 80rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ========== Cart overlay ========== */
.jf-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.jf-cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.jf-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  background: var(--color-cream);
  box-shadow: -10px 0 25px rgba(0,0,0,0.1);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.jf-cart-panel.is-open {
  transform: translateX(0);
}

.jf-cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jf-cart-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--color-gold-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jf-cart-close {
  background: none;
  border: none;
  color: var(--color-stone-400);
  cursor: pointer;
  padding: 0.25rem;
}

.jf-cart-close:hover {
  color: var(--color-gold);
}

.jf-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.jf-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  min-height: 200px;
}

.jf-cart-empty-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(245, 225, 209, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.jf-cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.jf-cart-item-image {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.jf-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jf-cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-stone-800);
  margin: 0 0 0.25rem;
}

.jf-cart-item-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
}

.jf-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  width: fit-content;
}

.jf-cart-item-qty button {
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  padding: 0.25rem;
}

.jf-cart-item-qty button:hover {
  color: var(--color-gold-dark);
}

.jf-cart-item-qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.jf-cart-footer {
  padding: 1.5rem;
  background: white;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.jf-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.jf-cart-subtotal span:last-child {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-gold-dark);
}

.jf-cart-whatsapp {
  display: block;
  width: 100%;
  background: var(--color-gold);
  color: white;
  padding: 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.2);
}

.jf-cart-whatsapp:hover {
  background: var(--color-gold-dark);
  color: white;
}

.jf-cart-disclaimer {
  font-size: 10px;
  color: var(--color-stone-400);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* SVG icons inline sizes */
.jf-icon { width: 24px; height: 24px; }
.jf-icon-sm { width: 18px; height: 18px; }
.jf-icon-lg { width: 32px; height: 32px; }
