/* ============================================================
   THE UMBRELLA HOME — style.css
   Diseño minimalista, orgánico y premium
   ============================================================ */

/* ─── 1. VARIABLES GLOBALES ─────────────────────────────── */
:root {
  /* Paleta principal */
  --color-bg:           #FDF6F3;   /* blanco cálido rosado */
  --color-surface:      #FBEAE4;   /* blush claro — cards, secciones alternas */
  --color-surface-2:    #F5DAD1;   /* blush medio */
  --color-primary:      #3D2430;   /* ciruela oscuro casi negro — headings */
  --color-secondary:    #7A5A62;   /* mauve — textos secundarios */
  --color-accent:       #C0846E;   /* rose gold — CTAs globales */
  --color-accent-light: #F0D3C4;   /* rose gold claro — hover backgrounds */
  --color-accent-dark:  #95573F;   /* texto/ícono blanco sobre fondo accent */
  --color-muted:        #EAD2C8;
  --color-border:       #F1DDD5;
  --color-white:        #FFFFFF;

  /* Acentos por sub-marca */
  --color-msv:          #D1748F;   /* Mamás sin Vergüenza — rosa vivo */
  --color-msv-light:    #F7DCE4;
  --color-msv-dark:     #A5476E;   /* texto/ícono blanco sobre fondo msv */
  --color-amma:         #5FB98A;   /* Ammá Lunch — verde menta */
  --color-amma-light:   #DCF2E6;
  --color-amma-dark:    #2E7A52;   /* texto/ícono blanco sobre fondo amma */
  --color-cool:         #D4A857;   /* Cool Season — dorado festivo */
  --color-cool-light:   #F5E7C4;
  --color-cool-dark:    #8C6A2C;   /* texto/ícono blanco sobre fondo cool */

  /* Estados */
  --color-success:      #4A8C5C;
  --color-error:        #C0392B;
  --color-warning:      #D4A857;

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

  /* Escala tipográfica */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.5rem;    /* 24px */
  --text-2xl:   2rem;      /* 32px */
  --text-3xl:   3rem;      /* 48px */
  --text-4xl:   4rem;      /* 64px */

  /* Espaciado */
  --space-1:    0.25rem;   /* 4px */
  --space-2:    0.5rem;    /* 8px */
  --space-3:    0.75rem;   /* 12px */
  --space-4:    1rem;      /* 16px */
  --space-6:    1.5rem;    /* 24px */
  --space-8:    2rem;      /* 32px */
  --space-12:   3rem;      /* 48px */
  --space-16:   4rem;      /* 64px */
  --space-20:   5rem;      /* 80px */
  --space-24:   6rem;      /* 96px */
  --space-32:   8rem;      /* 128px */

  /* Layout */
  --container-max:  1280px;
  --container-pad:  clamp(1rem, 3vw, 2.5rem); /* fluido: 16px → 40px */
  --section-pad:    7rem;
  --border-radius:  16px;
  --border-radius-lg: 24px;

  /* Sombras */
  --shadow-sm:  0 1px 4px rgba(61, 36, 48, 0.06);
  --shadow-md:  0 4px 16px rgba(61, 36, 48, 0.10);
  --shadow-lg:  0 8px 32px rgba(61, 36, 48, 0.14);

  /* Transiciones */
  --transition:   200ms ease;
  --transition-slow: 350ms ease;

  /* Z-index */
  --z-nav:      100;
  --z-mobile-menu: 200;
  --z-overlay:  300;
  --z-cart:     400;
  --z-whatsapp: 500;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
  touch-action: manipulation;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation; /* elimina el 300ms delay en táctil */
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ─── 3. TIPOGRAFÍA ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 700; }

/* Protección global: evita que el texto rompa el layout en resoluciones pequeñas */
h1, h2, h3, h4, h5, h6, p, li, td, th { overflow-wrap: break-word; word-break: break-word; }

p { margin-bottom: var(--space-4); color: var(--color-secondary); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-secondary);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

