/* ════════════════════════════════════════════════════════════
   MEDIGHAN — ESTILOS PRINCIPALES
   Estructura:
     1. Imports
     2. Tipografía base
     3. Layout / Contenedor
     4. Header
     5. Botones
     6. Hero (con mascota Conecta)
     7. Categorías
     8. Valores (franja)
     9. Footer
    10. WhatsApp flotante
    11. Animaciones
    12. Responsive
   ════════════════════════════════════════════════════════════ */

@import url('reset.css');
@import url('variables.css');


/* ── 2. Tipografía base ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background-color: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(var(--fs-4xl), 5.5vw, var(--fs-7xl));
  font-weight: var(--fw-light);
  line-height: 1.05;
}

h2 {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: var(--fw-regular);
  text-align: center;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
}

p {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.65;
}

.script {
  font-family: var(--font-script);
  font-weight: var(--fw-medium);
  color: var(--color-sage);
  font-size: 1.18em;
}

.accent { color: var(--color-sage); }


/* ── 3. Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}


/* ── 4. Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: rgba(251, 249, 244, 0.92);
  transition: box-shadow var(--t-base);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-height);
}

/* ─── Logo ─── */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-forest);
  flex-shrink: 0;
}

.brand-symbol {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 48px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  letter-spacing: 0.05em;
  color: #1a8a8f;
  line-height: 1.1;
}

.brand-name em {
  font-style: normal;
  font-size: 0.7em;
  font-weight: var(--fw-medium);
  margin-left: 2px;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-family: var(--font-script);
  font-size: var(--fs-sm);
  color: var(--color-sage);
  margin-top: 2px;
}

/* ─── Barra de búsqueda ─── */
.header-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  height: 44px;
  background-color: #ffffff;
  border: 1px solid rgba(30, 86, 49, 0.12);
  border-radius: 999px;
  transition: all var(--t-base);
}

.header-search:hover {
  border-color: rgba(30, 86, 49, 0.25);
}

.header-search:focus-within {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(124, 185, 138, 0.18);
}

.header-search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  min-width: 0;
}

.header-search input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ─── Acciones del header ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Botón categorías + links de iniciar sesión y carrito */
.header-action-btn,
.header-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background-color: transparent;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  line-height: 1;
}

.header-action-btn:hover,
.header-action-link:hover {
  background-color: rgba(30, 86, 49, 0.07);
  color: var(--color-forest);
}

.header-action-btn svg,
.header-action-link svg {
  flex-shrink: 0;
}

/* Flechita del dropdown */
.header-action-btn .chevron {
  transition: transform var(--t-base);
  opacity: 0.6;
}

.header-action-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* ─── Dropdown de categorías ─── */
.categories-dropdown {
  position: relative;
}

.categories-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background-color: #ffffff;
  border: 1px solid rgba(30, 86, 49, 0.10);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 86, 49, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear var(--t-base);
  z-index: var(--z-header);
}

.categories-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s;
}

.categories-menu a {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--t-base);
}

.categories-menu a:hover {
  background-color: rgba(124, 185, 138, 0.12);
  color: var(--color-forest);
  padding-left: 18px;
}

/* ─── Carrito con badge ─── */
.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  background-color: var(--color-forest);
  color: #ffffff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid rgba(251, 249, 244, 0.95);
}

/* ─── Responsive del header ─── */
@media (max-width: 1100px) {
  .brand-tagline { display: none; }

  .header-action-link .action-label {
    display: none;
  }
  .header-action-link {
    padding: 10px;
  }
}

@media (max-width: 860px) {
  .header-action-btn .action-label,
  .header-action-btn .chevron {
    display: none;
  }
  .header-action-btn {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .header-inner { gap: var(--space-3); }
  .header-search { display: none; }
  .brand-symbol { height: 40px; max-width: 40px; }
}


/* ── 5. Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-forest);
  color: var(--text-inverse);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background-color: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 86, 49, 0.25);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-forest);
  border: 2px solid var(--color-forest);
}

.btn-secondary:hover {
  background-color: var(--color-leaf);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--t-base);
}

.btn-arrow:hover::after { transform: translateX(4px); }


/* ── 6. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, var(--color-leaf) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-cream) 100%);
}

/* Hojas decorativas detrás del hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 10 Q30 30 30 50 Q30 70 50 90 Q70 70 70 50 Q70 30 50 10' fill='%234a9d5f' opacity='0.18'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  top: 5%;
  left: -60px;
  transform: rotate(-25deg);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  bottom: 8%;
  right: -60px;
  transform: rotate(20deg);
  animation: float 10s ease-in-out infinite 1s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: 1.04;
  color: var(--color-charcoal);
}

.hero-title .highlight {
  color: var(--color-forest);
  font-weight: var(--fw-semibold);
}

.hero-subtitle {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-lg));
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

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

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.hero-proof-avatars { display: flex; }

.hero-proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--color-bg);
  background: linear-gradient(135deg, var(--color-sage-soft), var(--color-mint));
  margin-left: -10px;
}

.hero-proof-avatar:first-child { margin-left: 0; }
.hero-proof-avatar:nth-child(2) { background: linear-gradient(135deg, #c4b288, #e8dcc0); }
.hero-proof-avatar:nth-child(3) { background: linear-gradient(135deg, #f4a890, #f9ede4); }

.hero-proof-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.hero-proof-stars {
  color: var(--star);
  font-size: var(--fs-sm);
  margin-right: var(--space-2);
}

.hero-proof-rating {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

/* Visual del hero (imagen real con mascota + productos) */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  animation: bobbing 4s ease-in-out infinite;
}

@keyframes bobbing {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-leaf {
  position: absolute;
  width: 70px;
  height: 70px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 10 Q30 30 30 50 Q30 70 50 90 Q70 70 70 50 Q70 30 50 10' fill='%234a9d5f' opacity='0.5'/><path d='M50 10 L50 90' stroke='%233d8b51' stroke-width='1.5' opacity='0.5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

.hero-leaf--1 { top: -10px;  left: -15px; transform: rotate(-30deg); }
.hero-leaf--2 { bottom: 0;   left: 10%;   transform: rotate(45deg);  width: 50px; height: 50px; }
.hero-leaf--3 { top: -10px;  right: -10px; transform: rotate(20deg); width: 60px; height: 60px; }


/* ── 7. Categorías ────────────────────────────────────────── */
.categories {
  padding: var(--space-20) 0;
  background-color: var(--color-bg);
}

.cat-carousel {
  position: relative;
}

.categories-grid {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-grid::-webkit-scrollbar { display: none; }

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg, var(--color-leaf));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  min-height: 220px;
  overflow: hidden;
  transition: all var(--t-base);
  flex: 0 0 calc((100% - var(--space-6) * 2) / 3);
  min-width: 260px;
  scroll-snap-align: start;
}

/* Flechitas del carrusel */
.cat-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid rgba(30, 86, 49, 0.12);
  color: var(--color-forest);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(30, 86, 49, 0.18);
  transition: all var(--t-base);
}

