/* ===================================================
   WebSoft Solutions - Landing Page CSS Premium
   =================================================== */

/* 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');

/* ---- CSS Variables ---- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0e7490 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-2);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ---- Section Badge ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-badge.light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}
.section-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* ===================================================
   TOPBAR
=================================================== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.topbar-item i { color: var(--accent); font-size: 0.85rem; }
.topbar-item:hover { color: var(--white); }
.topbar-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.topbar-socials a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  transition: var(--transition);
}
.topbar-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.topbar-divider {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.15);
}

/* ===================================================
   NAVBAR
=================================================== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.navbar-logo {
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
}
.navbar-brand-text { font-family: 'Outfit', sans-serif; }
.navbar-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.navbar-brand-tagline {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 400;
  display: block;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: var(--dark-3);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after { left: 10%; right: 10%; }
.nav-link:hover { color: var(--primary); background: rgba(37,99,235,0.06); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Botón Acceso Admin ---- */
.btn-admin-access {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--light);
  border: 1.5px solid var(--gray-light);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}
.btn-admin-access i {
  font-size: 0.95rem;
  color: var(--primary);
  transition: var(--transition);
}
.btn-admin-access:hover {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}
.btn-admin-access:hover i {
  color: #60a5fa;
}
/* En mobile dentro del menú: ocultar el de desktop */
@media (max-width: 992px) {
  .btn-admin-access { display: none; }
}

/* Nav link admin (mobile menú) */
.nav-link-admin {
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-top: 1px solid var(--gray-light);
  margin-top: 0.25rem;
  padding-top: 0.8rem !important;
}
.nav-link-admin i { margin-right: 0.1rem; }
/* Ocultar en desktop (ya está en navbar-actions) */
@media (min-width: 993px) {
  .nav-link-admin { display: none; }
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}
.navbar-toggle:hover { background: var(--light); }
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===================================================
   HERO CAROUSEL
=================================================== */
.hero-carousel {
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  min-height: 600px;
}
.hero-slide {
  min-height: 600px;
  display: flex !important;
  align-items: center;
  position: relative;
  padding: 5rem 0;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title .text-gradient {
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-float-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--white);
  animation: heroFloat 3s ease-in-out infinite;
  max-width: 320px;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.hero-float-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}
.hero-float-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-float-text { font-size: 0.9rem; opacity: 0.8; }

/* Swiper custom */
.swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: var(--transition);
}
.swiper-pagination-bullet-active {
  background: var(--white);
  width: 30px;
  border-radius: 5px;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--white) !important;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  width: 44px !important; height: 44px !important;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 700;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background: rgba(255,255,255,0.25);
}

/* ===================================================
   NEWS TICKER
=================================================== */
.news-ticker {
  background: var(--gradient-primary);
  padding: 0.85rem 0;
  overflow: hidden;
  position: relative;
}
.ticker-label {
  background: rgba(0,0,0,0.2);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: tickerMove 30s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ticker-dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
}

