/* ═══════════════════════════════════════════════════════════
   estilos.css — De Vainilla y Limón
   Diseño completo, moderno y artesanal para repostería boutique
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   1. TOKENS DE DISEÑO — VARIABLES CSS
───────────────────────────────────────────────────────── */
:root {
  /* Paleta de color principal (extraída del diseño original) */
  --color-vanilla:      #FFF9E6;   /* Fondo principal — crema vainilla */
  --color-vanilla-warm: #FFF4D6;   /* Crema más cálida */
  --color-cream:        #f8eab6;   /* Encabezado original */
  --color-cream-card:   #f7ebc2;   /* Tarjetas */
  --color-gold:         #edc740;   /* Acento dorado */
  --color-gold-dark:    #d4a800;   /* Dorado oscuro (hover) */
  --color-gold-light:   #fceea0;   /* Dorado claro */
  --color-border:       #ffe798;   /* Borde amarillo cálido */
  --color-brown:        #5d4037;   /* Marrón cálido — texto principal */
  --color-brown-light:  #8d6e63;   /* Marrón claro — subtítulos */
  --color-brown-dark:   #3e2723;   /* Marrón oscuro */
  --color-text:         #3d2b1f;   /* Texto principal oscuro */
  --color-text-muted:   #7a6050;   /* Texto secundario */
  --color-white:        #ffffff;
  --color-bg-alt:       #fffdf5;   /* Fondo alternativo secciones */
  --color-bg-dark:      #2c1a0e;   /* Fondo oscuro footer */
  --color-footer-text:  #e0c89a;

  /* Social */
  --color-instagram: #E1306C;
  --color-facebook:  #1877F2;
  --color-whatsapp:  #25D366;

  /* Estado del formulario */
  --color-error:    #c0392b;
  --color-success:  #27ae60;
  --color-error-bg: #fdf3f2;

  /* Tipografía */
  --font-display:  'Handlee', cursive;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-body:     'Lato', 'Helvetica Neue', Helvetica, sans-serif;

  /* Tamaños */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Bordes */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(61, 43, 31, 0.08), 0 1px 2px rgba(61, 43, 31, 0.04);
  --shadow-md:  0 4px 16px rgba(61, 43, 31, 0.12), 0 2px 6px rgba(61, 43, 31, 0.06);
  --shadow-lg:  0 10px 40px rgba(61, 43, 31, 0.15), 0 4px 12px rgba(61, 43, 31, 0.08);
  --shadow-xl:  0 20px 60px rgba(61, 43, 31, 0.2);
  --shadow-gold: 0 6px 24px rgba(237, 199, 64, 0.35);

  /* Transiciones */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.3s ease;
  --transition-slow:   all 0.5s ease;
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --navbar-height: 72px;
  --container-max: 1200px;
  --section-py:    var(--space-24);
}

/* ─────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-vanilla);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  animation: pageLoad 0.6s ease forwards;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
blockquote { margin: 0; }
cite { font-style: normal; }

/* ─────────────────────────────────────────────────────────
   3. TIPOGRAFÍA
───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--color-brown-dark);
  line-height: 1.2;
  font-weight: 700;
}

p { max-width: 68ch; }

/* ─────────────────────────────────────────────────────────
   4. UTILIDADES
───────────────────────────────────────────────────────── */
.section__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--section-py);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-gold-dark);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-cream));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-brown-dark);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 700px;
  margin-inline: auto;
}

