/* ================================================================
   COPIATODO - Sistema de Diseño Principal
   Versión: 1.0.0
================================================================ */

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

/* ── Variables / Design Tokens ── */
:root {
  /* Paleta de marca */
  --brand-orange:       #F07720;
  --brand-orange-light: #FF9340;
  --brand-orange-dark:  #D45E0A;
  --brand-purple:       #2D2B8F;
  --brand-purple-light: #3D3BAF;
  --brand-purple-dark:  #1E1C6E;

  /* Escala de grises */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Texto */
  --text-primary:   #111827;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --text-white:     #FFFFFF;

  /* Fondos */
  --bg-white:   #FFFFFF;
  --bg-light:   #F8F9FF;
  --bg-section: #F3F4F6;

  /* Tipografía */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Espaciado base */
  --section-pad: 6rem 0;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.15);
  --shadow-orange: 0 8px 25px rgba(240,119,32,0.35);
  --shadow-purple: 0 8px 25px rgba(45,43,143,0.25);

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

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

  /* Navbar */
  --navbar-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utilidades ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-title span {
  color: var(--brand-orange);
}

.section-title--light { color: var(--text-white); }
.section-title--light span { color: var(--brand-orange-light); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 0.75rem;
}

.section-subtitle--light { color: rgba(255,255,255,0.8); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: rgba(240,119,32,0.12);
  color: var(--brand-orange);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--brand-orange);
  color: white;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(240,119,32,0.45);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
}
.btn-outline-orange:hover {
  background: var(--brand-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-purple {
  background: var(--brand-purple);
  color: white;
  box-shadow: var(--shadow-purple);
}
.btn-purple:hover {
  background: var(--brand-purple-light);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: var(--transition-base);
}

#navbar.transparent {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo en navbar */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-base);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.02em;
  transition: var(--transition-base);
}

.navbar-logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

#navbar.transparent .navbar-logo-name { color: white; }
#navbar.transparent .navbar-logo-tagline { color: rgba(255,255,255,0.7); }

/* Links de navegación — desktop (dentro del header) */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Desktop: aplana la estructura del drawer para mostrar links en fila ── */
@media (min-width: 769px) {
  /* Los wrappers del drawer son transparentes en desktop */
  .navbar-menu-links,
  .navbar-menu-footer {
    display: contents; /* los hijos participan directamente en el flex del navbar-menu */
  }

  /* Ocultar elementos que solo existen en el drawer móvil */
  .navbar-menu-header,
  .navbar-menu-close,
  .navbar-link-arrow,
  .navbar-overlay {
    display: none !important;
  }

  /* El drawer móvil (#navbar-menu fuera del header) nunca visible en desktop */
  #navbar-menu {
    display: none !important;
  }
}

.navbar-link {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: white;
  transition: var(--transition-base);
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 2.2rem);
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.navbar-link:hover { color: var(--brand-orange-light); }
.navbar-link:hover::after { transform: translateX(-50%) scaleX(1); }

#navbar.scrolled .navbar-link { color: var(--text-secondary); }
#navbar.scrolled .navbar-link:hover { color: var(--brand-orange); }

.navbar-link.active { color: var(--brand-orange) !important; }
.navbar-link.active::after { transform: translateX(-50%) scaleX(1); }

.navbar-cta {
  padding: 0.55rem 1.4rem;
  background: var(--brand-orange);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-orange);
}

.navbar-cta:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240,119,32,0.45);
}

.navbar-cta::after { display: none; }

/* ── Hamburger Button (HIG: mínimo 44×44pt de touch target) ── */
.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 12px;
  background: transparent;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.navbar-toggle:active {
  background: rgba(255,255,255,0.15);
}
#navbar.scrolled .navbar-toggle:active {
  background: rgba(45,43,143,0.1);
}

/* Icono hamburger — 3 líneas SVG animadas */
.navbar-toggle .hb-icon {
  position: relative;
  width: 22px;
  height: 16px;
}

.navbar-toggle .hb-line {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              width 0.3s ease;
  transform-origin: center;
}

.navbar-toggle .hb-line:nth-child(1) { top: 0; }
.navbar-toggle .hb-line:nth-child(2) { top: 7px; }
.navbar-toggle .hb-line:nth-child(3) { top: 14px; width: 14px; }

#navbar.scrolled .navbar-toggle .hb-line { background: var(--text-primary); }

/* Hamburger azul para páginas de fondo blanco (blog, etc.) */
.navbar-toggle--dark .hb-line { background: var(--brand-purple) !important; }
.navbar-toggle--dark:active    { background: rgba(45,43,143,0.1); }