.cat-carousel-btn:hover:not(:disabled) {
  background-color: var(--color-forest);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 28px rgba(30, 86, 49, 0.28);
}

.cat-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cat-carousel-prev { left: -22px; }
.cat-carousel-next { right: -22px; }

.category-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  border-radius: var(--radius-circle);
  pointer-events: none;
}

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

.category-card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  display: block;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.category-card-body h3 {
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.category-card-body p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0;
  flex: 1;
}

.category-card-arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-forest);
  color: white;
  border-radius: var(--radius-circle);
  font-size: 1.1rem;
  margin-top: var(--space-3);
  align-self: flex-start;
  transition: all var(--t-base);
}

.category-card:hover .category-card-arrow {
  background-color: var(--color-forest-dark);
  transform: translateX(4px);
}


/* ── 7.5 Productos destacados ──────────────────────────────── */
.products {
  padding: var(--space-16) 0;
  background-color: var(--color-cream);
}

.section-header--with-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-4);
  text-align: left;
}

.section-header--with-link h2 {
  text-align: left;
  margin: 0;
}

.link-with-arrow {
  color: var(--color-forest);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: color var(--t-base);
}

.link-with-arrow:hover {
  color: var(--color-forest-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
}

.product-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
  transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}

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

.product-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background-color: var(--color-forest);
  color: white;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge--new { background-color: var(--color-sage); }
.product-badge--bestseller { background-color: var(--color-forest); }

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-leaf);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.product-meta {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-rating {
  color: var(--star);
  font-size: 11px;
  width: 100%;
}

.product-rating em {
  color: var(--text-muted);
  font-style: normal;
  margin-left: 4px;
}

.product-price {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  color: var(--text-primary);
}

.product-cart-btn {
  width: 36px;
  height: 36px;
  background-color: var(--color-forest);
  color: white;
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all var(--t-base);
}

.product-cart-btn:hover {
  background-color: var(--color-forest-dark);
  transform: scale(1.1);
}


/* ── 8. Valores (franja) ──────────────────────────────────── */
.values {
  background-color: var(--color-leaf);
  padding: 48px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  border: 1px solid rgba(30, 86, 49, 0.08);
  transition: all 0.3s;
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(30, 86, 49, 0.10);
  background: rgba(255, 255, 255, 0.85);
}

.value-icon {
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background-color: white;
  border-radius: var(--radius-circle);
  box-shadow: 0 4px 14px rgba(30, 86, 49, 0.10);
  flex-shrink: 0;
  margin-bottom: 14px;
}

.value-item strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.value-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .values-grid { grid-template-columns: 1fr; }
}


/* ── 9. Footer ────────────────────────────────────────────── */
.site-footer {
  background-color: #e8f3eb;
  padding-top: var(--space-16);
  margin-top: var(--space-20);
  border-top: 1px solid rgba(30, 86, 49, 0.12);
  position: relative;
  overflow: hidden;
}
.site-footer .container,
.site-footer .footer-inner,
.site-footer .footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer-brand .brand {
  margin-bottom: var(--space-4);
}

.footer-description {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
  max-width: 360px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: var(--space-2);
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background-color: var(--color-bg);
  color: var(--color-forest);
  transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}

.social-links a svg {
  display: block;
}

.social-links a:hover {
  background-color: var(--color-forest);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 86, 49, 0.2);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: color var(--t-base);
}

.footer-col a:hover { color: var(--color-forest); }

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-6) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
}


/* ── 10. WhatsApp flotante ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: var(--z-sticky);
  transition: all var(--t-base);
  animation: pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #1ea952;
  transform: scale(1.08);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.15); }
}


/* ── 10b. HOJAS CAYENDO EN EL FOOTER (estilo otoño) ─────── */
.footer-leaves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.footer-leaves .footer-leaf {
  position: absolute;
  top: 0;
  opacity: 0;
  animation-name: footerLeafFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 2px 4px rgba(30, 86, 49, 0.20));
  display: block;
}

@keyframes footerLeafFall {
  0% {
    top: -40px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.75; }
  25% {
    transform: translateX(25px) rotate(90deg);
  }
  50% {
    transform: translateX(-20px) rotate(180deg);
  }
  75% {
    transform: translateX(20px) rotate(290deg);
  }
  92% { opacity: 0.7; }
  100% {
    top: calc(100% + 40px);
    transform: translateX(-10px) rotate(420deg);
    opacity: 0;
  }
}


/* ── 11. Animaciones generales ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-25deg); }
  50%      { transform: translateY(-20px) rotate(-22deg); }
}

.hero-content > * {
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.category-card {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.10s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.20s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.30s; }


/* ── 12. Responsive ───────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .menu-toggle { display: flex; }
  .brand-tagline { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--t-base);
    z-index: var(--z-header);
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand { grid-column: 1 / -1; }

  /* Carrusel de categorías: 2 tarjetas en tablet */
  .category-card {
    flex: 0 0 calc((100% - var(--space-6)) / 2);
  }
  .cat-carousel-prev { left: -10px; }
  .cat-carousel-next { right: -10px; }
}

@media (max-width: 640px) {
  :root {
    --container-px: 16px;
    --header-height: 72px;
  }

  .hero {
    padding: var(--space-10) 0 var(--space-16);
  }

  .hero-title { font-size: var(--fs-4xl); }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .categories { padding: var(--space-12) 0; }

  /* Carrusel de categorías: 1.2 tarjetas en móvil (asoma la siguiente) */
  .category-card {
    flex: 0 0 80%;
    min-width: 0;
  }
  .cat-carousel-btn {
    width: 40px;
    height: 40px;
  }
  .cat-carousel-prev { left: 4px; }
  .cat-carousel-next { right: 4px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════════════════════════════
   AUTENTICACIÓN (login.html, signup, admin)
   ════════════════════════════════════════════════════════════ */
.auth-section {
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background:
    radial-gradient(ellipse at top right, var(--color-leaf) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-cream) 100%);
}

@media (max-width: 900px) {
  .auth-section { grid-template-columns: 1fr; }
}

/* Tarjeta del formulario */
.auth-card {
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
}

.auth-tab {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-base);
}

.auth-tab.is-active {
  background: var(--color-forest);
  color: white;
  box-shadow: var(--shadow-green);
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  color: var(--color-charcoal);
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  font-size: var(--fs-base);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-form.is-hidden { display: none; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.auth-field input {
  padding: 14px 18px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--color-bg);
  transition: all var(--t-base);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.12);
}

