/* ============================================================
   NetFI Solutions — styles.css
   Estilos globales, variables y componentes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Variables CSS --- */
:root {
  --blue:          #1a6fd4;
  --blue-dark:     #1558aa;
  --blue-light:    #e8f1fb;
  --cyan:          #00c8f8;
  --cyan-light:    #e0f8ff;
  --bg:            #f5f7fa;
  --bg-white:      #ffffff;
  --bg-alt:        #f0f9ff;
  --text:          #0f172a;
  --text-secondary:#64748b;
  --border:        #e8ecf0;
  --shadow-sm:     0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow:        0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg:     0 8px 40px rgba(26, 111, 212, 0.15);
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-height: 96px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Tipografia --- */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }
.text-center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; color: var(--text); }
.section-header p { max-width: 560px; font-size: 1.05rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 12px rgba(26, 111, 212, 0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 111, 212, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--blue);
  border-color: white;
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo img { height: 80px; width: auto; }
.navbar-logo-fallback {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.navbar-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 13px;
  border-radius: 7px;
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}
.navbar-actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}
.navbar-toggle:hover { background: var(--bg); }
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu movil */
.navbar-mobile {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow);
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.navbar-mobile a:hover { color: var(--blue); background: var(--blue-light); }
.navbar-mobile .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ============================================================
   HERO (asimetrico)
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--navbar-height) + 72px);
  padding-bottom: 80px;
  background-color: #ffffff;
  background-image: url('../assets/hero-bg.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(0,200,248,0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(26,111,212,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-left h1 { margin-bottom: 1.25rem; color: var(--text); }
.hero-left h1 .highlight { color: var(--blue); }
.hero-left > p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; line-height: 1.75; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-right { display: flex; flex-direction: column; gap: 0.875rem; }
.hero-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  cursor: default;
}
.hero-chip:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateX(5px);
  background: white;
}
.hero-chip-icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.hero-chip:hover .hero-chip-icon { background: var(--blue); color: white; }
.hero-chip-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-chip-text span { font-size: 0.78rem; color: var(--text-secondary); }
.hero-ref-card {
  background: linear-gradient(135deg, var(--blue) 0%, #1452a0 100%);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(26,111,212,0.35);
}
.hero-ref-card-icon { font-size: 2.25rem; flex-shrink: 0; }
.hero-ref-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.hero-ref-card-text { font-size: 0.8rem; opacity: 0.82; line-height: 1.4; }

/* ============================================================
   SERVICIOS — cards grid
   ============================================================ */
.services-section { background: var(--bg); padding: 80px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
/* Linea de acento azul en hover */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-card-icon { background: var(--blue); color: white; }
.service-card h3 { font-size: 0.98rem; margin-bottom: 0.5rem; color: var(--text); }
.service-card p { font-size: 0.85rem; line-height: 1.65; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1rem;
  transition: var(--transition);
}
.service-card-link:hover { gap: 9px; }

/* ============================================================
   BANNER EVENTOS
   ============================================================ */
.events-banner {
  background: linear-gradient(135deg, #0a2247 0%, #13407e 45%, #1a6fd4 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.events-banner::before {
  content: '\1F4E1';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9rem;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.events-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.events-banner h2 { color: white; margin-bottom: 0.75rem; }
.events-banner p { color: rgba(255,255,255,0.78); font-size: 1rem; max-width: 560px; margin-bottom: 1.25rem; }
.events-banner-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.events-badge {
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.92);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.22);
}

/* ============================================================
   REFERENCIAS / CLIENTES
   ============================================================ */
.references-section {
  background: white;
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.references-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}
.references-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.reference-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  transition: var(--transition);
}
.reference-badge:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.reference-badge-icon { font-size: 2.25rem; flex-shrink: 0; }
.reference-badge-text strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.reference-badge-text span { font-size: 0.82rem; color: var(--text-secondary); }

/* ============================================================
   EQUIPO
   ============================================================ */
.team-section { background: var(--bg); padding: 80px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
}
.team-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 1rem;
  letter-spacing: -0.03em;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text); }