.brand-logo-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: var(--space-2);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* ─── 4. LAYOUT UTILS ───────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background-color: var(--color-surface);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-header {
  max-width: 680px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.section-dark .section-title,
.section-dark p,
.section-dark .section-subtitle { color: var(--color-accent-light); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ─── 5. BOTONES ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  min-height: 44px; /* WCAG touch target mínimo */
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  border-color: var(--color-accent-dark);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  border-color: #1da851;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1.125rem 2.75rem;
  font-size: var(--text-base);
}

/* Acent buttons por sub-marca */
.btn-msv  { background-color: var(--color-msv-dark); border-color: var(--color-msv-dark); color: #fff; }
.btn-msv:hover { background-color: #8a3a5c; border-color: #8a3a5c; }
.btn-amma { background-color: var(--color-amma-dark); border-color: var(--color-amma-dark); color: #fff; }
.btn-amma:hover { background-color: #256143; border-color: #256143; }
.btn-cool { background-color: var(--color-cool-dark); border-color: var(--color-cool-dark); color: #fff; }
.btn-cool:hover { background-color: #745821; border-color: #745821; }

/* ─── 6. NAVEGACIÓN ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background-color: rgba(253, 246, 243, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  /* min-width:0 permite que el logo se achique en vez de empujar
     el carrito/hamburger fuera de la pantalla en viewports angostos */
  min-width: 0;
  flex-shrink: 1;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-logo-main {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo-sub {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-3);
  right: var(--space-3);
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.nav-link-amma { color: var(--color-amma); }
.nav-link.nav-link-amma:hover { color: #4e7a52; }
.nav-link.nav-link-cool { color: var(--color-cool); }
.nav-link.nav-link-cool:hover { color: #a08030; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
  position: relative;
}

.cart-btn:hover { background-color: var(--color-surface); }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
}

.cart-badge.empty { display: none; }

/* ─── 7. MENÚ MOBILE ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
}

.hamburger:hover { background-color: var(--color-surface); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: var(--z-mobile-menu);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12);
}

.mobile-menu.open { display: flex; }

.mobile-menu-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--border-radius);
}

.mobile-menu-close:hover { background-color: rgba(255,255,255,0.1); }

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-accent-light);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  border-radius: var(--border-radius);
}

.mobile-nav-link:hover  { color: var(--color-white); }
.mobile-nav-link:active { background-color: rgba(255,255,255,0.08); color: var(--color-white); }

/* Colores por sub-marca */
.mobile-nav-link.msv  { color: var(--color-msv); }
.mobile-nav-link.amma { color: var(--color-amma); }
.mobile-nav-link.cool { color: var(--color-cool); }
.mobile-nav-link.msv:hover  { color: var(--color-msv-light); }
.mobile-nav-link.amma:hover { color: var(--color-amma-light); }
.mobile-nav-link.cool:hover { color: var(--color-cool-light); }

.mobile-divider {
  width: 40px;
  height: 1px;
  background-color: rgba(255,255,255,0.15);
  margin: var(--space-2) auto;
}

/* ─── 8. HERO PRINCIPAL ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #6E2F49 0%,
    #A5476E 30%,
    #C0846E 60%,
    #D4A857 100%
  );
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(61, 36, 48, 0.3) 0%,
    rgba(61, 36, 48, 0.55) 60%,
    rgba(61, 36, 48, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  max-width: 860px;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-6);
  display: block;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

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

/* ─── 9. HERO SUB-PÁGINAS ───────────────────────────────── */
.hero-sub {
  padding: calc(72px + var(--space-20)) 0 var(--space-20);
  text-align: center;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hero-sub-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
}

.hero-sub-subtitle {
  font-size: var(--text-lg);
  color: var(--color-secondary);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto;
}

/* Hero de sub-marca con color */
.hero-brand {
  padding: calc(72px + var(--space-20)) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 80%, currentColor 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, currentColor 0%, transparent 50%);
}

.hero-brand-inner {
  position: relative;
  z-index: 1;
}

.hero-brand-title {
  font-size: clamp(1.875rem, 5vw, 4rem);
  margin-bottom: var(--space-4);
}

.hero-brand-subtitle {
  font-size: var(--text-xl);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

/* ─── 10. HUB TRIPLE ────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 80vh;
}

.hub-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.hub-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease;
}

.hub-card:hover .hub-card-photo {
  transform: scale(1.06);
}

/* Capa de color de marca sobre la foto (duotono), en vez de ser el fondo */
.hub-card-bg {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.55;
  transition: opacity var(--transition-slow);
}

.hub-card:hover .hub-card-bg {
  opacity: 0.4;
}

.hub-card-1 .hub-card-bg {
  background: linear-gradient(135deg, #D1748F 0%, #A5476E 40%, #6E2F49 100%);
}

.hub-card-2 .hub-card-bg {
  background: linear-gradient(135deg, #5FB98A 0%, #3E8F68 40%, #1F5A40 100%);
}

.hub-card-3 .hub-card-bg {
  background: linear-gradient(135deg, #D4A857 0%, #B8863F 40%, #7A5A20 100%);
}

.hub-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,12,4,0.85) 0%, rgba(20,12,4,0.3) 50%, transparent 100%);
  transition: background var(--transition-slow);
}

.hub-card:hover .hub-card-overlay {
  background: linear-gradient(to top, rgba(20,12,4,0.92) 0%, rgba(20,12,4,0.5) 60%, rgba(20,12,4,0.1) 100%);
}

.hub-card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-12) var(--space-8);
  width: 100%;
  transform: translateY(8px);
  transition: transform var(--transition-slow);
}

.hub-card:hover .hub-card-content {
  transform: translateY(0);
}

.hub-card-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-3);
  display: block;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.hub-card-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-slow);
  opacity: 0;
}

.hub-card:hover .hub-card-desc {
  max-height: 80px;
  opacity: 1;
}

/* ─── 11. SECCIÓN ALE (HOME) ────────────────────────────── */
.ale-section {
  padding: var(--section-pad) 0;
}

.ale-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-20);
  align-items: center;
}

.ale-image {
  position: relative;
}

.ale-img-wrap {
  aspect-ratio: 3/4;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #D4C4B0 0%, #B8A090 100%);
  position: relative;
}

.ale-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ale-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}