.auth-field small {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-checkbox input { width: 18px; height: 18px; accent-color: var(--color-forest); }

.auth-link {
  background: none;
  border: none;
  color: var(--color-forest);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}

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

.auth-submit {
  margin-top: var(--space-3);
  width: 100%;
  padding: 16px;
  font-size: var(--fs-base);
}

.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.auth-message {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: none;
}

.auth-message.is-error,
.auth-message.is-success,
.auth-message.is-info {
  display: block;
}

.auth-message.is-error {
  background-color: #fdecea;
  color: #8a2820;
  border: 1px solid #f5c6c0;
}

.auth-message.is-success {
  background-color: #ecf7ed;
  color: #1e5631;
  border: 1px solid #b8e0bf;
}

.auth-message.is-info {
  background-color: #eef4fd;
  color: #1a5490;
  border: 1px solid #bcd5f0;
}

/* Visual lateral (mascota + beneficios) */
.auth-visual {
  background: linear-gradient(135deg, var(--color-leaf) 0%, var(--color-mint) 100%);
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .auth-visual { display: none; }
}

.auth-mascot {
  width: 200px;
  height: auto;
  margin-bottom: var(--space-6);
  animation: bobbing 4s ease-in-out infinite;
}

.auth-visual h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  margin-bottom: var(--space-4);
  color: var(--color-charcoal);
}

.auth-visual p {
  max-width: 360px;
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
}

.auth-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}

.auth-benefits li {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}


/* ════════════════════════════════════════════════════════════
   BOTÓN INICIAR SESIÓN (header)
   ════════════════════════════════════════════════════════════ */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-forest);
  background-color: transparent;
  border: 1.5px solid var(--color-forest);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--t-base);
}

.btn-login:hover {
  background-color: var(--color-forest);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-login svg {
  flex-shrink: 0;
}

/* En móvil, ocultar el texto y dejar solo el ícono */
@media (max-width: 768px) {
  .btn-login span { display: none; }
  .btn-login {
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════════
   LOGIN V2 — Diseño con foto a la izquierda + tarjeta a la derecha
   ════════════════════════════════════════════════════════════ */
.auth-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #faf5e8 0%, #f3ead4 100%);
}

@media (max-width: 1024px) {
  .auth-v2 { grid-template-columns: 1fr; }
}

/* ─── Lado izquierdo ─── */
.auth-v2-left {
  padding: var(--space-12) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .auth-v2-left { padding: var(--space-8) var(--space-5); }
}

.auth-v2-welcome {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-v2-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--fw-light);
  line-height: 1;
  color: var(--color-charcoal);
  margin: 0;
}

.auth-v2-title .script {
  font-family: var(--font-script);
  color: var(--color-forest);
  font-weight: var(--fw-medium);
  font-size: 1em;
  display: inline-block;
}

.auth-v2-title .leaf {
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: var(--space-2);
}

.auth-v2-subtitle {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  max-width: 480px;
  line-height: 1.4;
}

.auth-v2-subtitle p { margin: 0; }

.auth-v2-subtitle-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-forest);
  display: grid;
  place-items: center;
  color: var(--color-forest);
}

.auth-v2-image-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--space-4) 0;
}

.auth-v2-image {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(30, 86, 49, 0.15));
}

.auth-v2-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .auth-v2-badges { grid-template-columns: repeat(2, 1fr); }
}

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

.auth-v2-badge svg {
  color: var(--color-forest);
  flex-shrink: 0;
}

.auth-v2-badge div { display: flex; flex-direction: column; line-height: 1.2; }

.auth-v2-badge strong {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.auth-v2-badge span {
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}


/* ─── Lado derecho (tarjeta del form) ─── */
.auth-v2-right {
  padding: var(--space-12) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

@media (max-width: 768px) {
  .auth-v2-right { padding: var(--space-8) var(--space-4); }
}

.auth-v2-card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
}

.auth-v2-icon-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-5);
  background: var(--color-leaf);
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  color: var(--color-forest);
}

.auth-v2-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-medium);
  text-align: center;
  margin: 0 0 var(--space-2);
  color: var(--color-charcoal);
}

.auth-v2-card-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  margin: 0 0 var(--space-8);
}

.auth-v2-form { display: flex; flex-direction: column; }
.auth-v2-form.is-hidden { display: none; }
.is-hidden { display: none !important; }

.auth-v2-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.auth-v2-field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.input-with-icon input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--color-bg);
  transition: all var(--t-base);
}

.input-with-icon input::placeholder { color: var(--text-muted); }

.input-with-icon input:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.1);
}

.eye-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  transition: color var(--t-base);
}

.eye-toggle:hover { color: var(--color-forest); }

.auth-v2-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.auth-v2-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.auth-v2-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-forest);
  cursor: pointer;
}

.auth-v2-link-sm {
  font-size: var(--fs-sm);
  color: var(--color-forest);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.auth-v2-link-sm:hover { text-decoration: underline; }

.auth-v2-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-forest);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--shadow-green);
}

.auth-v2-submit:hover {
  background: var(--color-forest-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(30, 86, 49, 0.25);
}

.auth-v2-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-v2-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.auth-v2-divider::before,
.auth-v2-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-v2-divider span { padding: 0 var(--space-3); }

.auth-v2-google {
  width: 100%;
  padding: 14px;
  background: var(--color-bg);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: all var(--t-base);
}

.auth-v2-google:hover {
  background: var(--color-leaf);
  border-color: var(--color-sage);
}

.auth-v2-switch {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: var(--space-5) 0 0;
}

.auth-v2-link {
  background: none;
  border: none;
  color: var(--color-forest);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.auth-v2-link:hover { text-decoration: underline; }

.auth-v2-security {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--color-leaf);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.auth-v2-security svg {
  color: var(--color-forest);
  flex-shrink: 0;
}

.auth-v2-security div { display: flex; flex-direction: column; line-height: 1.3; }

.auth-v2-security strong {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.auth-v2-security span {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}



/* ════════════════════════════════════════════════════════════
   ADMIN PANEL V2 — Dashboard estilo SaaS profesional
   ════════════════════════════════════════════════════════════ */
.adm-body {
  background: linear-gradient(180deg, #faf7ed 0%, #f4f1e4 100%);
  min-height: 100vh;
  font-family: var(--font-body);
}

.adm-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .adm-layout { grid-template-columns: 1fr; }
}

/* ─── SIDEBAR ──────────────────────────────────────────────── */
.adm-aside {
  background: white;
  padding: 24px 16px;
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* ─── ADMIN: SIDEBAR como DRAWER en móvil ─── */
@media (max-width: 900px) {
  .adm-layout { grid-template-columns: 1fr; }

  .adm-aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.16);
  }

  .adm-aside.is-open { transform: translateX(0); }
}

/* Backdrop oscuro detrás del drawer */
.adm-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  animation: fadeIn 0.2s ease;
}
.adm-backdrop.is-visible { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Topbar admin más compacto en móvil */
@media (max-width: 600px) {
  .adm-topbar { padding: 12px 16px !important; gap: 8px; }
  .adm-search { display: none; }
  .adm-date span { display: none; }
  .adm-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 400px) {
  .adm-stats { grid-template-columns: 1fr !important; }
  .adm-aside { width: 250px; }
}

.adm-aside-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 16px;
}

.adm-aside-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.adm-aside-brand-text h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1a8a8f;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.adm-aside-brand-text h2 em {
  font-style: normal;
  font-size: 0.7em;
  font-weight: 500;
  color: var(--color-forest);
}

.adm-aside-brand-text p {
  margin: 4px 0 0;
  font-family: var(--font-script);
  font-size: 12px;
  color: var(--color-sage);
}

.adm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.adm-nav-item:hover {
  background: #f5f5f0;
  color: var(--color-forest);
}

.adm-nav-item.is-active {
  background: #e8f3ec;
  color: var(--color-forest);
  font-weight: 600;
}

.adm-nav-item.is-active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--color-forest);
  border-radius: 4px;
}