/* ─────────────────────────────────────────────────────────
   5. BOTONES
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-spring);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-brown-dark);
  border-color: var(--color-gold-dark);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(237, 199, 64, 0.5);
  background: linear-gradient(135deg, #f5d836, var(--color-gold));
}
.btn--primary:active {
  transform: translateY(-1px) scale(1.01);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  background: var(--color-white);
  color: var(--color-brown-dark);
  border: none;
  border-radius: var(--radius-full);
}
.btn--small:hover {
  background: var(--color-gold);
  transform: scale(1.05);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
}

.btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--color-white);
  border: none;
}
.btn--instagram:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--color-whatsapp), #128C7E);
  color: var(--color-white);
  border: none;
}
.btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn--submit {
  width: 100%;
  justify-content: center;
  font-size: var(--text-lg);
  padding: 1rem 2rem;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(61, 43, 31, 0.3);
  border-top-color: var(--color-brown-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────
   6. TOAST NOTIFICATION
───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--space-8) + 72px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-brown-dark);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  max-width: min(90vw, 480px);
  text-align: center;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast--success { background: #1a4731; border-left: 4px solid var(--color-success); }
.toast--error   { background: #4a1010; border-left: 4px solid var(--color-error); }

/* ─────────────────────────────────────────────────────────
   7. NAVBAR
───────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding-inline: var(--space-8);
  background: rgba(248, 234, 182, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 231, 152, 0.5);
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(248, 234, 182, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
}

.navbar__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-brown-dark);
  white-space: nowrap;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brown);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--color-brown-dark);
  background: rgba(237, 199, 64, 0.2);
}

.nav-link--cta {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-brown-dark) !important;
  padding: var(--space-2) var(--space-5);
  box-shadow: var(--shadow-gold);
}
.nav-link--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 199, 64, 0.45);
  background: linear-gradient(135deg, #f5d836, var(--color-gold));
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  z-index: 1001;
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-brown-dark);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.active .hamburger__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .hamburger__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────
   8. HERO CAROUSEL
───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  margin-top: 0;
  background: var(--color-brown-dark);
}

.hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(44, 26, 14, 0.72) 0%,
    rgba(44, 26, 14, 0.45) 50%,
    rgba(44, 26, 14, 0.15) 100%
  );
}

.hero-slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-16) var(--space-16) var(--space-20);
  max-width: 700px;
}

.hero-slide__tag {
  display: inline-block;
  background: rgba(248, 234, 182, 0.2);
  border: 1px solid rgba(248, 234, 182, 0.4);
  backdrop-filter: blur(8px);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  width: fit-content;
}

.hero-slide__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  color: var(--color-white);
  font-style: italic;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  margin-bottom: var(--space-4);
}

.hero-slide__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255, 244, 214, 0.9);
  margin-bottom: var(--space-8);
  max-width: 50ch;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-slide__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Prev/Next buttons */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}
.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}
.carousel__btn--prev { left: var(--space-5); }
.carousel__btn--next { right: var(--space-5); }

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-gold);
  width: 24px;
  box-shadow: var(--shadow-gold);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 700;
  animation: bounce 2.4s ease-in-out infinite;
  transition: var(--transition-fast);
}
.hero__scroll-hint:hover { color: var(--color-white); }
.hero__scroll-hint-text { font-size: var(--text-xs); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─────────────────────────────────────────────────────────
   9. REVEAL ANIMATION (IntersectionObserver)
───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   10. ABOUT US — NUESTRA HISTORIA
───────────────────────────────────────────────────────── */
.about {
  background: var(--color-vanilla);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}


.about__lead {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-brown);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
  max-width: none;
}

.about__body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: none;
}

.about__badges {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-block: var(--space-8);
}

.about__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-cream-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  flex: 1;
  min-width: 100px;
  transition: var(--transition-base);
}
.about__badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.about__badge-icon { font-size: var(--text-2xl); }
.about__badge-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-brown-dark);
  text-align: center;
  font-weight: 600;
}

.about__cta { margin-top: var(--space-4); }

/* About visuals */
.about__visuals { position: relative; }

.about__image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-3);
}

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}
.about__img-wrap:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about__img-wrap:hover img { transform: scale(1.05); }

.about__img-wrap--large {
  grid-row: 1 / 3;
  height: 380px;
}

.about__img-wrap--small { height: 180px; }

