/* ==========================================================================
   CSS PRINCIPAL - HYGSA (SALUD + ESTÉTICA)
   Estilo: Premium, Moderno, Mobile-First, Transiciones Fluidas
   ========================================================================== */

/* 1. IMPORTACIONES & FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* 2. VARIABLES DEL SISTEMA DE DISEÑO */
:root {
  /* Fondos Higiénicos / Quirúrgicos */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F3F4F6;
  
  /* Contrastes Oscuros Premium (Efecto Fondo Logotipo) */
  --bg-dark: #0B0B0B;
  --bg-dark-card: #141414;
  --text-light: #F9FAFB;
  --text-light-muted: #9CA3AF;
  
  /* Textos Principales */
  --text-dark: #111827;
  --text-dark-muted: #4B5563;
  --text-dark-light: #9CA3AF;
  
  /* Acentos de Marca */
  --color-mint: #10B981;             /* Verde Menta / Esmeralda */
  --color-mint-light: #ECFDF5;
  --color-mint-dark: #059669;
  
  /* Gradiente Líquido HyGSA (Ondas del Logo) */
  --grad-hygsa: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F97316 100%);
  --grad-hygsa-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(236, 72, 153, 0.4) 50%, rgba(249, 115, 22, 0.4) 100%);
  --grad-hygsa-text: linear-gradient(135deg, #7C3AED 20%, #EC4899 60%, #F97316 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  
  --glass-dark-bg: rgba(15, 15, 15, 0.8);
  --glass-dark-border: rgba(255, 255, 255, 0.08);
  
  /* Tipografías */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Bordes & Sombras */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* 3. RESET & ESTILOS GLOBALES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

button, input, select {
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 4. UTILERÍAS & BOTONES */
.gradient-text {
  background: var(--grad-hygsa-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--grad-hygsa);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-hygsa-hover);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-outline {
  border: 1px solid var(--text-dark-muted);
  color: var(--text-dark);
  background-color: transparent;
}

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

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* 5. NAV/HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8); /* Blanco Puro con Glassmorphism */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.95); /* Blanco Puro con Glassmorphism */
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
  height: 64px;
}

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

.logo img {
  height: 70px; /* Aumentado en 20% adicional (de 58px a 70px) */
  width: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.header.scrolled .logo img {
  height: 56px; /* Aumentado en 20% adicional (de 46px a 56px) */
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-hygsa);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-dark);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Menú Hamburguesa Móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

/* 6. HERO SECTION (Fondo Oscuro Premium) */
.hero {
  background-color: #FAF9F6; /* Blanco Hueso */
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  z-index: 10;
}

/* Fondo decorativo con gradiente líquido */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, rgba(236,72,153,0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 15;
}

.badge-salud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-mint);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-salud .dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-dark-muted);
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 400; /* Ligeramente más grueso para legibilidad óptima */
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hero-outline {
  border: 1px solid var(--text-dark-muted);
  color: var(--text-dark);
}

.btn-hero-outline:hover {
  background-color: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 12;
  height: 480px;
}

/* Composición Digital Abstracta SVG */
.hero-svg-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 480px;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 416px; /* Aumentado en 30% para notebooks y desktops (de 320px a 416px) */
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 7. CATEGORÍAS (SERVICIOS) */
.categories-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--color-mint);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  font-weight: 800;
}

/* REFACTORIZACIÓN SECCIÓN CATEGORÍAS (NUESTRAS LÍNEAS) - APILAMIENTO VERTICAL */
.categories-stacked-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.category-card-stacked {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid #ECEFF1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  z-index: 10;
}

.category-card-stacked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--grad-hygsa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.category-card-stacked:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.category-card-stacked:hover::before {
  opacity: 1;
}

.category-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.icon-cosmetica {
  background-color: rgba(236, 72, 153, 0.08);
  color: #EC4899;
}

.icon-cuidado {
  background-color: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
}

.icon-salud {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--color-mint);
}

/* Distribución del texto en las tarjetas */
.category-text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.category-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.category-card-stacked h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
}

.category-card-stacked p {
  color: var(--text-dark-muted);
  font-size: 1.05rem;
  max-width: 800px;
}

.category-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.category-link i {
  transition: transform 0.2s ease;
}

.category-card-stacked:hover .category-icon-box {
  transform: scale(1.1);
}

.category-card-stacked:hover .category-link i {
  transform: translateX(4px);
}

/* Grilla Multimedia para la vertical 1 */
.category-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  width: 100%;
}

.media-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-secondary);
  border: 1px solid #ECEFF1;
  transition: var(--transition-smooth);
}

.media-container img, 
.media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.media-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.media-container.img-container:hover img {
  transform: scale(1.05);
}