.adm-nav-badge {
  margin-left: auto;
  font-size: 10px;
  background: rgba(0,0,0,0.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  text-transform: lowercase;
}

.adm-nav-item.is-active .adm-nav-badge {
  background: rgba(30,86,49,0.15);
  color: var(--color-forest);
}

/* Botón "Cerrar sesión" al final del sidebar */
.adm-aside-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-aside-logout svg {
  flex-shrink: 0;
}

.adm-aside-logout:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #c0392b;
}

.adm-aside-logout:active {
  transform: scale(0.98);
}


/* ─── MAIN AREA ────────────────────────────────────────────── */
.adm-main {
  padding: 0;
  overflow-x: auto;
  min-width: 0;
}


/* ─── TOPBAR ───────────────────────────────────────────────── */
.adm-topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.adm-topbar-toggle {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  place-items: center;
  color: var(--text-primary);
}

.adm-topbar-toggle:hover { background: rgba(0,0,0,0.04); }

/* Solo se ve la hamburguesa en móvil/tablet */
@media (max-width: 900px) {
  .adm-topbar-toggle { display: grid; }
}

.adm-search {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.adm-search svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.adm-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.adm-search input:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(30,86,49,0.1);
}

.adm-search kbd {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-family: monospace;
  padding: 2px 6px;
  background: #f0f0eb;
  border-radius: 4px;
  color: var(--text-muted);
}

.adm-date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
}

.adm-bell {
  position: relative;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text-primary);
}

.adm-bell-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.adm-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
}

.adm-user-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-forest);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 14px;
}

.adm-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.adm-user-text strong { font-size: 13px; }
.adm-user-text small { font-size: 11px; color: var(--text-muted); }

.adm-user-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.adm-user-logout svg { display: block; }

.adm-user-logout:hover { background: #fdecea; color: #c0392b; }


/* ─── PAGES ────────────────────────────────────────────────── */
.adm-page { display: none; padding: 24px; }
.adm-page.is-active { display: block; }

.adm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.adm-page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-page-title .leaf { font-size: 22px; }

.adm-page-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}


/* ─── QUICK ACTIONS ────────────────────────────────────────── */
.adm-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.adm-quick-btn:hover {
  border-color: var(--color-forest);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,86,49,0.08);
}

.adm-quick-icon {
  width: 36px;
  height: 36px;
  background: #e8f3ec;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.adm-quick-btn strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.adm-quick-btn small {
  font-size: 12px;
  color: var(--text-muted);
}


/* ─── STATS CARDS ──────────────────────────────────────────── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.adm-stat {
  background: white;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}

.adm-stat-content { flex: 1; min-width: 0; }

.adm-stat-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.adm-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 6px;
  line-height: 1;
}

.adm-stat-trend {
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.adm-stat-trend--up { color: #16a34a; }
.adm-stat-trend--down { color: #ef4444; }
.adm-stat-trend--neutral { color: var(--text-muted); }
.adm-stat-trend--warn { color: #cc6a00; text-decoration: none; cursor: pointer; }

.adm-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}


/* ─── CARDS ─────────────────────────────────────────────────── */
.adm-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.adm-row--2 { grid-template-columns: 1fr 1fr; }
.adm-row--3 { grid-template-columns: 2fr 1fr; }

@media (max-width: 900px) {
  .adm-row, .adm-row--2, .adm-row--3 { grid-template-columns: 1fr; }
}

.adm-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.04);
}

.adm-card--span2 {}

.adm-card--plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #e8f3ec 0%, #d3e7d9 100%);
  margin-top: 16px;
  flex-wrap: wrap;
}

.adm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.adm-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-info {
  color: var(--text-muted);
  font-size: 12px;
  cursor: help;
}

.adm-card-action {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--color-forest);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.adm-card-action:hover { text-decoration: underline; }


/* Chart placeholder */
.adm-chart-placeholder {
  position: relative;
  padding-bottom: 16px;
}

.adm-chart-svg {
  width: 100%;
  height: 180px;
  display: block;
}

.adm-chart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 8px 0 0;
  font-style: italic;
}


/* Mini items lists */
.adm-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.adm-mini-item:last-child { border-bottom: none; }

.adm-mini-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0eb;
  flex-shrink: 0;
}

.adm-rank {
  width: 24px;
  height: 24px;
  background: var(--color-forest);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.adm-mini-info {
  flex: 1;
  min-width: 0;
}

.adm-mini-info strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-mini-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.adm-mini-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-forest);
  flex-shrink: 0;
}

.adm-stock-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  flex-shrink: 0;
}

.adm-stock-badge.is-critical { background: #fee2e2; color: #b91c1c; }
.adm-stock-badge.is-warn { background: #fef3c7; color: #92400e; }
.adm-stock-badge.is-ok { background: #d1fae5; color: #065f46; }


/* Empty states */
.adm-empty-mini {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 24px 12px;
  margin: 0;
}

.adm-empty-mini span { font-size: 32px; display: block; margin-bottom: 8px; }

.adm-empty-big {
  text-align: center;
  padding: 60px 24px;
}

.adm-empty-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.adm-empty-big h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
}

.adm-empty-big p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
  margin: 0 auto;
}


/* ─── TABLA ─────────────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }

.adm-table {
  width: 100%;
  border-collapse: collapse;
}

.adm-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafaf5;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.adm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
  vertical-align: middle;
}

.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover { background: #fafaf5; }

.adm-table-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0eb;
}

.adm-badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin: 1px;
}

.adm-badge--gold { background: #fef3c7; color: #92560a; }
.adm-badge--sage { background: #d1fae5; color: #065f46; }
.adm-badge--green { background: #e8f3ec; color: var(--color-forest); }

.adm-btn-icon {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  margin-right: 4px;
}

.adm-btn-icon:hover { background: #f0f0eb; border-color: var(--color-forest); }
.adm-btn-icon--danger:hover { background: #fee2e2; border-color: #dc2626; }


/* ─── MODAL ─────────────────────────────────────────────────── */
.adm-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

.adm-modal[hidden] { display: none; }

.adm-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(20,30,25,0.5);
  backdrop-filter: blur(6px);
}

.adm-modal-card {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.adm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.adm-modal-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}

