/* ============================================================
   Homeopatitas — Hoja de estilos principal
   Paleta: carbón #231F20 · crema #FCFAF8 · naranja #512581
   ============================================================ */

:root {
  --ink: #231F20;
  --ink-soft: #3A322C;
  --cream: #FCFAF8;
  --sand: #F6EEE4;
  --line: #E7E0D8;
  --muted: #8A7F75;
  --accent: #512581;
  --accent-dark: #3E1C64;
  --green: #5E7D4E;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(35, 31, 32, 0.08);
  --font-head: "Epilogue", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Anton", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* El atributo hidden siempre gana, aunque el elemento tenga display propio */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }

.section-head p { color: var(--muted); max-width: 520px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
  font-family: var(--font-body);
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-sm { padding: 11px 18px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}

.link-arrow:hover { text-decoration: underline; }

/* ---------- Barra de navegación flotante (estilo cápsula oscura) ---------- */
.navbar-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 130;
  padding: 0 max(14px, 2.2vw);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 20px;
  background: var(--ink);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(35, 31, 32, 0.28);
}

.navbar .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.navbar .logo img { height: 60px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }

.main-nav > li { position: relative; }

/* Entradas que solo aparecen en el menú móvil (en escritorio viven en .header-cta) */
.main-nav > li.only-mobile { display: none; }

.main-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #EDE7E0;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active { background: rgba(255, 255, 255, 0.09); color: #fff; }

.caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.has-dropdown.open .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 230px;
  background: #2E2723;
  border: 1px solid #453B34;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* Puente invisible para que el hover no se corte entre la barra y el menú */
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #EDE7E0;
}

.dropdown a:hover { background: rgba(81, 37, 129, 0.18); color: #fff; }

.dropdown .dropdown-sep {
  border-top: 1px solid #453B34;
  margin: 8px 6px;
}

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 3;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Banner principal animado (estilo escaparate SVG) ---------- */
.hero-banner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #7C1F3F;
  padding: 130px 20px 48px;
  text-align: center;
  color: #fff;
}

.hero-mandala-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-mandala {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(112vh, 960px);
  height: auto;
  aspect-ratio: 1;
  color: #000;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: swayShape 20s ease-in-out infinite;
}

.hero-mandala.on { opacity: 0.13; }

/* Giro completo durante la transición (la propiedad rotate se suma al transform) */
.hero-mandala.burst { animation: swayShape 20s ease-in-out infinite, burstSpin 1.15s cubic-bezier(0.65, 0, 0.35, 1); }

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes swayShape {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}
@keyframes burstSpin { from { rotate: 0deg; } to { rotate: 360deg; } }

.hero-wipe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  transform: scale(0);
  z-index: 5;
  pointer-events: none;
}

.hero-wipe.on {
  transform: scale(42);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.3, 1);
}

.hero-stage { position: relative; z-index: 4; width: 100%; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 8.5vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  color: #FF5A1F;
  margin: 0 auto 8px;
}

.hero-figure {
  position: relative;
  width: min(440px, 74vw);
  margin: 0 auto;
}

.hero-figure .main {
  width: 66%;
  margin: 0 auto;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.38));
  animation: floaty 5.6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.3deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

.badge-spin {
  position: absolute;
  left: -7%;
  top: 4%;
  width: 33%;
  height: auto;
  animation: spinSlow 16s linear infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.sparkle {
  position: absolute;
  color: #fff;
  animation: twinkle 2.8s ease-in-out infinite;
}

.sparkle svg { width: 100%; height: auto; display: block; }

.sparkle.s1 { left: 2%; top: 55%; width: 30px; animation-delay: 0s; }
.sparkle.s2 { right: -3%; top: 18%; width: 24px; animation-delay: 0.7s; }
.sparkle.s3 { right: 4%; bottom: 16%; width: 34px; animation-delay: 1.4s; }
.sparkle.s4 { left: 14%; top: 6%; width: 20px; animation-delay: 2.1s; }

@keyframes twinkle {
  0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.15) rotate(30deg); opacity: 1; }
}