/* Disposición horizontal optimizada en desktop para tarjetas 2 y 3 */
@media (min-width: 1025px) {
  .category-text-content.horizontal-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  
  .category-header-side {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    width: 25%;
  }
  
  .category-header-side h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0;
  }
  
  .category-description-side {
    width: 55%;
  }
  
  .category-action-side {
    width: 20%;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

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

@media (max-width: 768px) {
  .category-card-stacked {
    padding: 30px;
  }
  
  .category-media-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 8. MARCAS ALIADAS (MARQUEE) */
.brands-section {
  padding: 60px 0;
  background-color: #E6F7F4; /* Verde agua premium */
  border-top: 1px solid #C4ECE5;
  border-bottom: 1px solid #C4ECE5;
  overflow: hidden;
}

.brands-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #0A4D43; /* Verde muy oscuro para legibilidad sobresaliente */
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  font-weight: 700;
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  gap: 80px;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 25s linear infinite;
  align-items: center;
  justify-content: space-around;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #123C37; /* Verde azulado oscuro para un contraste óptimo */
  opacity: 0.6;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.marquee-item:hover {
  opacity: 1;
  color: #072622;
  transform: scale(1.05); /* Micro-animación premium en hover */
}

/* 9. CATALOGO INTELIGENTE */
.catalog-section {
  padding: 100px 0;
  background-color: #FAFAFA;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  align-items: center;
}

/* Buscador */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.search-input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-full);
  padding: 14px 24px 14px 52px;
  font-size: 0.95rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: #EC4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark-light);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Tabs */
.tabs-container {
  display: flex;
  gap: 8px;
  background-color: rgba(229, 231, 235, 0.5);
  padding: 6px;
  border-radius: var(--radius-full);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none; /* Firefox */
}

.tabs-container::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.tab-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background-color: var(--bg-dark);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid #ECEFF1;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  padding: 1px;
  background: var(--grad-hygsa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

.product-image-box {
  background-color: #F8F9FA;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image-box img {
  height: 80%;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-cosmetica {
  background-color: rgba(236, 72, 153, 0.1);
  color: #EC4899;
}

.tag-cuidado-personal {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}

.tag-salud {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-mint-dark);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  flex-grow: 0;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Hover del Product Card */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover .product-image-box img {
  transform: scale(1.05);
}

/* No results state */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px dashed #E5E7EB;
  color: var(--text-dark-muted);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-dark-light);
  margin-bottom: 16px;
}

/* 10. MODAL DE DETALLE (QUICK VIEW) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 11, 11, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-primary);
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  max-height: calc(100vh - 48px);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(229, 231, 235, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 20;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--text-dark);
  color: white;
}

.modal-image-area {
  background-color: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.modal-image-area img {
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.modal-details-area {
  padding: 48px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-badge-container {
  margin-bottom: 24px;
}

.modal-desc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark-light);
  margin-bottom: 8px;
}

.modal-desc-long {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 11. FOOTER (Fondo Oscuro Premium) */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 74px; /* Aumentado en 20% adicional (de 62px a 74px) */
  border-radius: var(--radius-sm);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-desc {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
  font-weight: 300;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-light-muted);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: var(--grad-hygsa);
  color: white;
  transform: translateY(-2px);
  border-color: transparent;
}

.footer-links-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.footer-links-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--grad-hygsa);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: white;
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--color-mint);
  margin-top: 4px;
  font-size: 1.1rem;
}

.footer-contact-text {
  line-height: 1.4;
}

.footer-contact-text strong {
  color: white;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

/* 12. ANIMACIONES & EFECTOS DE SCROLL */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Scroll Reveal Classes (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ANIMACIÓN DE HOJAS DE OTOÑO (HOJAS DE ARCE) */
.leaves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 11;
}

.leaf {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  animation: fall linear infinite;
  transform-origin: center;
}

.leaf svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.leaf-1 { left: 10%; width: 28px; height: 28px; animation-duration: 9s; animation-delay: 0s; }
.leaf-2 { left: 25%; width: 20px; height: 20px; animation-duration: 13s; animation-delay: 2s; }
.leaf-3 { left: 45%; width: 32px; height: 32px; animation-duration: 11s; animation-delay: 4s; }
.leaf-4 { left: 65%; width: 24px; height: 24px; animation-duration: 10s; animation-delay: 1s; }
.leaf-5 { left: 80%; width: 30px; height: 30px; animation-duration: 15s; animation-delay: 3s; }
.leaf-6 { left: 90%; width: 22px; height: 22px; animation-duration: 12s; animation-delay: 5s; }

@keyframes fall {
  0% {
    top: -5%;
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    top: 105%;
    transform: translate(60px, 110vh) rotate(360deg);
    opacity: 0;
  }
}

/* 13. DISEÑO RESPONSIVO (MOBILE-FIRST) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-visual {
    order: -1;
    height: 380px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
    margin-bottom: 20px;
    align-items: center;
    text-align: center;
  }
  
  .footer-desc {
    max-width: 480px;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
  }
  
  .modal-image-area {
    padding: 30px;
    height: 240px;
  }
  
  .modal-image-area img {
    max-height: 200px;
  }
  
  .modal-details-area {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #FFFFFF; /* Blanco Puro en móvil */
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    transition: var(--transition-smooth);
    z-index: 105;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Animación del menú hamburguesa */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
  
  .nav-actions {
    display: none; /* Oculto en móvil */
  }
  
  .nav-menu .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-top: 20px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    height: 300px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