.adm-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 8px;
}

.adm-modal-close:hover { background: #f0f0eb; }


/* Form */
.adm-form { padding: 24px; }

.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .adm-form-grid { grid-template-columns: 1fr; }
}

.adm-form-field { display: flex; flex-direction: column; gap: 6px; }
.adm-form-field--full { grid-column: 1 / -1; }

.adm-form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.adm-form-field input,
.adm-form-field select,
.adm-form-field textarea {
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  background: white;
  transition: all 0.2s;
}

.adm-form-field input:focus,
.adm-form-field select:focus,
.adm-form-field textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(30,86,49,0.1);
}

.adm-form-field small { color: var(--text-muted); font-size: 11px; }

.adm-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #f5f5f0;
  border-radius: 10px;
}

.adm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.adm-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-forest);
}

.adm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}


/* Toast */
.adm-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: var(--color-forest);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-weight: 500;
  z-index: 2000;
  animation: slide-in 0.3s ease;
  font-size: 14px;
}

.adm-toast.is-error { background: #dc2626; }

@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}


/* ════════════════════════════════════════════════════════════
   FORMULARIO EXTENDIDO ADMIN — Upload, Galería, Secciones
   ════════════════════════════════════════════════════════════ */

.adm-modal-card--xl { max-width: 800px; }

.adm-form-section {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-forest);
  margin: 24px 0 12px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(30,86,49,0.06) 0%, transparent 100%);
  border-left: 3px solid var(--color-forest);
  border-radius: 4px;
}

.adm-form-section:first-child { margin-top: 0; }

/* Upload area */
.adm-upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: #f7f7f1;
  border: 2px dashed rgba(0,0,0,0.1);
  border-radius: 12px;
  margin-bottom: 12px;
}

.adm-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-forest);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.adm-upload-btn:hover {
  background: var(--color-forest-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,86,49,0.2);
}

.adm-upload-or {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.adm-upload-url {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

/* Preview de imagen principal */
.adm-image-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.adm-image-preview img {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.06);
  background: white;
  padding: 8px;
}

.adm-image-preview:empty {
  display: none;
}

/* Galería preview */
.adm-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.adm-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0eb;
}

.adm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.95);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
}

.adm-gallery-remove:hover { transform: scale(1.1); }


/* ════════════════════════════════════════════════════════════
   PRODUCTOS DESTACADOS — Carrusel infinito (marquee)
   ════════════════════════════════════════════════════════════ */
.featured-marquee {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #faf7ed 0%, #ecf3ee 100%);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  padding: var(--space-6) 0;
  position: relative;
}

/* Difumina los bordes izquierdo y derecho para efecto suave */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, #f3ead5 0%, transparent 100%);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, #ecf3ee 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Productos dentro del marquee con ancho fijo */
.marquee-track .product-card {
  flex: 0 0 280px;
  width: 280px;
  margin: 0;
}

/* Badge de descuento (rojo) */
.product-badge--sale {
  background: #ef4444 !important;
  color: white !important;
}


/* ════════════════════════════════════════════════════════════
   FIX: imágenes de productos NUNCA salen de su contenedor
   ════════════════════════════════════════════════════════════ */
.product-image {
  width: 100% !important;
  aspect-ratio: 1 !important;
  background-color: var(--color-leaf);
  border-radius: var(--radius-md);
  overflow: hidden !important;
  margin-bottom: var(--space-3);
  display: block;
  position: relative;
}

.product-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.product-card img {
  max-width: 100%;
  height: auto;
}


/* En móvil, los productos del carrusel un poco más pequeños */
@media (max-width: 640px) {
  .marquee-track .product-card {
    flex: 0 0 240px;
    width: 240px;
  }
}


/* ════════════════════════════════════════════════════════════
   FIX FORZADO: IMÁGENES DE PRODUCTO NUNCA SALEN DE SU CONTENEDOR
   ════════════════════════════════════════════════════════════ */
.product-card {
  display: flex !important;
  flex-direction: column;
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

a.product-image,
.product-image {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: var(--color-leaf, #e8f3ec);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  position: relative !important;
  text-decoration: none;
}

.product-image > img,
.product-card .product-image img,
.products-grid .product-image img,
.marquee-track .product-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}


/* ════════════════════════════════════════════════════════════
   PAGINACIÓN DE PRODUCTOS RECOMENDADOS
   ════════════════════════════════════════════════════════════ */
.products-pag-wrap {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (max-width: 700px) {
  .products-pag-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.products-pag-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border, #e0e0db);
  color: var(--color-forest, #1e5631);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.products-pag-arrow:hover:not(:disabled) {
  background: var(--color-forest, #1e5631);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 86, 49, 0.2);
}

.products-pag-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .products-pag-arrow { display: none; }
}

.products-pag-wrap .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  transition: opacity 0.2s;
  min-height: 350px;
}

@media (max-width: 1024px) {
  .products-pag-wrap .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .products-pag-wrap .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-pag-wrap .products-grid { grid-template-columns: 1fr; }
}

.products-pag-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.products-pag-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.rec-dot:hover { background: rgba(0,0,0,0.3); }

.rec-dot.is-active {
  background: var(--color-forest, #1e5631);
  width: 28px;
  border-radius: 5px;
}

.products-pag-info {
  font-size: var(--fs-sm, 14px);
  color: var(--text-secondary, #666);
  margin: 0;
}


/* ════════════════════════════════════════════════════════════
   MARQUEE estático (cuando hay pocos productos)
   ════════════════════════════════════════════════════════════ */
.marquee--static {
  overflow: visible;
  padding: var(--space-6) var(--space-4);
}

.marquee--static::before,
.marquee--static::after {
  display: none; /* sin difuminados cuando es estático */
}

.marquee--static .marquee-track {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center !important;
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto !important;
  animation: none !important;
}

.marquee--static .product-card {
  flex: 0 1 280px;
  max-width: 280px;
}


/* ════════════════════════════════════════════════════════════
   AJUSTE: TARJETAS DE PRODUCTO MÁS COMPACTAS
   ════════════════════════════════════════════════════════════ */

/* Grid que centra cuando hay pocos productos */
.products-pag-wrap .products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px)) !important;
  justify-content: center;
  gap: 16px !important;
  min-height: 300px;
}

@media (max-width: 480px) {
  .products-pag-wrap .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

/* Cards más pequeñas y compactas */
.product-card {
  padding: 10px !important;
  max-width: 220px;
  width: 100%;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: rgba(30, 86, 49, 0.2);
}

.product-card h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 8px 0 4px !important;
  line-height: 1.3 !important;
  color: var(--text-primary, #2a2a2a);
}

.product-card .product-meta {
  font-size: 12px !important;
  color: var(--text-secondary, #666);
  margin: 0 0 8px !important;
  line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.product-card .product-rating {
  font-size: 11px !important;
  color: #f59e0b;
}

.product-card .product-rating em {
  font-style: normal;
  color: #999;
  margin-left: 4px;
}

.product-card .product-price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--color-forest, #1e5631) !important;
  font-family: var(--font-display, serif);
}

.product-card .product-cart-btn {
  background: var(--color-forest, #1e5631);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-end;
  transition: all 0.2s;
}

.product-card .product-cart-btn:hover {
  background: var(--color-forest-dark, #14401f);
  transform: scale(1.05);
}

/* Badges más pequeños */
.product-card .product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px !important;
  padding: 3px 8px !important;
  border-radius: 999px;
  font-weight: 600;
  z-index: 2;
}

/* En el carrusel también más compacto */
.marquee-track .product-card {
  flex: 0 0 220px !important;
  width: 220px !important;
}

.marquee--static .product-card {
  flex: 0 1 220px !important;
  max-width: 220px !important;
}


/* ════════════════════════════════════════════════════════════
   ÚLTIMA REDUCCIÓN: tarjetas REALMENTE pequeñas
   ════════════════════════════════════════════════════════════ */
.products-pag-wrap .products-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 200px)) !important;
  justify-content: center;
  gap: 14px !important;
}

.product-card {
  padding: 8px !important;
  max-width: 200px !important;
  width: 100% !important;
}

.product-card h3 {
  font-size: 13px !important;
  line-height: 1.25 !important;
  margin: 6px 0 3px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.product-card .product-meta {
  font-size: 11px !important;
  margin: 0 0 6px !important;
  -webkit-line-clamp: 2;
  min-height: 28px;
}

.product-card .product-price {
  font-size: 15px !important;
}

.product-card .product-cart-btn {
  padding: 4px 8px !important;
  font-size: 13px !important;
}

.product-card .product-rating {
  font-size: 10px !important;
}

.product-card .product-badge {
  font-size: 9px !important;
  padding: 2px 6px !important;
}

/* También más pequeñas en el carrusel */
.marquee-track .product-card,
.marquee--static .product-card {
  flex: 0 0 200px !important;
  max-width: 200px !important;
  width: 200px !important;
}



/* ════════════════════════════════════════════════════════════
   WELLNESS CAROUSEL — ESTILO BANNER (imagen ancha completa)
   ════════════════════════════════════════════════════════════ */
.wellness-types {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7ed 100%);
}

.wellness-carousel {
  position: relative;
  max-width: 1280px;
  margin: 40px auto 0;
}

/* Contenedor del slide — banner ancho sin sensación de caja */
.wellness-slides {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-radius: 16px;
}

/* Cada slide ocupa todo el contenedor */
.wellness-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.wellness-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* La IMAGEN llena TODO el slide (fondo completo) */
.wellness-slide-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f4ede0 0%, #e8e0d0 100%);
  overflow: hidden;
}