.hero-peek {
  position: absolute;
  top: 50%;
  width: clamp(150px, 15vw, 250px);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  opacity: 0.95;
  transition: transform 0.3s;
}

.hero-peek img { width: 100%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.3)); }

.hero-peek.prev { left: -65px; transform: translateY(-50%) rotate(-7deg); }
.hero-peek.next { right: -65px; transform: translateY(-50%) rotate(7deg); }

.hero-peek.prev:hover { transform: translateY(-50%) rotate(-7deg) scale(1.05); }
.hero-peek.next:hover { transform: translateY(-50%) rotate(7deg) scale(1.05); }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-banner .hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.hero-banner .hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.hero-banner .hero-dots button.active { background: #fff; width: 26px; border-radius: 999px; }

/* Animación de entrada del contenido al cambiar de producto */
.pop { animation: popIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

@keyframes popIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-figure .main.pop { animation: popFloat 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both, floaty 5.6s ease-in-out 0.7s infinite; }

@keyframes popFloat {
  from { opacity: 0; transform: translateY(34px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Flechas circulares (carruseles) ---------- */
.hero-arrows { display: flex; gap: 10px; }

.circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.circle-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Carrusel horizontal ---------- */
.carousel-wrap { position: relative; }

.carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Tarjeta de producto ---------- */
.product-card {
  width: 270px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.product-card .thumb { position: relative; display: block; }

.product-card .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge.green { background: var(--green); border-color: var(--green); color: #fff; }

.product-card .body { padding: 18px 20px 22px; }

.product-card .cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card h3 { font-size: 1.1rem; margin-bottom: 10px; }

.product-card .link-arrow { font-size: 0.88rem; }

/* Grid de productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-grid .product-card { width: auto; }

/* ---------- Filtros (pills) ---------- */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tabs button {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-tabs button:hover { border-color: var(--accent); color: var(--accent-dark); }

.filter-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Sección Tradición ---------- */
.tradition {
  position: relative;
  background: var(--ink) url("../img/tradicion.svg") center / cover no-repeat;
  color: var(--cream);
  padding: 110px 0;
}

.tradition-inner { max-width: 560px; }

.tradition h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }

.tradition p { color: #C9C0B7; margin-bottom: 16px; }

.tradition .kicker { color: var(--accent); }

.tradition .btn { margin-top: 14px; }

/* ---------- Sección Comunidad ---------- */
.community .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.community img { border-radius: 28px; box-shadow: var(--shadow); }

.community h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }

.community p { color: var(--muted); margin-bottom: 16px; }

.stats {
  display: flex;
  gap: 36px;
  margin: 26px 0 30px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
}

.stat span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Tarjeta de guía ---------- */
.guide-card {
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.guide-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.guide-card .body { padding: 18px 20px 22px; }

.guide-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}

.chip.green { background: #EAF1E6; color: var(--green); }

.guide-card h3 { font-size: 1.05rem; margin-bottom: 12px; }

/* ---------- Noticias ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.news-card .body { padding: 20px 22px 24px; }

.news-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.news-card h3 { font-size: 1.12rem; margin-bottom: 12px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.newsletter .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }

.newsletter p { color: var(--muted); margin-bottom: 8px; }

.newsletter-form { display: flex; flex-direction: column; gap: 14px; }

.newsletter-form .row { display: flex; gap: 10px; }

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  min-width: 0;
}

.newsletter-form input[type="email"]:focus { outline: 2px solid var(--accent); border-color: transparent; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
}

.consent input { margin-top: 3px; accent-color: var(--accent); }

.spin-decor {
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  opacity: 0.35;
  animation: spinSlow 24s linear infinite;
  pointer-events: none;
}

.form-note { font-size: 0.85rem; font-weight: 600; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9C0B7;
  padding: 64px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; }

.footer-brand p { max-width: 300px; margin-bottom: 18px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #4A423C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.site-footer h4 {
  color: var(--cream);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact strong { color: var(--cream); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid #3A322C;
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.hashtag { color: var(--accent); font-weight: 700; }

/* ---------- Hero de páginas internas ---------- */
.page-hero {
  background: var(--sand);
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }

.page-hero p { color: var(--muted); max-width: 640px; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.breadcrumb a:hover { color: var(--accent); }

/* ---------- Página Nosotros ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.about-block:last-child { margin-bottom: 0; }

.about-block img { border-radius: 28px; box-shadow: var(--shadow); }

.about-block h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }

.about-block p { color: var(--muted); margin-bottom: 14px; }

.about-block.reverse .media { order: 2; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.value-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }

.value-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Página Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--ink);
  color: #C9C0B7;
  border-radius: var(--radius);
  padding: 36px 32px;
}

.contact-info-card h3 { color: var(--cream); margin-bottom: 20px; font-size: 1.3rem; }

.contact-info-card li { margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; }

.contact-info-card .footer-social { margin-top: 26px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: grid;
  gap: 18px;
}

.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.alert.ok { background: #EAF1E6; color: var(--green); border: 1px solid #CBDDC2; }
.alert.error { background: #F7E8E8; color: #A84A4A; border: 1px solid #E8CFCF; }

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .header-cta .hide-md { display: none; }
  .main-nav > li > a { padding: 9px 10px; font-size: 0.88rem; }
}

/* Con dos pills a la derecha, compactarlos para que no toquen el logo centrado */
@media (max-width: 1100px) {
  .header-cta { gap: 8px; }
  .header-cta .btn-sm { padding: 9px 13px; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .header-cta { display: none; }

  .navbar { justify-content: flex-start; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 130px 8% 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: -1;
    overflow-y: auto;
  }

  .nav-open .main-nav { transform: translateX(0); }

  .main-nav > li { width: 100%; }

  .main-nav > li.only-mobile { display: block; }

  .main-nav > li > a {
    width: 100%;
    justify-content: space-between;
    font-size: 1.15rem;
    padding: 14px 10px;
    color: #fff;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 18px;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; visibility: visible; }

  .hero-peek { display: none; }

  .badge-spin { left: -12%; top: 0; width: 38%; }

  .hero-banner { padding-top: 120px; }

  .community .grid-2,
  .about-block,
  .newsletter .container,
  .contact-grid { grid-template-columns: 1fr; }

  .about-block.reverse .media { order: 0; }

  .news-grid { grid-template-columns: 1fr; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .values-grid { grid-template-columns: 1fr; }

  .section { padding: 52px 0; }

  .page-hero { padding-top: 130px; }
}

@media (max-width: 560px) {
  .navbar { min-height: 66px; }
  .navbar .logo img { height: 48px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card .body { padding: 14px 14px 18px; }
  .contact-form .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form .row { flex-direction: column; }
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

/* ============================================================
   Secciones estilo escaparate (home)
   ============================================================ */

/* ---------- Panel crema con carrusel de productos ---------- */
.panel-carousel { padding: 26px max(14px, 2.2vw) 0; }

.panel-inner { background: var(--sand); border-radius: 26px; padding: 56px 48px 42px; }

.cat-tabs {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.cat-tabs button {
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.5;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.cat-tabs button:hover { opacity: 0.85; }
.cat-tabs button.active { opacity: 1; border-color: var(--accent); }

.prod-track { gap: 30px; }

.prod-slide { width: 264px; text-align: center; transition: transform 0.25s; }
.prod-slide:hover { transform: translateY(-6px); }

.prod-fig {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 310px;
  margin-bottom: 18px;
}

/* La mancha es una huella de animal: se agranda respecto a la estrella que
   había antes porque la almohadilla queda detrás del producto y, a 250px,
   sólo asomaban los bordes. A 320px los dedos se ven por encima y a los
   lados sin invadir la tarjeta contigua (264px de ancho). */
.prod-fig .splash {
  position: absolute;
  width: 320px;
  height: 320px;
  color: #E9DECB;
  transition: color 0.45s;
}

.prod-fig img {
  position: relative;
  height: 92%;
  width: auto;
  filter: drop-shadow(0 26px 20px rgba(35, 31, 32, 0.25));
}

/* Solo el producto centrado se anima y enciende su mancha de color */
.prod-slide.active .splash {
  color: var(--splash, var(--accent));
  animation: splashWobble 9s ease-in-out infinite;
}

.prod-slide.active .prod-fig img {
  animation: rockProd 5.5s ease-in-out infinite;
}

@keyframes rockProd {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-9px); }
}

@keyframes splashWobble {
  0%, 100% { transform: rotate(-9deg) scale(1); }
  50% { transform: rotate(11deg) scale(1.06); }
}

.prod-slide h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin-bottom: 12px;
}

.checks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.check {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.check i {
  font-style: normal;
  background: #4C9A3F;
  color: #fff;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex: 0 0 auto;
}

.carousel-pill-wrap { display: flex; justify-content: center; margin-top: 30px; }

.carousel-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  border-radius: 999px;
  padding: 10px 12px;
}

.pill-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #3A322C;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.pill-arrow:hover { background: var(--accent); }

.pill-dots { display: flex; gap: 7px; }

.pill-dots span { width: 8px; height: 8px; border-radius: 50%; background: #5A4F47; transition: background 0.2s, width 0.2s; }
.pill-dots span.active { background: #fff; width: 22px; border-radius: 999px; }

.carousel-pill .btn { margin-left: 6px; }

/* ---------- Palabras gigantes ---------- */
.big-words { position: relative; padding: 100px 20px; text-align: center; overflow: hidden; }

.giant-words { display: flex; flex-direction: column; gap: 4px; }

.giant-words span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 0.98;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.22s;
  cursor: default;
}

.giant-words span:hover,
.giant-words .hl { color: var(--accent); }

.tilt-card { --rot: 0deg; position: absolute; width: clamp(150px, 17vw, 260px); z-index: 2; transform: rotate(var(--rot)); }
.tilt-card .blob { width: 100%; position: absolute; inset: 0; }
.tilt-card img { position: relative; width: 72%; margin: 14% auto 0; }
.tilt-left { left: -40px; top: 40px; --rot: -14deg; }
.tilt-right { right: -40px; bottom: 30px; --rot: 12deg; }

/* Posición alterna de las esquinas (cambia según la palabra activa) */
.big-words.alt .tilt-left { top: auto; bottom: 40px; --rot: -10deg; }
.big-words.alt .tilt-right { bottom: auto; top: 40px; --rot: 10deg; }

/* Entrada con rebote al cambiar de palabra */
.pop-tilt { animation: tiltPop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both; }

@keyframes tiltPop {
  from { opacity: 0; transform: rotate(var(--rot)) scale(0.55); }
  to { opacity: 1; transform: rotate(var(--rot)) scale(1); }
}

/* ---------- Bloques imagen + texto con titulo gigante ---------- */
.feature-block { padding: 60px 0 30px; overflow: hidden; }

.feature-giant {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 0.95;
  position: relative;
  z-index: 2;
  margin-bottom: -0.45em;
}

.feature-block.reverse .feature-giant { text-align: right; }

.feature-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.feature-block.reverse .feature-row { grid-template-columns: 1fr 1.25fr; }
.feature-block.reverse .feature-media { order: 2; }

.feature-media { position: relative; }
.feature-media .photo { border-radius: 24px; }

.badge-rot {
  position: absolute;
  top: -46px;
  right: -26px;
  width: 130px;
  height: 130px;
  animation: spinSlow 14s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.feature-copy p { color: var(--ink-soft); margin-bottom: 22px; max-width: 430px; }

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; }

/* ---------- Titulos gigantes centrados + tarjetas de colores ---------- */
.section-giant {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 22px;
}

.center-cta { display: flex; justify-content: center; margin-bottom: 36px; }

.cards-section { padding: 90px 0 60px; }

.color-cards-wrap { padding: 0 max(14px, 2.2vw); }
.color-cards { gap: 26px; padding-bottom: 6px; }
.color-cards-wrap .center-cta { margin: 28px 0 0; }

.color-card {
  width: 320px;
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 22px;
  padding: 14px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.color-card .media { position: relative; width: 100%; }

/* Mancha oscura que asoma detrás de la imagen y gira al pasar el cursor */
.color-card .media::before {
  content: "";
  position: absolute;
  left: -6%;
  top: -5%;
  width: 112%;
  height: 118%;
  background: rgba(0, 0, 0, 0.13);
  clip-path: polygon(50% 3%, 59% 17%, 76% 11%, 77% 29%, 95% 32%, 86% 47%, 98% 61%, 81% 68%, 83% 86%, 65% 83%, 57% 99%, 46% 85%, 29% 92%, 26% 74%, 8% 72%, 16% 56%, 4% 43%, 21% 35%, 18% 17%, 36% 20%);
  transition: transform 0.5s ease;
  z-index: 0;
}

.color-card:hover .media::before { transform: rotate(9deg) scale(1.05); }

.color-card .media .pic {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  z-index: 1;
}

.color-card .media img { width: 100%; transition: transform 0.55s ease; }

.color-card:hover .media img { transform: scale(1.1); }

.time-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.color-card .check { color: var(--card-ink); }

.color-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.02;
  letter-spacing: 0.015em;
}

.color-card .btn { margin-top: auto; }

/* ---------- Acordeon de noticias ---------- */
.news-acc-section { padding: 40px 0 90px; }

.acc { display: flex; gap: 16px; min-height: 480px; }

.acc-item {
  position: relative;
  background: var(--acc-bg);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 72px;
  transition: flex-grow 0.55s cubic-bezier(0.6, 0.1, 0.2, 1);
}

.acc-item.open { flex-grow: 1; cursor: default; }

.acc-label {
  position: absolute;
  left: 22px;
  bottom: 24px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.acc-body {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px 46px 40px 90px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s 0.25s, visibility 0.35s 0.25s;
  align-items: center;
  min-width: 660px;
}

.acc-item.open .acc-body { opacity: 1; visibility: visible; }

.acc-body img { width: 100%; border-radius: 16px; }

.acc-copy .date { font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }

.acc-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  line-height: 1;
  margin-bottom: 12px;
}

.acc-copy p { font-size: 0.92rem; margin-bottom: 18px; }

/* ---------- Cintas marquee ---------- */
.marquee { overflow: hidden; }

.marquee.ribbon { background: #C6B0E2; padding: 16px 0; }

.marquee-track { display: flex; width: max-content; animation: marq 26s linear infinite; }
.marquee-track.slow { animation-duration: 46s; }

.marquee.ribbon span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}

.marquee.ribbon i { font-style: normal; margin: 0 16px; }

@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Seccion naranja de redes ---------- */
.social-orange { background: #F04E00; color: #fff; text-align: center; padding: 84px 0 0; overflow: hidden; }

.chip-dark {
  display: inline-block;
  background: #8F2B00;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.social-giant {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 36px;
}

.social-pills { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; padding: 0 20px; }

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #8F2B00;
  color: #fff;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 14px;
  transition: background 0.2s, transform 0.2s;
}

.social-pill:hover { background: #701F00; transform: translateY(-2px); }
.social-pill svg { width: 20px; height: 20px; }

.insta-strip { padding-bottom: 74px; }

/* Son 10 publicaciones por grupo en vez de 5, así que se dobla la duración
   para conservar la misma velocidad de desplazamiento del diseño original. */
.insta-strip .marquee-track.slow { animation-duration: 92s; }

/* Cada tarjeta enlaza a su publicación: la cinta se detiene al pasar el ratón
   para poder hacer clic sin perseguir un objetivo en movimiento. */
.insta-strip:hover .marquee-track { animation-play-state: paused; }

.insta-cards { display: flex; gap: 22px; padding-right: 22px; }

.insta-card { position: relative; width: 290px; flex: 0 0 auto; border-radius: 14px; overflow: hidden; }
.insta-card img { width: 100%; aspect-ratio: 1 / 0.95; object-fit: cover; transition: transform 0.35s; }
.insta-card:hover img { transform: scale(1.05); }

.insta-card i {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
}

/* ---------- Newsletter (panel lavanda) ---------- */
.newsletter-panel { padding: 90px max(14px, 2.2vw) 60px; }

.panel-lav {
  position: relative;
  background: #C6B0E2;
  border-radius: 26px;
  padding: 90px 40px 70px;
  text-align: center;
}

.burst-badge {
  position: absolute;
  left: clamp(12px, 6vw, 90px);
  top: -38px;
  width: 118px;
  animation: spinSlow 34s linear infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.15));
}

.badge-rot.corner { right: clamp(12px, 7vw, 110px); top: -44px; }

.nl-sub { max-width: 520px; margin: 0 auto 38px; color: #3A2F4C; }

.nl-form { max-width: 660px; margin: 0 auto; display: grid; gap: 22px; }

.nl-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 26px; align-items: end; }

.nl-field { text-align: left; }
.nl-field span { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }

.nl-field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 8px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.nl-field input:focus { outline: none; border-color: #fff; }

.nl-submit {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s;
}

.nl-submit:hover { background: var(--accent); }

.newsletter-panel .consent { justify-content: center; color: #3A2F4C; max-width: 540px; margin: 0 auto; }
.newsletter-panel .form-note { color: #2E5230; text-align: center; font-size: 0.95rem; }

/* ---------- Footer: hashtag gigante ---------- */
.footer-hash { text-align: center; padding: 14px 20px 44px; }
.footer-hash img { height: 100px; width: auto; margin: 0 auto 14px; }

.hashtag-big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  color: #C89B5A;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ---------- Responsive de las secciones nuevas ---------- */
@media (max-width: 960px) {
  .panel-inner { padding: 40px 20px 32px; }
  .cat-tabs { gap: 16px; }

  .feature-row,
  .feature-block.reverse .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-block.reverse .feature-media { order: 0; }
  .feature-giant { margin-bottom: 12px; }
  .feature-block.reverse .feature-giant { text-align: left; }
  .badge-rot { width: 96px; height: 96px; top: -28px; right: -6px; }

  .acc { flex-direction: column; min-height: 0; }
  .acc-item { flex-basis: auto; min-height: 68px; }
  .acc-label { writing-mode: horizontal-tb; transform: none; top: 20px; left: 22px; bottom: auto; }
  .acc-body {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 66px 22px 28px;
    display: none;
  }
  .acc-item.open .acc-body { display: grid; }

  .nl-fields { grid-template-columns: 1fr; gap: 18px; }
  .nl-submit { justify-self: start; }
  .panel-lav { padding: 76px 22px 56px; }
  .burst-badge { width: 92px; top: -26px; }
  .badge-rot.corner { width: 96px; height: 96px; top: -30px; }

  .insta-card { width: 220px; }
}

@media (max-width: 560px) {
  .tilt-card { display: none; }
  .big-words { padding: 60px 16px; }
  .color-card { width: 260px; }
}


/* ============================================================
   Megamenu de Productos
   ============================================================ */

.main-nav > li.has-dropdown { position: static; }

.dropdown.mega {
  left: 0;
  right: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1fr;
  gap: 44px;
  background: #fff;
  border: 0;
  border-radius: 22px;
  padding: 32px 38px 36px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.mega-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.dropdown.mega a.mega-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 10px;
  border-radius: 14px;
  color: var(--ink);
}

.dropdown.mega a.mega-row:hover { background: var(--sand); color: var(--ink); }

.dropdown.mega a.mega-row strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: 1;
  line-height: 1.2;
}

.mega-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.mega-thumb img { height: 44px; width: auto; }
.mega-thumb svg { width: 28px; height: 28px; }

.mega-go {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex: 0 0 auto;
  transition: background 0.2s, transform 0.2s;
}

.dropdown.mega a.mega-row:hover .mega-go { background: var(--accent); transform: translateX(3px); }

.feat-card {
  position: relative;
  background: #7C1F3F;
  color: #fff;
  border-radius: 18px;
  padding: 26px 24px 30px;
  min-height: 340px;
  overflow: hidden;
}

.feat-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feat-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #EBD4DC;
  margin-bottom: 18px;
  max-width: 240px;
}

.dropdown.mega .feat-card .btn {
  display: inline-flex;
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 999px;
}

.dropdown.mega .feat-card .btn:hover { background: var(--sand); color: var(--ink); }

.feat-card img {
  position: absolute;
  right: -26px;
  bottom: -48px;
  height: 220px;
  width: auto;
  transform: rotate(10deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3));
}

@media (max-width: 960px) {
  .dropdown.mega {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 8px 16px;
    max-height: none;
    overflow: visible;
  }

  .has-dropdown.open .dropdown.mega { display: grid; }

  .mega-feat, .mega-thumb, .mega-go { display: none; }

  .mega-label { color: #B5ABA2; margin: 8px 0 4px; }

  .dropdown.mega a.mega-row { padding: 8px 4px; color: #fff; }
  .dropdown.mega a.mega-row:hover { background: transparent; color: #fff; }
  .dropdown.mega a.mega-row strong { font-size: 1.05rem; }
}


/* ============================================================
   Pagina de producto individual
   ============================================================ */

.prod-hero {
  background: #7C1F3F;
  color: #fff;
  padding: 150px 0 0;
  overflow: hidden;
}

.prod-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.breadcrumb.light { color: rgba(255, 255, 255, 0.55); }
.breadcrumb.light a:hover { color: #fff; }

.prod-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #C793A5;
  margin: 8px 0 24px;
}

.checks.light { justify-content: flex-start; margin-bottom: 6px; }
.checks.light .check { color: #fff; }

.spec-table {
  width: 100%;
  max-width: 440px;
  border-collapse: collapse;
  margin: 26px 0 32px;
}

.spec-table td {
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.93rem;
}

.spec-table td:first-child { color: rgba(255, 255, 255, 0.6); }
.spec-table td:last-child { text-align: right; font-weight: 600; }

.prod-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.prod-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.prod-hero-media .splash.big {
  position: absolute;
  width: min(440px, 84%);
  height: auto;
  color: rgba(255, 255, 255, 0.09);
  animation: splashWobble 11s ease-in-out infinite;
}

.prod-hero-media img {
  position: relative;
  height: 420px;
  width: auto;
  transform: rotate(6deg);
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.35));
  animation: rockProd 6s ease-in-out infinite;
}

/* Banda de caracteristicas gigantes */
.prod-features {
  margin-top: 70px;
  padding: 36px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feat-label {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.feat-words span {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

/* Acordeones de informacion */
.prod-info { padding: 80px 0 30px; }

.prod-info-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.info-acc { margin-bottom: 16px; }

.info-acc-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--sand);
  border: 0;
  border-radius: 12px;
  padding: 16px 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.acc-chevron {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #E4D6C2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.info-acc-body { display: none; padding: 24px 10px 12px; }
.info-acc.open .info-acc-body { display: block; }

.dose-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }

.dose-table th {
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 4px;
}

.dose-table td { padding: 13px 4px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.dose-table td:first-child { font-weight: 600; }

.info-note { color: var(--muted); font-size: 0.9rem; }
.info-acc-body p { color: var(--ink-soft); }

.prod-info-badges {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 54px;
}

.round-badge { width: 140px; height: 140px; animation: spinSlow 28s linear infinite; }

/* Preguntas frecuentes */
.prod-faq { padding: 30px 0 90px; }

.faq-giant {
  font-family: var(--font-display);
  font-weight: 400;
  text-align: center;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1;
  color: #B5ABA2;
  margin-bottom: 36px;
}

.faq-item { margin-bottom: 14px; }

.faq-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--faq-bg, var(--sand));
  border: 0;
  border-radius: 14px;
  padding: 17px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.faq-bar .acc-chevron { background: rgba(255, 255, 255, 0.65); }

.faq-body {
  display: none;
  background: var(--faq-bg, var(--sand));
  border-radius: 14px;
  margin-top: 8px;
  padding: 22px 24px;
}

.faq-body p { color: var(--ink-soft); }

.faq-item.open .faq-body { display: block; }

/* Relacionados */
.panel-carousel.related { padding-bottom: 46px; }
.panel-carousel.related .section-giant { margin-bottom: 36px; }

@media (max-width: 960px) {
  .prod-hero { padding-top: 120px; }
  .prod-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .prod-hero-media { order: -1; min-height: 360px; }
  .prod-hero-media img { height: 300px; }
  .prod-info-grid { grid-template-columns: 1fr; gap: 20px; }
  .prod-info-badges { padding-top: 20px; }
  .round-badge { width: 110px; height: 110px; }
}



/* ============================================================
   Buscador (overlay)
   ============================================================ */

.search-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.search-ico svg { width: 12px; height: 12px; }

body.search-lock { overflow: hidden; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(24, 19, 16, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 110px 16px 30px;
}

.search-panel {
  background: #fff;
  border-radius: 22px;
  width: min(640px, 100%);
  max-height: 72vh;
  overflow: auto;
  padding: 22px 24px 16px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.4);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--ink);
}

.search-bar svg { width: 22px; height: 22px; flex: 0 0 auto; }

.search-bar input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.12rem;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}

.search-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  flex: 0 0 auto;
  transition: background 0.2s, color 0.2s;
}

.search-close:hover { background: var(--accent); color: #fff; }

.search-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}

.search-row:hover { background: var(--sand); }
.search-row:hover .mega-go { background: var(--accent); transform: translateX(3px); }

.search-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.search-thumb img { height: 38px; width: auto; }

.search-name { flex: 1; line-height: 1.25; }
.search-name strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.98rem; color: var(--ink); }
.search-name small { color: var(--muted); font-size: 0.76rem; }

.search-empty { color: var(--muted); padding: 14px 6px 18px; }

@media (max-width: 960px) {
  .search-overlay { padding-top: 90px; }
  .main-nav .search-open .search-ico { background: var(--accent); color: #fff; }
}

.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 210; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(0,0,0,0.28); transition: transform 0.2s; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); }
.wa-fab svg { width: 30px; height: 30px; }

/* El atributo hidden debe ganar al display:flex del overlay */
.search-overlay[hidden] { display: none !important; }

/* ---------- Ajustes para las fotos reales de producto ----------
   Son packshots PNG con fondo transparente: nunca se recortan
   (object-fit: contain) y no llevan border-radius, porque el
   recorte ya viene en el propio alfa de la imagen. */
.product-card .thumb img { aspect-ratio: 2 / 3; object-fit: contain; padding: 10px; }
.mega-thumb img, .search-thumb img { max-width: 100%; object-fit: contain; }

/* ---------- Carrito de compras ---------- */
.cart-open {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.2s;
}

.cart-open:hover { background: var(--accent); }
.cart-open svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-badge[hidden] { display: none; }

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(24, 19, 16, 0.5);
  display: flex;
  justify-content: flex-end;
}

.cart-overlay[hidden] { display: none !important; }

.cart-panel {
  background: #fff;
  width: min(430px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  animation: cartIn 0.3s ease;
}

@keyframes cartIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 { font-family: var(--font-head); font-size: 1.15rem; }

.cart-body { flex: 1; overflow: auto; padding: 14px 22px; }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img { width: 52px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.cart-item .info { flex: 1; line-height: 1.3; }
.cart-item .info strong { display: block; font-family: var(--font-head); font-size: 0.92rem; }
.cart-precio { color: var(--muted); font-size: 0.82rem; }

.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }

.qty button {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty b { min-width: 16px; text-align: center; }

.cart-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.9rem; }
.cart-del:hover { color: #A84A4A; }

.cart-empty { text-align: center; color: var(--muted); padding: 44px 10px; line-height: 1.7; }

.cart-foot { border-top: 1px solid var(--line); padding: 14px 22px 20px; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.cart-foot .btn { width: 100%; justify-content: center; }
.cart-foot .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.cart-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 12px 0 4px;
}

.cart-form input[type="text"],
.cart-form input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--cream);
}

.cart-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.cart-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 16px 0 8px;
}

.pago-opt {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.pago-opt:hover { border-color: var(--accent); }
.pago-opt input { accent-color: var(--accent); }
.pago-opt:has(input:checked) { border-color: var(--accent); background: #F3EDF9; }

.cart-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

.cart-back {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 0;
}

.cart-back:hover { color: var(--accent); }

.add-cart-btn { margin-top: 12px; }

.prod-precio {
  width: 100%;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}