/* ===================================================
   NOTICIAS TABS
=================================================== */
.noticias-section { background: var(--light); }
.noticias-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  padding-bottom: 0;
}
.noticias-tab-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  border-radius: 8px 8px 0 0;
}
.noticias-tab-btn:hover { color: var(--primary); background: rgba(37,99,235,0.05); }
.noticias-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.noticias-tab-content { display: none; }
.noticias-tab-content.active { display: block; }
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.noticia-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
.noticia-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.noticia-card-img {
  height: 200px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.noticia-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.noticia-card-img-placeholder {
  font-size: 3.5rem;
  opacity: 0.3;
}
.noticia-card-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-noticia { background: #dbeafe; color: #1d4ed8; }
.badge-comunicado { background: #d1fae5; color: #059669; }
.badge-convocatoria { background: #fef3c7; color: #d97706; }
.badge-logro { background: #ede9fe; color: #7c3aed; }
.noticia-card-body { padding: 1.5rem; }
.noticia-card-date {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.noticia-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noticia-card-desc {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noticia-card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}
.noticia-card-link:hover { gap: 0.65rem; }

/* ===================================================
   SERVICIOS
=================================================== */
.servicios-section { background: var(--white); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.servicio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.servicio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-card.destacado {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2), var(--shadow);
}
.servicio-card.destacado::before { transform: scaleX(1); }
.servicio-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}
.servicio-icon {
  width: 64px; height: 64px;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.servicio-card:hover .servicio-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1);
}
.servicio-tipo {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.servicio-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.servicio-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.servicio-features {
  margin-bottom: 1.5rem;
}
.servicio-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--dark-3);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.servicio-feature:last-child { border-bottom: none; }
.servicio-feature i { color: var(--success); font-size: 0.9rem; flex-shrink: 0; }
.servicio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.servicio-precio {
  font-size: 0.8rem;
  color: var(--gray);
}
.servicio-precio strong {
  font-size: 1.3rem;
  color: var(--dark);
  font-weight: 800;
}
.servicio-precio span { font-size: 0.75rem; }

/* ===================================================
   ESTADÍSTICAS
=================================================== */
.stats-section {
  background: var(--gradient-dark);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(37,99,235,0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(6,182,212,0.15) 0%, transparent 50%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
/* ── Estadísticas sobre fondo CLARO (premios, comunidad, servicios) ── */
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-suffix {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-3);
  display: inline-block;
  margin-top: 0.1rem;
}
.stat-label {
  color: var(--gray);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
/* ── Variante para fondo OSCURO (página principal / hero) ── */
.stats-section--dark .stat-number,
.stats-section--dark .stat-suffix {
  color: var(--white);
}
.stats-section--dark .stat-label {
  color: rgba(255,255,255,0.7);
}
.stats-section--dark .stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
/* ── Variante para fondo CLARO (premios, comunidad, servicios) ── */
.stats-section--light {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
}
.stats-section--light::before {
  display: none;
}
.stats-section--light .stat-number {
  color: var(--dark) !important;
}
.stats-section--light .stat-suffix {
  color: var(--dark-3) !important;
}
.stats-section--light .stat-label {
  color: var(--gray) !important;
}

/* ===================================================
   PREMIOS
=================================================== */
.premios-section { background: var(--light); }
.premios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.75rem;
}
.premio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.premio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.premio-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.premio-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.premio-org { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.5rem; }
.premio-year {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===================================================
   TESTIMONIOS
=================================================== */
.testimonios-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 5rem 0;
}
.testimonio-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.testimonio-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-5px);
}
.testimonio-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.testimonio-stars i { color: var(--warning); font-size: 0.95rem; }
.testimonio-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonio-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  overflow: hidden;
}
.testimonio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonio-author-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.testimonio-author-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ===================================================
   CTA FINAL
=================================================== */
.cta-section {
  background: var(--gradient-primary);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}
.cta-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.cta-btns { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.55);
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-col-title {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -0.4rem;
  width: 2rem; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-link:hover { color: var(--white); padding-left: 0.25rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i {
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ===================================================
   BACK TO TOP
=================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37,99,235,0.6); }

/* WhatsApp Floating */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 50px; height: 50px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  z-index: 999;
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===================================================
   AOS ANIMATIONS (custom)
=================================================== */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(20px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ===================================================
   RESPONSIVE — Landing Page
=================================================== */

/* Tablet grande: ≤ 1200px */
@media (max-width: 1200px) {
  .container { padding: 0 1.25rem; }
  .nav-link   { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
}

/* Tablet: ≤ 992px */
@media (max-width: 992px) {
  .navbar-nav {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: var(--shadow-lg);
    padding: 0.75rem 1rem 1rem; gap: 0; z-index: 100;
    border-top: 1px solid var(--gray-light);
  }
  .navbar-nav.open { display: flex; }
  .nav-link { border-radius: 8px; padding: 0.65rem 1rem; }
  .nav-link::after { display: none; }
  .navbar-inner { position: relative; }
  .navbar-toggle { display: flex; flex-direction: column; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Tablet chico / mobile: ≤ 768px */
@media (max-width: 768px) {
  .topbar-inner { justify-content: center; }
  .topbar-left { display: none; }
  .section-padding { padding: 3rem 0; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-slide { min-height: 480px; padding: 3rem 0; }
  .hero-title { font-size: clamp(1.7rem, 5vw, 2.5rem); }
  .hero-desc { font-size: 0.95rem; }
  .ticker-label { display: none; }
  .noticias-tabs {
    overflow-x: auto; flex-wrap: nowrap; gap: 0;
    scrollbar-width: none;
  }
  .noticias-tabs::-webkit-scrollbar { display: none; }
  .noticias-tab-btn { flex-shrink: 0; font-size: 0.82rem; padding: 0.6rem 1rem; }
  .noticias-grid  { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .premios-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom  { flex-direction: column; text-align: center; gap: 0.5rem; }
  .cta-btns  { flex-direction: column; align-items: center; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-lg    { width: 100%; justify-content: center; max-width: 320px; }
  .whatsapp-float { width: 44px; height: 44px; font-size: 1.3rem; right: 1.25rem; bottom: 5rem; }
  .back-to-top    { width: 40px; height: 40px; font-size: 1rem;   right: 1.25rem; bottom: 1.5rem; }
}

/* Móvil: ≤ 580px */
@media (max-width: 580px) {
  .stats-grid   { grid-template-columns: 1fr; }
  .premios-grid { grid-template-columns: 1fr; }
  .stat-number  { font-size: 2.5rem; }
  .hero-title   { font-size: 1.65rem; }
  .hero-slide   { min-height: 420px; }
  .hero-carousel { min-height: 420px; }
  .navbar-brand-tagline { display: none; }
  .navbar-brand-name    { font-size: 1rem; }
  .noticia-card-body    { padding: 1.15rem; }
  .servicio-card        { padding: 1.4rem; }
  .servicio-footer      { flex-direction: column; gap: 0.75rem; }
  .testimonio-card      { padding: 1.4rem; }
  .cta-title    { font-size: 1.6rem; }
  .cta-subtitle { font-size: 0.9rem; }
}

/* Muy pequeño: ≤ 380px */
@media (max-width: 380px) {
  .hero-title   { font-size: 1.45rem; }
  .navbar-logo  { width: 36px; height: 36px; font-size: 1.1rem; }
  .container    { padding: 0 0.9rem; }
  .section-padding { padding: 2.5rem 0; }
}


/* ===================================================
   PÁGINAS INDEPENDIENTES — PAGE HERO
=================================================== */
.page-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position:relative;z-index:1;text-align:center;max-width:700px;margin:0 auto; }
.page-hero-badge {
  display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.9);padding:.4rem 1.1rem;border-radius:50px;
  font-size:.82rem;font-weight:600;backdrop-filter:blur(8px);margin-bottom:1.25rem;
}
.page-hero-title {
  font-size:clamp(2rem,5vw,3rem);font-weight:900;color:white;
  line-height:1.15;margin-bottom:1rem;font-family:'Outfit',sans-serif;
}
.page-hero-desc { font-size:1.05rem;color:rgba(255,255,255,.75);line-height:1.7;max-width:560px;margin:0 auto; }

/* Nav link activo */
.nav-link.active { color:var(--primary)!important;background:rgba(37,99,235,.08)!important; }
.nav-link.active::after { left:10%!important;right:10%!important; }

/* Noticias page tabs */
.noticias-tabs { display:flex;gap:.4rem;flex-wrap:wrap;justify-content:center; }
.noticias-tabs .noticias-tab-btn {
  display:inline-flex;align-items:center;gap:.35rem;padding:.45rem 1.1rem;
  border-radius:50px;font-size:.84rem;font-weight:600;color:var(--gray);
  background:var(--light);border:1.5px solid var(--gray-light);text-decoration:none;
  transition:var(--transition);cursor:pointer;
}
.noticias-tabs .noticias-tab-btn:hover,
.noticias-tabs .noticias-tab-btn.active {
  background:var(--primary);color:white;border-color:var(--primary);
  box-shadow:0 4px 12px rgba(37,99,235,.3);
}
.noticias-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.75rem; }
.noticia-card-link { display:inline-flex;align-items:center;gap:.35rem;color:var(--primary);font-weight:600;font-size:.87rem;margin-top:.75rem; }

/* Premio card */
.premio-card {
  background:white;border-radius:16px;padding:2rem 1.5rem;text-align:center;
  border:1px solid #e2e8f0;box-shadow:0 4px 16px rgba(0,0,0,.05);transition:var(--transition);
}
.premio-card:hover { transform:translateY(-6px);box-shadow:0 12px 36px rgba(0,0,0,.1);border-color:#fcd34d; }
.premio-nombre { font-size:1.05rem;font-weight:700;color:var(--dark);margin-bottom:.4rem; }
.premio-meta   { font-size:.82rem;color:var(--gray);margin-bottom:.3rem; }
.premio-anio   { font-size:.78rem;color:var(--primary);font-weight:600; }
.premios-grid  { display:grid;gap:1.5rem; }

/* Testimonio quote */
.testimonio-quote { font-size:2rem;color:var(--primary);opacity:.2;margin-bottom:.5rem;line-height:1; }

/* Responsive */
@media (max-width:768px) {
  .page-hero { padding:3.5rem 0 3rem; }
  .page-hero-title { font-size:2rem; }
  .noticias-grid { grid-template-columns:1fr; }
  .premios-grid  { grid-template-columns:1fr; }
}

/* ── Botón outline-primary ── */
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: white;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: white;
}