.wellness-slide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* Gradiente sutil sobre la imagen para garantizar que el texto se lea */
.wellness-slide-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(244, 237, 224, 0) 0%,
    rgba(244, 237, 224, 0) 45%,
    rgba(244, 237, 224, 0.4) 55%,
    rgba(244, 237, 224, 0.85) 70%,
    rgba(244, 237, 224, 0.95) 100%
  );
  z-index: 1;
}

/* Contenido: posicionado a la derecha sobre la imagen */
.wellness-slide-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  padding: 60px 60px 60px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  z-index: 2;
}

/* 1) PILL VERDE */
.wellness-slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #1e5631;
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
  font-family: var(--font-body, system-ui);
  box-shadow: 0 4px 12px rgba(30, 86, 49, 0.25);
  letter-spacing: 0.3px;
}

/* 2) HEADLINE GRANDE */
.wellness-slide-headline {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  color: #2a2a2a;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 460px;
}

/* 3) SEPARADOR DECORATIVO con hojita */
.wellness-slide-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 14px;
}

.wellness-slide-divider::before,
.wellness-slide-divider::after {
  content: '';
  height: 1.5px;
  background: #1e5631;
  border-radius: 2px;
  opacity: 0.5;
}

.wellness-slide-divider::before { flex: 0 0 24px; }
.wellness-slide-divider::after  { flex: 0 0 50px; }

/* 4) DESCRIPCIÓN — corta y elegante */
.wellness-slide-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3a3a3a;
  margin: 0;
  max-width: 420px;
  font-family: var(--font-body, system-ui);
}

.wellness-slide-desc p {
  margin: 0;
  /* Mostrar solo el primer párrafo, ocultar el resto */
}

.wellness-slide-desc p:not(:first-of-type) {
  display: none;
}

/* 5) BOTÓN PILL GRANDE */
.wellness-slide-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #1e5631;
  color: white;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 8px;
  width: fit-content;
  font-family: var(--font-body, system-ui);
  box-shadow: 0 6px 18px rgba(30, 86, 49, 0.3);
  transition: all 0.25s ease;
}

.wellness-slide-button:hover {
  background: #14401f;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 86, 49, 0.4);
}

.wellness-slide-button svg {
  transition: transform 0.25s;
}

.wellness-slide-button:hover svg {
  transform: translateX(4px);
}

/* Flechas de navegación */
.wellness-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  color: #1e5631;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.wellness-arrow:hover {
  background: #1e5631;
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.wellness-arrow--prev { left: 16px; }
.wellness-arrow--next { right: 16px; }

/* Dots */
.wellness-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.wellness-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.wellness-dot:hover { background: rgba(0,0,0,0.3); }
.wellness-dot.is-active {
  background: #1e5631;
  width: 32px;
  border-radius: 5px;
}

/* Ken Burns para las imágenes */
@keyframes kenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.wellness-slide.is-active .wellness-slide-image img {
  animation: kenBurns 12s ease-in-out infinite alternate;
}

/* ─── MÓVIL ─── */
@media (max-width: 768px) {
  .wellness-slides { 
    height: auto;
    min-height: 600px;
  }
  
  .wellness-slide-image {
    height: 280px;
    bottom: auto;
  }
  
  .wellness-slide-image::after {
    background: linear-gradient(
      180deg,
      rgba(244, 237, 224, 0) 0%,
      rgba(244, 237, 224, 0) 60%,
      rgba(244, 237, 224, 1) 100%
    );
  }
  
  .wellness-slide-content {
    position: absolute;
    top: 260px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 24px 32px;
    background: #f4ede0;
  }
  
  .wellness-slide-headline { font-size: 1.6rem; }
  .wellness-slide-desc { font-size: 13.5px; }
  
  .wellness-arrow--prev { left: 8px; }
  .wellness-arrow--next { right: 8px; }
  .wellness-arrow { width: 38px; height: 38px; }
}


/* ════════════════════════════════════════════════════════════
   FILA DE 3 FEATURES (debajo del carrusel)
   ════════════════════════════════════════════════════════════ */
.wellness-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 28px 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  .wellness-features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 16px 0;
    padding: 20px;
  }
}