.ale-img-accent {
  position: absolute;
  bottom: -var(--space-4);
  right: -var(--space-4);
  width: 120px;
  height: 120px;
  background-color: var(--color-accent-light);
  border-radius: 50%;
  z-index: -1;
}

.ale-text .eyebrow { margin-bottom: var(--space-4); }

.ale-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.ale-text p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* ─── 12. CARDS GENERALES ───────────────────────────────── */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.card-img {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #D4C4B0 0%, #B8A090 100%);
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(100,80,60,0.5);
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.card-price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

/* ─── 13. BADGES ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.badge-available {
  background-color: #E6F4EA;
  color: var(--color-success);
}

.badge-coming {
  background-color: var(--color-surface-2);
  color: var(--color-secondary);
}

/* ─── 14. CARDS DE EVENTOS ──────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.event-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.event-card-img {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

.event-card-img .card-img-placeholder {
  background: linear-gradient(135deg, var(--color-msv-light), var(--color-msv));
  color: rgba(255,255,255,0.7);
}

.event-type-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.event-card-body {
  padding: var(--space-6);
}

.event-date {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.event-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.event-card-desc {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.event-price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-msv);
}

/* ─── 15. PRODUCTOS DIGITALES ───────────────────────────── */
.digital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.digital-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.digital-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.digital-card-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.digital-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.digital-format {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.digital-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.digital-card-desc {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}

.digital-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.digital-price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-msv);
}

/* ─── 16. TIENDA — TABS ─────────────────────────────────── */
.store-tabs {
  position: sticky;
  top: 72px;
  z-index: 50;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--container-pad);
}

.store-tabs-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  background: none;
  border-radius: 0;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active[data-tab="amma"] {
  color: var(--color-amma);
  border-bottom-color: var(--color-amma);
}

.tab-btn.active[data-tab="cool"] {
  color: var(--color-cool);
  border-bottom-color: var(--color-cool);
}

.tab-panel {
  display: none;
  padding: var(--space-16) 0;
}

.tab-panel.active { display: block; }

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

.universe-header .eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-3);
}

.universe-header .eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background-color: currentColor;
}

.universe-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.universe-desc {
  font-size: var(--text-lg);
  color: var(--color-secondary);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}

/* Filtro de categorías */
.category-filter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.cat-btn {
  padding: 0.5rem 1.25rem;
  min-height: 40px; /* touch target cómodo */
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  touch-action: manipulation;
}