.team-card-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.875rem; line-height: 1.65; }
.team-social { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.team-social a {
  width: 32px; height: 32px;
  background: var(--bg);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.team-social a:hover { background: var(--blue); color: white; }

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.contact-section { background: white; padding: 80px 0; border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; color: var(--text); }
.contact-info > p { margin-bottom: 2rem; font-size: 1rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-detail { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--text); }
.contact-detail-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Formulario */
.form-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label .req { color: var(--blue); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.1);
}
.form-group input.is-error,
.form-group select.is-error,
.form-group textarea.is-error { border-color: #ef4444; }
.form-error-msg { font-size: 0.78rem; color: #ef4444; margin-top: 4px; display: none; }
.form-error-msg.visible { display: block; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  align-items: center;
  gap: 0.5rem;
}
.form-success.visible { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0a1628;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand-name { font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  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 a:hover { background: var(--blue); color: white; }
.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25d366;
  color: 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.45);
  transition: var(--transition);
  animation: float-wa 3s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  animation-play-state: paused;
}
@keyframes float-wa {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ============================================================
   COOKIE BANNER (RGPD)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: white;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.07);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; font-size: 0.85rem; color: var(--text-secondary); min-width: 220px; }
.cookie-banner a { color: var(--blue); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ============================================================
   ANIMACIONES SCROLL (Intersection Observer)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   HERO SIMPLE (paginas interiores)
   ============================================================ */
.page-hero {
  background-color: white;
  background-image: url('../assets/hero-bg.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,200,248,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 1rem; max-width: 700px; color: var(--text); }
.page-hero p { max-width: 620px; font-size: 1.05rem; line-height: 1.75; }

/* ============================================================
   VALORES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.value-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.value-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.value-card h4 { margin-bottom: 0.4rem; color: var(--text); }
.value-card p { font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   SERVICIOS PAGE — detalle
   ============================================================ */
.service-detail { padding: 80px 0; background: white; }
.service-detail:nth-child(even) { background: var(--bg); }
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail-text h2 { margin-bottom: 1rem; color: var(--text); }
.service-detail-text > p { font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
.service-feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.service-feature-item i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.service-visual {
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: var(--blue);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,111,212,0.04) 0%, rgba(0,200,248,0.08) 100%);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #1452a0 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(0,200,248,0.1);
  border-radius: 50%;
}
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   EVENTOS PAGE
   ============================================================ */
.eventos-hero {
  background-color: #0a2247;
  background-image: linear-gradient(135deg, #0a2247 0%, #13407e 40%, #1a6fd4 100%), url('../assets/hero-bg.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-blend-mode: screen;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.eventos-hero::after {
  content: '\1F4E1';
  position: absolute;
  right: 5%;
  bottom: 0;
  font-size: 12rem;
  opacity: 0.04;
  line-height: 1;
}
.eventos-hero h1 { color: white; margin-bottom: 1rem; max-width: 700px; }
.eventos-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 580px; margin-bottom: 2rem; }
.eventos-hero .section-tag { background: rgba(255,255,255,0.15); color: white; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.step-number {
  width: 52px; height: 52px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}
.step-card h3 { margin-bottom: 0.5rem; color: var(--text); font-size: 1.05rem; }
.step-card p { font-size: 0.88rem; line-height: 1.65; }
.coverage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.coverage-badge {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1.5px solid rgba(26,111,212,0.2);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-section { padding: 56px 0 80px; background: var(--bg); }
.blog-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.blog-card-thumb {
  height: 200px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  position: relative;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 100px;
}
.blog-date { font-size: 0.78rem; color: var(--text-secondary); }
.blog-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; color: var(--text); line-height: 1.4; }
.blog-card > .blog-card-body > p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.25rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.blog-empty i { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: 0.4; }

/* Blog post individual */
.post-hero { background-color: white; background-image: url('../assets/hero-bg.svg'); background-repeat: no-repeat; background-position: center center; background-size: cover; padding: 140px 0 48px; border-bottom: 1px solid var(--border); }
.post-hero .blog-category { font-size: 0.8rem; padding: 4px 14px; margin-bottom: 1rem; }
.post-hero h1 { max-width: 760px; margin-bottom: 1rem; }
.post-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.post-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.post-meta-item i { color: var(--blue); font-size: 0.82rem; }
.post-content { max-width: 800px; margin: 0 auto; padding: 56px 1.5rem 80px; }
.post-content h2 { margin: 2.5rem 0 1rem; color: var(--text); font-size: 1.5rem; }
.post-content h3 { margin: 2rem 0 0.75rem; color: var(--text); font-size: 1.15rem; }
.post-content p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { color: var(--text-secondary); margin-bottom: 0.45rem; line-height: 1.7; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.post-not-found { text-align: center; padding: 6rem 2rem; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-lock {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.admin-lock-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.admin-lock-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.admin-lock-card h2 { margin-bottom: 0.5rem; font-size: 1.5rem; color: var(--text); }
.admin-lock-card > p { font-size: 0.875rem; margin-bottom: 1.75rem; }
.admin-lock-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 0.75rem;
}
.admin-lock-error.visible { display: block; }
.admin-layout { display: flex; min-height: calc(100vh - var(--navbar-height)); padding-top: var(--navbar-height); }
.admin-layout.hidden { display: none; }
.admin-sidebar {
  width: 240px;
  background: white;
  border-right: 1.5px solid var(--border);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}
.admin-sidebar-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); padding: 0 0.5rem; margin-bottom: 0.5rem; margin-top: 1rem; }
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.admin-nav-item:hover, .admin-nav-item.active { background: var(--blue-light); color: var(--blue); }
.admin-nav-item i { width: 16px; text-align: center; }
.admin-content { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.admin-panel-header h2 { font-size: 1.35rem; color: var(--text); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}
.admin-table th {
  background: var(--bg);
  padding: 11px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1.5px solid var(--border);
}
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.status-published { background: #f0fdf4; color: #16a34a; }
.status-draft { background: #fef9c3; color: #a16207; }
.status-scheduled { background: #eff6ff; color: #1d4ed8; }
.table-actions { display: flex; gap: 0.4rem; }
.admin-form-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.admin-stat-number { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* ============================================================
   NOSOTROS — Historia
   ============================================================ */
.history-section { background: white; padding: 80px 0; }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.history-text h2 { margin-bottom: 1rem; color: var(--text); }
.history-text p { font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.history-visual {
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1.5px solid rgba(26,111,212,0.15);
}
.history-stat { margin-bottom: 1.5rem; }
.history-stat-number { font-size: 2.5rem; font-weight: 800; color: var(--blue); line-height: 1; }
.history-stat-label { font-size: 0.9rem; color: var(--text-secondary); }
.history-stat:last-child { margin-bottom: 0; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--bg-white);
}
.error-inner { max-width: 520px; }
.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.error-page h2 { margin-bottom: 0.75rem; color: var(--text); }
.error-page > .error-inner > p { margin-bottom: 2.5rem; font-size: 1.05rem; }
.error-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.error-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.error-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: auto; padding: calc(var(--navbar-height) + 56px) 0 72px; }
  .hero-right { flex-direction: row; flex-wrap: wrap; }
  .hero-chip { flex: 1; min-width: 200px; }
  .hero-ref-card { flex: 1; min-width: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .service-detail-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail-inner.reverse { direction: ltr; }
  .history-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-actions .btn-primary { display: none; }
  .hero-right { flex-direction: column; }
  .events-banner-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1.5px solid var(--border); }
  .admin-content { padding: 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .reference-badge { flex-wrap: wrap; }
  .steps-grid { grid-template-columns: 1fr; }
  .whatsapp-btn { bottom: 16px; right: 16px; }
}