.wellness-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wellness-feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e5631 0%, #2d7a44 100%);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.wellness-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wellness-feature strong {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 16px;
  font-weight: 600;
  color: #1e5631;
  line-height: 1.2;
}

.wellness-feature span {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}


/* ════════════════════════════════════════════════════════════
   PARALLAX BANNERS — armonía con la paleta de la página
   ════════════════════════════════════════════════════════════ */
.parallax-banner {
  position: relative;
  min-height: 320px;
  background-image: 
    linear-gradient(135deg, rgba(244, 237, 224, 0.45) 0%, rgba(232, 220, 196, 0.55) 100%),
    url('../images/parallax-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  margin: 0;
  overflow: hidden;
}

.parallax-banner--alt {
  background-image: 
    linear-gradient(135deg, rgba(250, 247, 237, 0.45) 0%, rgba(229, 226, 211, 0.55) 100%),
    url('../images/parallax-2.jpg');
}

/* Quitamos el overlay verde oscuro — ahora el degradé hace el trabajo */
.parallax-banner::before {
  display: none;
}

.parallax-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  color: var(--color-charcoal, #2a2a2a);
}

.parallax-banner-leaf {
  display: block;
  font-size: 44px;
  margin-bottom: 14px;
  opacity: 1;
  filter: drop-shadow(0 2px 6px rgba(30, 86, 49, 0.15));
}

.parallax-banner h2 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.15;
  color: var(--color-charcoal, #2a2a2a);
  text-shadow: none;
}

.parallax-banner h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-forest, #1e5631);
}

.parallax-banner p {
  font-size: clamp(15px, 1.8vw, 17px);
  opacity: 0.85;
  margin: 0;
  font-family: var(--font-body, system-ui);
  text-shadow: none;
  color: #555;
}

@media (max-width: 900px) {
  .parallax-banner {
    background-attachment: scroll;
    min-height: 260px;
    padding: 60px 20px;
  }
}

/* FADE-UP */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e5631 0%, #7cb98a 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   AJUSTE: secciones más juntas, más fluidas
   ════════════════════════════════════════════════════════════ */
.wellness-types {
  padding: 60px 0 40px !important;
}

.featured-marquee {
  padding-top: 40px !important;
  margin-top: 0 !important;
}

.products {
  padding-bottom: 40px !important;
}


/* ════════════════════════════════════════════════════════════
   HERO V3 — Editorial cremoso con curva (basado en mockup)
   ════════════════════════════════════════════════════════════ */
.hero-v3 {
  position: relative;
  background: 
    radial-gradient(ellipse 70% 90% at 78% 50%, rgba(232, 220, 196, 0.6) 0%, rgba(232, 220, 196, 0) 70%),
    radial-gradient(ellipse 50% 60% at 90% 60%, rgba(220, 200, 165, 0.4) 0%, rgba(220, 200, 165, 0) 70%),
    linear-gradient(135deg, #faf7ed 0%, #f4ede0 100%);
  overflow: hidden;
  min-height: 720px;
}

/* Hojas decorativas en el fondo (lado izquierdo) */
.hero-v3-leaf {
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 20 Q60 60 70 130 Q90 160 100 180 Q110 160 130 130 Q140 60 100 20 Z' fill='%237cb98a' opacity='0.18'/%3E%3Cpath d='M100 30 L100 175' stroke='%237cb98a' stroke-width='1.5' opacity='0.3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.hero-v3-leaf--1 {
  width: 220px; height: 220px;
  top: 8%; left: -50px;
  transform: rotate(-25deg);
}
.hero-v3-leaf--2 {
  width: 160px; height: 160px;
  bottom: 25%; left: 4%;
  transform: rotate(45deg);
  opacity: 0.7;
}
.hero-v3-leaf--3 {
  width: 180px; height: 180px;
  top: 45%; left: -30px;
  transform: rotate(15deg);
  opacity: 0.5;
}

/* Grid principal */
.hero-v3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* LADO IZQUIERDO: contenido */
.hero-v3-content {
  padding: 70px 24px 70px 80px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
}

/* Pill con texto centrado */
.hero-v3-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: white;
  border: 1.5px solid #d4e3d8;
  color: #1e5631;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(30, 86, 49, 0.08);
}

.hero-v3-pill .dot {
  color: #7cb98a;
  font-weight: 700;
}

/* Título grande con palabra clave destacada */
.hero-v3-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-v3-title-em {
  font-style: normal;
  color: #1e5631;
  font-weight: 500;
}

/* Separador con hojita */
.hero-v3-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 14px;
  width: fit-content;
}

.hero-v3-divider::before,
.hero-v3-divider::after {
  content: '';
  height: 1.5px;
  background: #1e5631;
  border-radius: 2px;
  opacity: 0.4;
}

.hero-v3-divider::before { width: 24px; }
.hero-v3-divider::after  { width: 60px; }

/* Descripción */
.hero-v3-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-family: var(--font-body, system-ui);
  max-width: 480px;
}

.hero-v3-desc strong {
  color: #1e5631;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}

/* CTAs */
.hero-v3-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  font-family: var(--font-body, system-ui);
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-v3-btn--primary {
  background: #1e5631;
  color: white;
  border: 2px solid #1e5631;
  box-shadow: 0 6px 16px rgba(30, 86, 49, 0.25);
}

.hero-v3-btn--primary:hover {
  background: #14401f;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 86, 49, 0.35);
}

.hero-v3-btn--ghost {
  background: white;
  color: #2a2a2a;
  border: 1.5px solid #d4e3d8;
}

.hero-v3-btn--ghost:hover {
  border-color: #1e5631;
  color: #1e5631;
  transform: translateY(-2px);
}

/* Trust row: rating + 3 badges */
.hero-v3-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 86, 49, 0.1);
}

.hero-v3-rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-v3-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px;
}

.hero-v3-rating strong {
  color: #1e5631;
  font-size: 15px;
  display: inline-block;
  margin-right: 4px;
}

.hero-v3-rating-text {
  font-size: 11px;
  color: #888;
  line-height: 1.3;
  display: block;
}

.hero-v3-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-v3-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
  color: #555;
}

.hero-v3-badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(30, 86, 49, 0.08);
  color: #1e5631;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* LADO DERECHO: visual sin fondo propio — se funde con el fondo del hero */
.hero-v3-visual {
  position: relative;
  height: 100%;
  min-height: 720px;
  background: transparent;  /* Sin color propio — hereda el degradado del hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Eliminado el overlay que creaba la línea */
.hero-v3-visual::before {
  display: none;
}

/* Hoja decorativa muy sutil de fondo */
.hero-v3-visual::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 0;
  width: 220px;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 20 Q60 60 70 130 Q90 160 100 180 Q110 160 130 130 Q140 60 100 20 Z' fill='%237cb98a' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(35deg);
  z-index: 1;
  pointer-events: none;
}

.hero-v3-image {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
  object-position: center center;
  z-index: 3;
}