.cat-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cat-btn.active { background-color: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* Grid de productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.product-img {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.amma-placeholder { background: linear-gradient(145deg, var(--color-amma-light), var(--color-amma)); }
.cool-placeholder { background: linear-gradient(145deg, var(--color-cool-light), var(--color-cool)); }

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

.product-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}

.product-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.product-price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

/* ─── 17. CARRITO SIDEBAR ───────────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(61, 36, 48, 0.5);
  backdrop-filter: blur(3px);
  z-index: var(--z-overlay);
  cursor: pointer;
}

.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background-color: var(--color-white);
  z-index: var(--z-cart);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms ease-out;
  box-shadow: var(--shadow-lg);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
}

.cart-close:hover { background-color: var(--color-surface); color: var(--color-primary); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--border-radius-lg);
  transition: background-color var(--transition);
}

.cart-item:hover { background-color: var(--color-surface); }

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-muted));
}

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

.cart-item-info { min-width: 0; }

.cart-item-universe {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.universe-amma { color: var(--color-amma); }
.universe-cool { color: var(--color-cool); }
.universe-general { color: var(--color-secondary); }

.cart-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-1);
}

.cart-item-qty {
  font-size: var(--text-xs);
  color: var(--color-secondary);
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.cart-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  font-size: 1.1rem;
  margin-top: var(--space-2);
}

.cart-remove:hover { color: var(--color-error); background-color: #FEE2E2; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: var(--space-12);
  color: var(--color-secondary);
}

.cart-empty-icon { font-size: 3rem; margin-bottom: var(--space-4); opacity: 0.3; }

.cart-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-secondary);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.cart-total-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}

.cart-total-amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.cart-cta { width: 100%; }

/* ─── 18. SOBRE ALE ─────────────────────────────────────── */
.story-section {
  padding: var(--section-pad) 0;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
  margin-bottom: var(--section-pad);
}

.story-block:last-of-type { margin-bottom: 0; }

.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }

.story-img {
  aspect-ratio: 4/5;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #D4C4B0, #B8A090);
  position: relative;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: rgba(100,80,60,0.5);
  letter-spacing: 0.1em;
}

.story-text .eyebrow { margin-bottom: var(--space-3); }

.story-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-6);
}

.story-text p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-secondary);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.valor-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background-color: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.valor-icon svg { width: 24px; height: 24px; color: var(--color-accent); }

.valor-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.valor-desc {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.65;
}

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

.portal-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform var(--transition);
}

.portal-card:hover { transform: translateY(-4px); }
.portal-card:hover .portal-card-overlay { opacity: 0.65; }

.portal-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 500ms ease;
}

.portal-card:hover .portal-card-bg { transform: scale(1.05); }

.portal-msv .portal-card-bg {
  background: linear-gradient(145deg, var(--color-msv-light), var(--color-msv));
}

.portal-amma .portal-card-bg {
  background: linear-gradient(145deg, var(--color-amma-light), var(--color-amma));
}

.portal-cool .portal-card-bg {
  background: linear-gradient(145deg, var(--color-cool-light), var(--color-cool));
}

.portal-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,12,4,0.8) 0%, transparent 60%);
  opacity: 0.5;
  transition: opacity var(--transition-slow);
}

.portal-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 1;
}

.portal-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.portal-card-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ─── 19. CONTACTO ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}

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

.form-control {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(156, 111, 58, 0.15);
}

.form-control.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-control.success { border-color: var(--color-success); }

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

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  background-color: #E6F4EA;
  border: 1px solid #A8D5B5;
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
}

.form-success h4 { color: var(--color-success); margin-bottom: var(--space-2); }
.form-success p { color: var(--color-success); margin: 0; }

.form-error-global {
  background-color: #FEE2E2;
  border: 1px solid #FCA5A5;
  border-radius: var(--border-radius);
  padding: var(--space-4);
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.contact-info {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  position: sticky;
  top: calc(72px + var(--space-8));
}

.contact-info-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-of-type { border-bottom: none; }

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 18px; height: 18px; color: var(--color-accent); }

.contact-info-text h6 { margin-bottom: 0.2rem; }
.contact-info-text p { font-size: var(--text-sm); margin: 0; }

/* ─── 20. FAQ ACORDEÓN ──────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  transition: color var(--transition);
}

.faq-trigger:hover { color: var(--color-accent); }

.faq-trigger[aria-expanded="true"] { color: var(--color-accent); }

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-trigger[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}

.faq-body.open { max-height: 400px; }

.faq-body-inner {
  padding: 0 0 var(--space-6);
  font-size: var(--text-base);
  color: var(--color-secondary);
  line-height: 1.75;
}

/* ─── 21. WHATSAPP FLOTANTE ─────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.whatsapp-tooltip {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg { width: 28px; height: 28px; }

/* ─── 22. FOOTER ────────────────────────────────────────── */
.footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.footer-social-link svg { width: 18px; height: 18px; }