/* Estado activo → X */
.navbar-toggle.active .hb-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.active .hb-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-toggle.active .hb-line:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO SLIDER ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide.prev   { opacity: 0; z-index: 0; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide-bg { transform: scale(1); }

/* Overlay degradado */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30,28,110,0.88) 0%,
    rgba(45,43,143,0.75) 40%,
    rgba(240,119,32,0.15) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: var(--navbar-height);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(240,119,32,0.25);
  border: 1px solid rgba(240,119,32,0.5);
  color: var(--brand-orange-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.6s ease forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease 0.1s forwards;
  opacity: 0;
}

.hero-title em {
  font-style: normal;
  color: var(--brand-orange-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

/* Controles del hero */
.hero-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
}

.hero-dot.active {
  width: 28px;
  background: var(--brand-orange);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 1.2rem;
}

.hero-arrow:hover { background: var(--brand-orange); border-color: var(--brand-orange); }
.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 1.5s ease infinite;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--brand-purple);
  padding: 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 50%, var(--brand-purple-light) 100%);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition-base);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.06); }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* ── NOTICIAS / PROMOCIONES ── */
#noticias {
  padding: var(--section-pad);
  background: var(--bg-light);
  overflow: hidden;
}

.noticias-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-slider-wrapper {
  position: relative;
}

/* Grid de 4 tarjetas */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
}

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

.news-card:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

/* Imagen más grande */
.news-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  background: var(--gray-200);
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.04);
}

.news-card-img-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* Hint "Leer más" al hacer hover */
.news-card-overlay-hint {
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(240,119,32,0.92);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.news-card:hover .news-card-overlay-hint {
  opacity: 1;
}

.news-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--brand-orange);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-no-items {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ── MODAL DE NOTICIAS ── */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.news-modal-sheet {
  background: #1a1a2e;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(60px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(240,119,32,0.3) transparent;
}

.news-modal-overlay.open .news-modal-sheet {
  transform: translateY(0);
}

.news-modal-drag-bar {
  width: 48px;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin: 12px auto 0;
}

.news-modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-top: 12px;
}

.news-modal-img-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-top: 12px;
}

.news-modal-content {
  padding: 1.75rem 2rem 2.5rem;
}

.news-modal-date {
  font-size: 0.78rem;
  color: var(--brand-orange);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.news-modal-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  white-space: pre-wrap;
}

.news-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
}

.news-modal-close:hover {
  background: var(--brand-orange);
  transform: scale(1.1);
}

/* ── NOSOTROS ── */
#nosotros {
  padding: var(--section-pad);
  background: white;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-images {
  position: relative;
}

.nosotros-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.nosotros-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--brand-orange);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-orange);
}

.nosotros-img-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.nosotros-img-badge span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.nosotros-content { padding-left: 1rem; }

.nosotros-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.nosotros-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.nosotros-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(240,119,32,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nosotros-feature-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.nosotros-feature-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ── MARCAS ── */
#marcas {
  padding: var(--section-pad);
  background: var(--bg-section);
  overflow: hidden;
}

.marcas-header { text-align: center; margin-bottom: 3.5rem; }
.marcas-header .section-subtitle { margin: 0.75rem auto 0; }

.brands-marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.brands-marquee {
  display: flex;
  gap: 1.5rem;
  animation: marquee 35s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

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

.brands-marquee-2 {
  animation: marquee 45s linear infinite reverse;
  margin-top: 1.5rem;
  will-change: transform;
  transform: translateZ(0);
}

.brand-item {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.brand-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

/* Brand chip con logo */
.brand-item--logo {
  padding: 0.5rem 1.25rem;
}

.brand-name-fallback {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-600);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand-item--logo img {
  height: 38px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}


/* ── SOLUCIONES CORPORATIVAS ── */
#soluciones {
  padding: var(--section-pad);
  background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 100%);
  position: relative;
  overflow: hidden;
}

#soluciones::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,119,32,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.soluciones-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.solucion-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition-base);
}

.solucion-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-4px);
  border-color: rgba(240,119,32,0.4);
}

.solucion-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.solucion-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.solucion-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.soluciones-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.soluciones-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.soluciones-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(30,28,110,0.95), transparent);
  color: white;
  text-align: center;
}

.soluciones-img-overlay .big-stat {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand-orange);
}

/* ── CONTACTO ── */
#contacto {
  padding: var(--section-pad);
  background: var(--bg-light);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contacto-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--brand-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contacto-icon.orange { background: var(--brand-orange); }

.contacto-info-item h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.contacto-info-item p, .contacto-info-item a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contacto-info-item a:hover { color: var(--brand-orange); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-bounce);
  color: white;
}