/* Hoja flotante decorativa abajo a la izquierda */
.hero-v3-floating-leaf {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #1e5631;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(30, 86, 49, 0.3);
  animation: floatLeaf 4s ease-in-out infinite;
}

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── FRANJA DE 4 FEATURES debajo del hero ─── */
.hero-v3-features-strip {
  background: white;
  padding: 24px 24px;
  border-top: 1px solid rgba(0,0,0,0.04);
  margin-top: -2px;
  position: relative;
  z-index: 3;
}

.hero-v3-features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.hero-v3-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-v3-feature-icon {
  width: 44px;
  height: 44px;
  background: white;
  border: 1.5px solid #d4e3d8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-v3-feature div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-v3-feature strong {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.2;
}

.hero-v3-feature span {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
}

/* OCULTAR el hero viejo */
.hero {
  display: none !important;
}

/* ─── MÓVIL ─── */
@media (max-width: 900px) {
  .hero-v3 {
    min-height: auto;
  }

  .hero-v3-grid {
    grid-template-columns: 1fr;
  }

  .hero-v3-content {
    padding: 40px 24px 30px;
    order: 1;
  }

  .hero-v3-visual {
    height: 340px;
    min-height: 340px;
    order: 2;
    background: transparent;
  }

  .hero-v3-visual::before {
    display: none;
  }

  .hero-v3-image {
    max-height: 320px;
  }

  .hero-v3-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-v3-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-v3-leaf--1 { width: 140px; height: 140px; }
  .hero-v3-leaf--2,
  .hero-v3-leaf--3 { display: none; }

  .hero-v3-features-strip {
    padding: 16px;
  }

  .hero-v3-features-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .hero-v3-floating-leaf {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 20px;
    left: 20px;
  }
}


/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE FINAL — ajustes para celular, tablet y desktop
   ═══════════════════════════════════════════════════════════ */

/* Imágenes nunca rebasan su contenedor en ningún dispositivo */
img {
  max-width: 100%;
  height: auto;
}

/* iOS: evitar el zoom auto cuando se hace focus en inputs (font-size mínimo 16px) */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Touch targets mínimos 44px (estándar Apple/Google de accesibilidad) */
@media (max-width: 768px) {
  .btn,
  .pag-btn,
  .cat-card-cart,
  .cat-filter-pill,
  .info-tab {
    min-height: 44px;
  }
}

/* Desactivar efectos de hover en dispositivos táctiles (no quedan "pegados") */
@media (hover: none) and (pointer: coarse) {
  .value-item:hover,
  .cat-card:hover,
  .info-contact-card:hover,
  .cat-guarantee:hover,
  .pag-btn:hover,
  .info-tab:hover,
  .cat-card-image-link:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(30, 86, 49, 0.06) !important;
  }
}

/* ─── PANTALLAS PEQUEÑAS: 480–640px (la mayoría de celulares) ─── */
@media (max-width: 640px) {
  /* Hero de información (las 4 páginas nuevas) */
  .info-hero {
    padding: 36px 24px !important;
    margin: 16px !important;
  }
  .info-hero h1 {
    font-size: 28px !important;
  }
  .info-hero p {
    font-size: 14px !important;
  }
  .info-content {
    padding: 0 16px 40px !important;
  }
  .info-section {
    padding: 28px 0 !important;
  }
  .info-section h2 {
    font-size: 22px !important;
  }
  .info-section h3 {
    font-size: 18px !important;
  }
  .info-section p,
  .info-section li {
    font-size: 14px !important;
  }
  .info-contact-cards {
    grid-template-columns: 1fr !important;
  }
  .info-principles {
    grid-template-columns: 1fr !important;
  }
  
  /* Tabs sticky con scroll horizontal en celular (no se cortan) */
  .info-tabs-inner {
    justify-content: flex-start !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding: 0 16px !important;
    -webkit-overflow-scrolling: touch;
  }
  .info-tab {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Pagination más compacta */
  .cat-pagination { gap: 4px; }
  .pag-btn { min-width: 36px; padding: 0 10px; font-size: 12px; }
  .pag-arrow { padding: 0 12px; }
}

/* ─── PANTALLAS ULTRA PEQUEÑAS: < 400px (iPhone SE 1ra, Galaxy compact) ─── */
@media (max-width: 400px) {
  :root {
    --container-px: 12px;
  }

  /* Header súper compacto */
  .brand-symbol { height: 32px !important; max-width: 32px !important; }
  .brand-name { font-size: 13px !important; }
  .header-inner { gap: 6px !important; }

  /* WhatsApp un poco más chico para que no obstruya */
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 16px !important;
    right: 16px !important;
  }
  .whatsapp-float svg { width: 26px !important; height: 26px !important; }

  /* Información: hero aún más compacto */
  .info-hero {
    padding: 28px 16px !important;
    margin: 8px !important;
    border-radius: 16px !important;
  }
  .info-hero h1 {
    font-size: 22px !important;
  }
  .info-section h2 {
    font-size: 20px !important;
  }
  .info-section h3 {
    font-size: 16px !important;
  }
  .info-callout {
    font-size: 14px !important;
    padding: 16px 18px !important;
  }
}

/* ─── PANTALLAS GRANDES: >= 1400px (desktops 4K, monitores grandes) ─── */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}


/* ════════════════════════════════════════════════════════════
   FRANJA DESTACADOS — 4 imágenes circulares (compact / delicada)
   ════════════════════════════════════════════════════════════ */
.franja-destacados {
  padding: 28px 20px 32px;
  background: transparent;
}

.franja-destacados-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  background: #faf5ea;
  padding: 22px 16px;
  border-radius: 16px;
  border: 1px solid rgba(124, 185, 138, 0.22);
}

.franja-destacados-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
  position: relative;
}

.franja-destacados-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(124, 185, 138, 0.3);
}

.franja-destacados-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(124, 185, 138, 0.4);
  padding: 3px;
  background: white;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(30, 86, 49, 0.05);
}

.franja-destacados-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.franja-destacados-leaf {
  width: 12px;
  height: 12px;
  color: #7cb98a;
  margin-bottom: 6px;
}

.franja-destacados-item h3 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.franja-destacados-item p {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.45;
  margin: 0;
  max-width: 200px;
}

/* Tablet: 2 columnas */
@media (max-width: 1024px) {
  .franja-destacados-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
    padding: 24px 14px;
  }
  .franja-destacados-item::after { display: none !important; }
  .franja-destacados-item:nth-child(odd):not(:last-child)::after {
    display: block !important;
    top: 18%;
    bottom: 18%;
  }
}

/* Móvil: 1 columna */
@media (max-width: 600px) {
  .franja-destacados {
    padding: 20px 12px 24px;
  }
  .franja-destacados-inner {
    grid-template-columns: 1fr;
    padding: 20px 14px;
    gap: 20px;
  }
  .franja-destacados-item::after { display: none !important; }
  .franja-destacados-circle {
    width: 80px;
    height: 80px;
  }
}