.footer-col h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

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

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.footer-legal-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-legal-link:hover { color: rgba(255,255,255,0.7); }

/* ─── 23. UTILIDADES ────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.icon {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── 24. RESPONSIVE ────────────────────────────────────── */

/* Tablet: ≤1024px */
@media (max-width: 1024px) {
  :root {
    --section-pad: 5rem;
  }

  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .nav-inner  { gap: var(--space-4); }

  .hub-grid { grid-template-columns: 1fr 1fr 1fr; min-height: 60vh; }
  .hub-card { min-height: 380px; }

  .ale-inner { grid-template-columns: 340px 1fr; gap: var(--space-12); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: 100%; grid-column: 1 / -1; }
}

/* Tablet pequeña: ≤768px */
@media (max-width: 768px) {
  :root {
    --section-pad: 4rem;
  }

  /* ── Nav mobile ─────────────── */
  .nav-inner {
    gap: var(--space-3);
    padding: 0 1.25rem;
  }
  .nav-logo-main { font-size: 1rem; }
  .cart-btn      { padding: var(--space-2) var(--space-2); }
  .nav-actions   { gap: var(--space-2); }
  /* El hamburger y carrito siempre visibles */
  .hamburger     { display: flex !important; flex-shrink: 0; }

  /* ── Hub ───────────────────── */
  .hub-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-3);
  }
  .hub-card { min-height: 280px; border-radius: var(--border-radius-lg); }
  .hub-card .hub-card-desc {
    max-height: 80px;
    opacity: 1;
  }

  /* ── Ale section ────────────── */
  .ale-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .ale-image { max-width: min(340px, 100%); margin: 0 auto; }

  /* ── Grids de contenido ─────── */
  .events-grid   { grid-template-columns: 1fr; }
  .digital-grid  { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Sobre Ale ──────────────── */
  .story-block { grid-template-columns: 1fr; gap: var(--space-8); }
  .story-block.reverse { direction: ltr; }
  .valores-grid { grid-template-columns: 1fr; text-align: left; gap: var(--space-6); }
  .valor-icon   { margin: 0 0 var(--space-3); }
  .portals-grid { grid-template-columns: 1fr; }
  .portal-card  { aspect-ratio: 16/7; }

  /* ── Carrito: ancho total ────── */
  .cart-sidebar { width: 100vw; max-width: 100vw; }

  /* ── Tienda tabs: scroll horizontal ──── */
  .store-tabs       { padding: 0; overflow-x: hidden; }
  .store-tabs-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 1.25rem; }
  .store-tabs-inner::-webkit-scrollbar { display: none; }
  .tab-btn          { padding: var(--space-4) var(--space-5); font-size: var(--text-sm); flex-shrink: 0; }

  /* ── Categorías: scroll horizontal ───── */
  .category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
  .category-filter::-webkit-scrollbar { display: none; }
  .cat-btn { flex-shrink: 0; }

  /* ── Footer ──────────────────── */
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: var(--space-5); right: var(--space-5); }
}

/* Mobile: ≤480px */
@media (max-width: 480px) {
  :root {
    --section-pad: 3rem;
  }

  /* ── Nav: comprimir al máximo sin perder elementos ─── */
  .nav-inner {
    height: 56px;
    gap: 8px;
    padding: 0 1rem;
  }
  .nav-logo-main { font-size: 0.875rem; }
  .nav-logo-sub  { display: none; }
  .nav-actions   { gap: 6px; flex-shrink: 0; }
  .cart-btn      { padding: 6px 8px; min-width: 40px; }
  .cart-badge    { min-width: 16px; height: 16px; font-size: 9px; }
  .hamburger     { width: 36px; height: 36px; gap: 4px; }
  .hamburger span { width: 20px; }

  /* Store tabs sticky: ajustada al nav de 56px */
  .store-tabs { top: 56px; }

  /* Hero sub-páginas: compensar nav más pequeño */
  .hero-sub   { padding-top: calc(56px + 2.5rem); }
  .hero-brand { padding-top: calc(56px + 2.5rem); }

  /* Hero actions */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  /* Grids: una columna */
  .digital-grid  { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hub-card      { min-height: 200px; }
  .hub-card-content { padding: var(--space-5) var(--space-4); }

  /* Tab buttons más compactos */
  .tab-btn { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); }

  /* Cards: padding reducido */
  .card-body           { padding: var(--space-4); }
  .product-card-body   { padding: var(--space-4); }
  .digital-card-body   { padding: var(--space-4); }
  .event-card-body     { padding: var(--space-4); }

  /* Product footer: apilar precio y botón en pantallas muy estrechas */
  .product-footer,
  .digital-card-footer,
  .event-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .product-footer .btn,
  .digital-card-footer .btn,
  .event-card-footer .btn { width: 100%; justify-content: center; }

  /* Section header más compacto */
  .section-header { margin-bottom: var(--space-10); }

  /* Contact info sin sticky en móvil */
  .contact-info { padding: var(--space-5); }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; }
  .footer-grid   { gap: var(--space-8); }
}