.social-link.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.social-link.tiktok    { background: #000000; }
.social-link.whatsapp  { background: #25D366; }

.social-link:hover { transform: translateY(-4px) scale(1.1); box-shadow: var(--shadow-md); }

.contacto-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-200);
}

.contacto-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 1rem;
  font-size: 1rem;
}

.map-placeholder .icon { font-size: 3rem; opacity: 0.8; }

/* ── FOOTER ── */
footer {
  background: var(--brand-purple-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
}

.footer-brand-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.25rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-social .social-link:hover {
  transform: translateY(-3px) scale(1.1);
}

.footer-social .social-link.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  color: #fff;
}

.footer-social .social-link.tiktok {
  background: #000000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.footer-social .social-link.whatsapp {
  background: #25D366;
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover { color: var(--brand-orange); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-icon {
  color: var(--brand-orange);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-bottom a { color: var(--brand-orange); }

/* ── ANIMACIONES ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollLine {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.5) translateY(20px); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade-in al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nosotros-grid,
  .soluciones-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-img-badge { bottom: 1rem; right: 1rem; }
  .soluciones-img img { height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 70px; }

  /* ── Mobile drawer — slide from right (patrón iOS Sheet) ── */
  /* El drawer vive fuera del header para que position:fixed
     no sea atrapado por el contexto de composición del header */
  .navbar-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(80vw, 320px);
    height: 100vh;
    height: 100dvh; /* dynamic viewport height en iOS Safari */
    background: #1e1c6e;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex; /* asegurar que sea visible cuando no tiene .open */
  }

  .navbar-menu.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* En mobile, el #navbar-menu-desktop (dentro del header) se oculta */
  #navbar-menu-desktop {
    display: none !important;
  }

  /* Overlay para cerrar tocando fuera */
  .navbar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .navbar-overlay.open {
    display: block;
    opacity: 1;
  }

  /* Cabecera del drawer */
  .navbar-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 70px;
  }
  .navbar-menu-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.06em;
    opacity: 0.7;
    text-transform: uppercase;
  }
  .navbar-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
  }
  .navbar-menu-close:active { background: rgba(255,255,255,0.18); }

  /* Links dentro del drawer */
  .navbar-menu-links {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    flex: 1;
  }

  .navbar-link {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .navbar-link::after { display: none; }
  .navbar-link:hover, .navbar-link:active {
    background: rgba(255,255,255,0.07);
    color: white;
  }
  .navbar-link.active {
    color: var(--brand-orange) !important;
    background: rgba(240,119,32,0.1);
    border-left: 3px solid var(--brand-orange);
    padding-left: calc(1.5rem - 3px);
  }

  /* Flecha decorativa a la derecha de cada link */
  .navbar-link-arrow {
    margin-left: auto;
    opacity: 0.3;
    font-size: 0.75rem;
  }
  .navbar-link.active .navbar-link-arrow { opacity: 0.6; }

  /* Footer del drawer con CTA */
  .navbar-menu-footer {
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .navbar-toggle { display: flex; }

  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero-buttons { flex-direction: column; }
  .hero-arrow  { display: none; }

  .news-card { min-width: calc(85% - 1rem); }

  .nosotros-features { grid-template-columns: 1fr; }
  .soluciones-cards  { grid-template-columns: 1fr; }

  .brands-marquee {
    gap: 0.85rem;
    animation-duration: 28s;
  }
  .brands-marquee-2 {
    animation-duration: 34s;
    margin-top: 0.85rem;
  }
  .brand-item {
    height: 54px;
    min-width: 110px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
  }
  .brand-item--logo img {
    height: 28px;
    max-width: 80px;
  }
  .brand-name-fallback {
    font-size: 0.78rem;
  }

  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.5rem 1rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.6rem; }
  .nosotros-img-main { height: 280px; }
}

/* ══════════════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO (Estilos del Card e Inputs)
   ══════════════════════════════════════════════════════════════════ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.contact-form-title i {
  color: var(--brand-orange);
}

.contact-form-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .contact-form-card {
    padding: 1.5rem;
  }
}

.contact-form-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.contact-form-card label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
}

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

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 2;
}

.input-with-icon.textarea-icon {
  align-items: flex-start;
}

.input-with-icon.textarea-icon i {
  top: 1rem;
  transform: none;
}

.main-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.65rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

textarea.main-input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.main-input:focus {
  border-color: var(--brand-orange);
  background: white;
  box-shadow: 0 0 0 3px rgba(240,119,32,0.15);
}

.main-input:focus + i,
.input-with-icon:focus-within i {
  color: var(--brand-orange);
}

.contact-alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.contact-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.contact-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

