:root {
  --blue-950: #061A3A;
  --blue-900: #082452;
  --blue-800: #0A2E6E;
  --green: #6BCB2C;
  --cyan: #20B6E8;
  --white: #FFFFFF;
  --gray-100: #F5F7FA;
  --gray-200: #E8EDF3;
  --gray-600: #667085;
  --gray-800: #2D3748;
  --gray-900: #1A202C;
  --shadow: 0 24px 70px rgba(6, 26, 58, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 20%, rgba(32, 182, 232, .25), transparent 30%), linear-gradient(135deg, #061A3A, #0A2E6E);
  transition: opacity .55s ease, visibility .55s ease;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-card { position: relative; display: grid; gap: 20px; justify-items: center; }
.loader-logo { width: min(460px, 82vw); height: auto; object-fit: contain; animation: loaderLogo 1.1s ease both; padding: 10px; }
.loader-line {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.15);
  position: relative;
}
.loader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
  animation: lineRun 1.15s ease infinite;
}
@keyframes loaderLogo { from { opacity: 0; transform: scale(.94); filter: blur(7px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes lineRun { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--blue-950); color: var(--white); }
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: #061A3A;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { width: 270px; height: auto; object-fit: contain; border-radius: 8px; image-rendering: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.86); transition: color var(--transition); }
.nav-links a:hover { color: var(--green); }
.nav-cta { padding: 10px 18px; border: 1px solid rgba(107,203,44,.6); border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; border-radius: 99px; }

.hero {
  min-height: 100vh;
  padding: 150px 20px 90px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 12%, rgba(107, 203, 44, .22), transparent 20%), radial-gradient(circle at 15% 78%, rgba(32, 182, 232, .22), transparent 27%), linear-gradient(135deg, #061A3A 0%, #0A2E6E 100%);
}
.hero-background-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; text-align: center; width: min(980px, 100%); }
.hero-logo-wrapper { position: relative; display: inline-block; margin-bottom: 28px; overflow: visible; }
.hero-logo {
  width: min(680px, 94vw);
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
  height: auto;
  object-fit: contain;
  background: transparent;
  position: relative;
  z-index: 1;
}
/* Destello externo desactivado: se usa el brillo propio del PNG del logo para evitar cortes o desalineaciones. */
.eyebrow, .section-kicker {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.03; margin-bottom: 22px; letter-spacing: -.04em; }
.hero-description { max-width: 840px; margin: 0 auto; color: rgba(255,255,255,.84); font-size: clamp(16px, 2vw, 20px); line-height: 1.7; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green), #58B91C); color: var(--white); box-shadow: 0 18px 40px rgba(107,203,44,.28); }
.btn-secondary { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.18); }
.reveal-on-load { opacity: 0; transform: translateY(22px) scale(.98); animation: revealLoad .9s ease forwards; }
.delay-1 { animation-delay: .2s; } .delay-2 { animation-delay: .38s; } .delay-3 { animation-delay: .56s; } .delay-4 { animation-delay: .74s; }
@keyframes revealLoad { to { opacity: 1; transform: translateY(0) scale(1); } }

.section { padding: 96px 0; }
.two-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.section-copy h2, .section-heading h2, .mission-card h2, .contact-copy h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; color: var(--blue-950); }
.section-text p, .section-heading p, .mission-card p, .difference-list p, .contact-copy p { color: var(--gray-600); line-height: 1.75; font-size: 16px; }
.intro-section { background: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 42px; }

.services-section { background: var(--gray-100); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  min-height: 250px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 10px 28px rgba(6,26,58,.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(107,203,44,.55); box-shadow: var(--shadow); }
.service-icon { display: inline-flex; color: var(--cyan); font-weight: 800; margin-bottom: 20px; letter-spacing: .08em; }
.service-card h3 { color: var(--blue-950); font-size: 18px; line-height: 1.25; margin-bottom: 12px; }
.service-card p { color: var(--gray-600); line-height: 1.65; font-size: 14px; margin-bottom: 0; }

.mission-section { background: linear-gradient(135deg, #061A3A, #0A2E6E); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mission-card { padding: 42px; border-radius: var(--radius-xl); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--white); }
.mission-card h2 { color: var(--white); }
.mission-card p { color: rgba(255,255,255,.78); }
.vision-card { background: linear-gradient(135deg, rgba(107,203,44,.16), rgba(32,182,232,.12)); }

.values-section { background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values-grid span { padding: 22px; border-radius: 18px; background: var(--gray-100); border: 1px solid var(--gray-200); font-weight: 800; color: var(--blue-950); transition: all var(--transition); }
.values-grid span:hover { background: var(--blue-800); color: var(--white); transform: translateY(-3px); border-color: var(--blue-800); }

.difference-section { background: var(--gray-100); }
.difference-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.difference-list div { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border-left: 4px solid var(--green); box-shadow: 0 10px 28px rgba(6,26,58,.05); }
.difference-list h3 { margin-bottom: 8px; color: var(--blue-950); }
.difference-list p { margin-bottom: 0; }

.contact-section { background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 100%); }
.contact-container { display: grid; gap: 34px; justify-items: center; }
.contact-copy { max-width: 780px; text-align: center; }
.contact-form { width: min(860px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 28px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; color: var(--blue-950); }
.contact-form .full { grid-column: 1 / -1; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
input, textarea { width: 100%; border: 1px solid var(--gray-200); border-radius: 14px; padding: 14px 15px; font: inherit; outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(32,182,232,.12); }
textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; margin: -4px 0 0; color: var(--gray-600); font-size: 12px; }
.form-note.is-success { color: #247A20; font-weight: 700; }
.form-note.is-error { color: #B42318; font-weight: 700; }

.site-footer { background: var(--blue-950); color: rgba(255,255,255,.72); padding: 36px 0; }
.footer-content { display: grid; grid-template-columns: 1.15fr .95fr auto; align-items: center; gap: 32px; }
.footer-brand img { width: 210px; height: auto; object-fit: contain; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: 13px; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 14px; transition: color var(--transition); }
.footer-contact a:hover { color: var(--green); }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--white); transition: transform var(--transition), border-color var(--transition), background var(--transition); }
.footer-social a:hover { transform: translateY(-2px); border-color: rgba(107,203,44,.65); background: rgba(107,203,44,.14); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .two-columns { grid-template-columns: 1fr; gap: 32px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-contact { justify-items: center; }
}
@media (max-width: 760px) {
  .navbar { height: 72px; padding: 0 18px; }
  .brand img { width: 230px; height: auto; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 72px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; background: rgba(6,26,58,.96); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px; }
  .nav-cta { border-radius: 14px; text-align: center; margin-top: 8px; }
  .hero { padding-top: 120px; }
  .hero-logo { width: min(390px, 88vw); height: auto; }
  .section { padding: 72px 0; }
  .services-grid, .mission-grid, .values-grid, .difference-list, .contact-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .site-loader { display: none; }
  .reveal, .reveal-on-load { opacity: 1; transform: none; }
}

/* SEO/GEO: sección de preguntas frecuentes rastreable */
.faq-section { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-item {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(6,26,58,.04);
}
.faq-item h3 { margin-bottom: 10px; color: var(--blue-950); font-size: 18px; line-height: 1.3; }
.faq-item p { margin-bottom: 0; color: var(--gray-600); line-height: 1.7; font-size: 14px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