/* ── Tablet media: hub 2 cols (entre 481px y 768px) ────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  /* Primera card (MSV) ocupa todo el ancho — más impacto visual */
  .hub-card:first-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }
  .hub-card { min-height: 200px; }
}

/* ── Dispositivos táctiles: quitar hovers que se "pegan" ────── */
@media (hover: none) {
  /* Sin elevación al tocar cards */
  .card:hover,
  .product-card:hover,
  .event-card:hover,
  .digital-card:hover,
  .portal-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Feedback táctil con :active en lugar de :hover */
  .product-card:active,
  .event-card:active,
  .digital-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
  }

  /* Hub: descripción siempre visible (no depende de hover) */
  .hub-card .hub-card-desc {
    max-height: 80px;
    opacity: 1;
  }
  .hub-card .hub-card-content { transform: translateY(0); }
  .hub-card .hub-card-bg      { transform: none !important; }

  /* Tooltip de WhatsApp: oculto en táctil */
  .whatsapp-tooltip { display: none; }

  /* Botones de nav: feedback táctil */
  .cart-btn:active,
  .hamburger:active { background-color: var(--color-surface-2); }
}

/* Teléfonos pequeños: ≤360px (Androids budget, Samsung Galaxy A) */
@media (max-width: 360px) {
  /* Nav: ajuste fino para logos largos */
  .nav-logo-main { font-size: 0.8rem; letter-spacing: -0.01em; }
  .hamburger     { width: 34px; height: 34px; }
  .cart-btn      { min-width: 38px; padding: 5px 6px; }

  /* Textos de soporte más compactos */
  .hero-subtitle, .section-subtitle { font-size: 0.9375rem; line-height: 1.65; }
  .lead { font-size: 1rem; }

  /* Botones de hero apilados y más pequeños */
  .hero-actions .btn { padding: 0.75rem 1.5rem; font-size: 0.7rem; }

  /* Menu móvil: links un poco más pequeños para que quepan bien */
  .mobile-nav-link { font-size: 1.625rem; min-height: 52px; }

  /* Cards: sin padding lateral exagerado */
  .product-card-body,
  .digital-card-body,
  .event-card-body { padding: 0.875rem; }

  /* WhatsApp float: más cerca del borde */
  .whatsapp-float { bottom: var(--space-4); right: var(--space-4); }
  .whatsapp-btn   { width: 52px; height: 52px; }
  .whatsapp-btn svg { width: 24px; height: 24px; }

  /* Footer: sin gap excesivo */
  .footer-grid { gap: var(--space-6); }
  .footer-logo { font-size: var(--text-lg); }
}

/* Teléfonos muy pequeños: ≤320px (iPhone SE 1ra gen, Galaxy S5) */
@media (max-width: 320px) {
  .nav-logo-main { font-size: 0.72rem; }
  .cart-btn      { min-width: 34px; padding: 5px; }
  .hamburger     { width: 30px; height: 30px; }
  .hamburger span { width: 18px; }
  .nav-actions   { gap: 4px; }

  /* Una columna forzada para todo */
  .digital-grid,
  .products-grid { grid-template-columns: 1fr; }

  /* Sección contacto */
  .contact-info { padding: var(--space-4); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll { animation: none; }
}

/* ─── IMÁGENES REALES E ILUSTRACIONES (rediseño 2026-07) ──── */
.ale-img-wrap img,
.story-img img,
.digital-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fotos reales de producto/evento: relación de aspecto muy variable
   (retrato, cuadrada, horizontal). object-fit:contain evita recortar
   partes del producto o de las personas; el fondo de la tarjeta rellena
   el espacio sobrante en vez de "cortar" la foto. */
.product-img,
.event-card-img {
  background-color: var(--color-surface);
}

.product-img img,
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