.about__floater {
  position: absolute;
  bottom: -var(--space-4);
  left: -var(--space-6);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-brown-dark);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-gold);
  bottom: -16px;
  left: -24px;
  max-width: 160px;
  text-align: center;
  line-height: 1.4;
}
.about__floater strong { display: block; font-size: var(--text-xl); font-family: var(--font-serif); }

/* ─────────────────────────────────────────────────────────
   11. PRODUCTOS — ESPECIALIDADES
───────────────────────────────────────────────────────── */
.products {
  background: var(--color-bg-alt);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 231, 152, 0.5);
  transition: var(--transition-base);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__img { transform: scale(1.08); }

.product-card__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}
.product-card:hover .product-card__img-overlay { opacity: 1; }

.product-card__body { padding: var(--space-5); }

.product-card__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-cream));
  border: 1px solid var(--color-border);
  color: var(--color-brown-dark);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-3);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

.products__cta-wrap {
  text-align: center;
}

/* ─────────────────────────────────────────────────────────
   12. GALERÍA
───────────────────────────────────────────────────────── */
.gallery {
  background: var(--color-vanilla);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery__item:hover img { transform: scale(1.07); }

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,26,14,0.7), transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: var(--transition-base);
}
.gallery__item:hover .gallery__item-overlay { opacity: 1; }
.gallery__item-overlay span {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}

.gallery__instagram {
  text-align: center;
  background: linear-gradient(135deg, var(--color-cream-card), var(--color-cream));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.gallery__instagram p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-brown);
  margin-bottom: var(--space-5);
  max-width: none;
  margin-inline: auto;
}

/* ─────────────────────────────────────────────────────────
   13. TESTIMONIOS (3D Coverflow Carousel)
───────────────────────────────────────────────────────── */
.testimonios {
  background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-vanilla-warm) 100%);
  position: relative;
  overflow: hidden;
}

.testimonios__carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--space-4) 0;
}

.testimonios__stage {
  position: relative;
  width: 100%;
  min-height: 380px;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* Circular Arrow Buttons (Visible on PC & Mobile) */
.testim-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.12);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.testim-btn--prev {
  left: 0;
}

.testim-btn--next {
  right: 0;
}

.testim-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-brown-dark);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 24px rgba(230, 168, 34, 0.4);
}

.testim-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Testimonial Cards in 3D Coverflow */
.testimonio-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(500px, 84%);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 231, 152, 0.6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.65s ease,
              filter 0.65s ease,
              box-shadow 0.65s ease;
  user-select: none;
  cursor: pointer;
  will-change: transform, opacity, filter;
}

/* Card States: Active in front, Left & Right behind + blurred, others hidden */
.testim-card--active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0px);
  z-index: 10;
  pointer-events: auto;
  cursor: default;
  box-shadow: 0 20px 48px -10px rgba(44, 26, 14, 0.18), 0 0 0 2px rgba(237, 199, 64, 0.45);
}

.testim-card--prev {
  transform: translate(calc(-50% - 64%), -50%) scale(0.85);
  opacity: 0.52;
  filter: blur(3.5px);
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.testim-card--next {
  transform: translate(calc(-50% + 64%), -50%) scale(0.85);
  opacity: 0.52;
  filter: blur(3.5px);
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.testim-card--prev:hover,
.testim-card--next:hover {
  opacity: 0.78;
  filter: blur(1.5px);
}

.testim-card--hidden-left {
  transform: translate(calc(-50% - 135%), -50%) scale(0.68);
  opacity: 0;
  filter: blur(7px);
  z-index: 1;
  pointer-events: none;
}

.testim-card--hidden-right {
  transform: translate(calc(-50% + 135%), -50%) scale(0.68);
  opacity: 0;
  filter: blur(7px);
  z-index: 1;
  pointer-events: none;
}

/* Card internal elements */
.testimonio-card__stars {
  color: var(--color-gold);
  font-size: var(--text-xl);
  letter-spacing: 2px;
}

.testimonio-card__quote {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  max-width: none;
  font-style: italic;
}

.testimonio-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: auto;
}

.testimonio-card__avatar {
  font-size: var(--text-2xl);
  width: 44px;
  height: 44px;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}

.testimonio-card__name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-brown-dark);
}

.testimonio-card__role {
  font-size: var(--text-sm);
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* Dots navigation */
.testimonios__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.testim-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(184, 115, 51, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testim-dot:hover {
  background: var(--color-gold);
  transform: scale(1.2);
}

.testim-dot.active {
  width: 28px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(230, 168, 34, 0.4);
}

/* ─────────────────────────────────────────────────────────
   14. CONTACTO
───────────────────────────────────────────────────────── */
.contact {
  background: var(--color-vanilla);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: none;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.contact__detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact__detail-icon {
  font-size: var(--text-xl);
  width: 44px;
  height: 44px;
  background: var(--color-cream-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__detail strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-brown-dark);
  margin-bottom: 2px;
}

.contact__detail a,
.contact__detail span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}
.contact__detail a:hover { color: var(--color-gold-dark); }

.contact__social-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Contact Form */
.contact__form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 231, 152, 0.4);
}

.contact-form__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2);
}

.contact-form__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brown);
}

.form-required { color: var(--color-error); margin-left: 2px; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-vanilla);
  transition: var(--transition-base);
  outline: none;
}
.form-input::placeholder { color: #b0a090; }
.form-input:focus {
  border-color: var(--color-gold);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(237, 199, 64, 0.15);
}
.form-input.input-error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}
.form-input.input-error:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12); }

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 600;
  display: none;
  line-height: 1.4;
}
.form-error.visible { display: block; }

.form-char-count {
  font-size: var(--text-xs);
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────
   15. FOOTER
───────────────────────────────────────────────────────── */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-footer-text);
}

.footer__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-16) var(--space-8) var(--space-10);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: var(--space-12);
}

.footer__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 231, 152, 0.3);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-cream);
  margin-bottom: var(--space-2);
  max-width: none;
}
.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  opacity: 0.7;
  max-width: none;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  opacity: 0.8;
  padding-block: var(--space-1);
  transition: var(--transition-fast);
}
.footer__link:hover { opacity: 1; color: var(--color-gold); padding-left: var(--space-2); }

.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__social-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  width: fit-content;
}

.footer__social-btn--instagram { color: #f48fb1; }
.footer__social-btn--instagram:hover { color: var(--color-instagram); transform: translateX(4px); }
.footer__social-btn--facebook  { color: #90caf9; }
.footer__social-btn--facebook:hover  { color: var(--color-facebook); transform: translateX(4px); }
.footer__social-btn--whatsapp  { color: #a5d6a7; }
.footer__social-btn--whatsapp:hover  { color: var(--color-whatsapp); transform: translateX(4px); }

.footer__bottom {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid rgba(255, 231, 152, 0.1);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  opacity: 0.6;
}
.footer__bottom p { max-width: none; }

/* ─────────────────────────────────────────────────────────
   16. FLOATING WHATSAPP BUTTON (FAB)
───────────────────────────────────────────────────────── */
.fab-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-whatsapp), #128C7E);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 500;
  transition: var(--transition-spring);
}
.fab-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* ─────────────────────────────────────────────────────────
   17. RESPONSIVE — TABLET (≤ 1024px)
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .about__visuals { order: -1; }
  .about__image-grid { max-width: 500px; margin-inline: auto; }
  .about__floater { left: 0; }

  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid  { grid-template-columns: repeat(3, 1fr); }
  .testim-card--prev { transform: translate(calc(-50% - 58%), -50%) scale(0.85); }
  .testim-card--next { transform: translate(calc(-50% + 58%), -50%) scale(0.85); }

  .contact__wrapper { grid-template-columns: 1fr; }
  .contact__info { order: 2; }
  .contact__form-wrap { order: 1; }

  .footer__container { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .hero-slide__content { padding-left: var(--space-12); }
}

/* ─────────────────────────────────────────────────────────
   18. RESPONSIVE — MOBILE (≤ 768px)
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  :root { --section-py: var(--space-16); }

  /* Navbar mobile */
  .hamburger { display: flex; }

  .navbar__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    height: fit-content;
    max-height: 450px;
    background: var(--color-cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-20) var(--space-8);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  
  .navbar__nav.nav-open { transform: translateX(0); }

  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border-bottom: 1px solid rgba(255, 231, 152, 0.4);
  }
  .nav-link--cta {
    margin-top: var(--space-4);
    text-align: center;
    border-bottom: none;
  }

  /* Hero mobile */
  .hero-slide__content {
    padding: var(--space-8) var(--space-6);
    justify-content: flex-end;
    padding-bottom: var(--space-20);
    top: unset;
    bottom: 0;
    max-width: 100%;
  }
  .hero-slide__overlay {
    background: linear-gradient(to top, rgba(44,26,14,0.8) 0%, rgba(44,26,14,0.3) 60%, transparent 100%);
  }
  .hero-slide__title { font-size: var(--text-3xl); }
  .hero-slide__subtitle { font-size: var(--text-base); }
  .hero-slide__actions { flex-direction: column; }
  .hero-slide__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll-hint { display: none; }

  .carousel__btn { width: 38px; height: 38px; }

  /* Products */
  .products__grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery__item--wide { grid-column: span 1; }

  /* Testimonios 3D Coverflow — Mobile */
  .testimonios__stage { min-height: 350px; }
  .testimonio-card {
    width: min(390px, 80vw);
    padding: var(--space-6);
  }
  .testim-card--prev {
    transform: translate(calc(-50% - 48%), -50%) scale(0.85);
    opacity: 0.45;
    filter: blur(2.5px);
  }
  .testim-card--next {
    transform: translate(calc(-50% + 48%), -50%) scale(0.85);
    opacity: 0.45;
    filter: blur(2.5px);
  }
  .testim-btn {
    width: 42px;
    height: 42px;
  }

  /* Contact */
  .contact__form-wrap { padding: var(--space-6); }

  /* Footer */
  .footer__container { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__brand { grid-column: auto; }

  .about__badges { justify-content: center; }
  .about__badge { min-width: 80px; }
  .about__img-wrap--large { height: 260px; }
  .about__img-wrap--small { height: 120px; }

  .fab-whatsapp { bottom: var(--space-4); right: var(--space-4); width: 52px; height: 52px; }
}

/* ─────────────────────────────────────────────────────────
   19. RESPONSIVE — SMALL MOBILE (≤ 480px)
───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .hero-slide__tag { display: none; }
  .navbar { padding-inline: var(--space-4); }
  .navbar__brand-name { font-size: var(--text-base); }

  /* Testimonios small mobile */
  .testimonios__stage { min-height: 330px; }
  .testimonio-card {
    width: min(310px, 82vw);
    padding: var(--space-5);
    gap: var(--space-3);
  }
  .testimonio-card__quote {
    font-size: var(--text-sm);
    line-height: 1.55;
  }
  .testim-card--prev {
    transform: translate(calc(-50% - 40%), -50%) scale(0.85);
    opacity: 0.35;
  }
  .testim-card--next {
    transform: translate(calc(-50% + 40%), -50%) scale(0.85);
    opacity: 0.35;
  }
  .testim-btn {
    width: 38px;
    height: 38px;
  }
}

/* ─────────────────────────────────────────────────────────
   20. ACCESIBILIDAD — FOCUS VISIBLE
───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────
   21. PREFERENCIA: REDUCCIÓN DE MOVIMIENTO
───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
