/*
Theme Name: Storefront Child Atlantec
Theme URI: https://atlantecgroup.cl/
Description: Tema hijo exclusivo de Storefront para Atlantec Group - Seguridad Privada de Alto Estandar para la Gran Mineria e Industria en Calama y Region de Antofagasta.
Author: Andres Perez
Template: storefront
Version: 3.2.0
*/

/* =========================================================================
   1. TOKENS DE DISENO
   ========================================================================= */
:root {
  /* Fondos */
  --bg-base:        #050a14;
  --bg-primary:     #070d18;
  --bg-secondary:   #0a1324;
  --bg-elevated:    #0e1a30;
  --bg-card:        #101c33;

  /* Bordes */
  --border-subtle:  rgba(148, 163, 184, 0.12);
  --border-strong:  rgba(148, 163, 184, 0.22);
  --border-accent:  rgba(79, 139, 209, 0.45);

  /* Acentos: colores del logo (azul acero #225C93 y gris #7F7F7F),
     aclarados lo justo para que se lean sobre navy. */
  --accent:         #2f6db3;
  --accent-light:   #5b95d8;
  --accent-soft:    #a9c6ea;
  --accent-deep:    #1f5690;
  --silver:         #c3cbd6;
  --silver-deep:    #9aa4b2;
  --green:          #34d399;

  /* Texto */
  --text-main:      #f1f5f9;
  --text-soft:      #cbd5e1;
  --text-muted:     #94a3b8;
  --text-dim:       #7d8ba1;  /* 5,4:1 sobre el navy (con #64748b quedaba en 4,1) */

  /* Tipografia */
  --font-display: 'Sora', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --gutter:    clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 140px);
  --maxw:      1240px;

  /* Sombras */
  --shadow:    0 18px 40px -12px rgba(2, 6, 16, 0.65);
  --shadow-lg: 0 40px 80px -24px rgba(2, 6, 16, 0.85);
  --glow:      0 0 0 1px rgba(79, 139, 209, 0.35), 0 18px 45px -15px rgba(47, 109, 179, 0.55);
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
html { box-sizing: border-box; scroll-behavior: smooth; scroll-padding-top: 90px; }
*, *::before, *::after { box-sizing: inherit; }

body.atlantec-landing {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Reglas base: especificidad EXACTA (0,1,0), ni mas ni menos.
   - Tienen que GANARLE a Storefront, que pinta los titulos con reglas de
     elemento (h1..h6 { color: #333333 }, 0,0,1). En la v3.1 estaban en
     especificidad cero y Storefront los dejaba casi negros sobre el navy.
   - Y tienen que PERDER contra cada componente (.hero-subtitle, .btn-primary,
     .service-card h4...), que va mas abajo en el archivo. En la v3.0 estaban
     en (0,1,2) y los pisaban: subtitulo descentrado, botones azul sobre azul.
   No subir ni bajar esta especificidad sin revisar ambas cosas. */
.atlantec-landing :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  clear: none;
  text-wrap: balance;
}

.atlantec-landing :where(p) { margin: 0 0 1em; }
.atlantec-landing :where(img) { max-width: 100%; height: auto; display: block; border-radius: 0; }
.atlantec-landing :where(a) { color: var(--accent-light); }
body.atlantec-landing ::selection { background: rgba(47, 109, 179, 0.45); color: #fff; }

/* Foco accesible y consistente */
body.atlantec-landing a:focus-visible,
body.atlantec-landing button:focus-visible,
body.atlantec-landing input:focus-visible,
body.atlantec-landing textarea:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
body.atlantec-landing::-webkit-scrollbar { width: 11px; }
body.atlantec-landing::-webkit-scrollbar-track { background: var(--bg-base); }
body.atlantec-landing::-webkit-scrollbar-thumb {
  background: #1e2d47;
  border-radius: 10px;
  border: 3px solid var(--bg-base);
}
body.atlantec-landing::-webkit-scrollbar-thumb:hover { background: #2b3f63; }

/* Link de salto (accesibilidad) */
.al-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.al-skip:focus { left: 0; }

/* =========================================================================
   3. NEUTRALIZAR EL CONTENEDOR DE STOREFRONT (ancho completo real)
   Storefront encierra todo en .col-full con max-width ~1064px y margenes
   laterales: eso era el "margen" que se veia a los costados.
   ========================================================================= */
body.atlantec-landing .site-header,
body.atlantec-landing .storefront-breadcrumb,
body.atlantec-landing .site-footer,
body.atlantec-landing #secondary,
body.atlantec-landing .entry-header,
body.atlantec-landing .storefront-handheld-footer-bar,
body.atlantec-landing .site-info { display: none !important; }

body.atlantec-landing #page,
body.atlantec-landing .site-content,
body.atlantec-landing #content,
body.atlantec-landing .col-full,
body.atlantec-landing #primary,
body.atlantec-landing .content-area,
body.atlantec-landing .site-main,
body.atlantec-landing .entry-content,
body.atlantec-landing .type-page,
body.atlantec-landing .hentry {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.atlantec-landing .entry-content::before,
body.atlantec-landing .entry-content::after { display: none !important; }

/* =========================================================================
   4. CAPAS DE FONDO
   ========================================================================= */
.atlantec-wrapper {
  position: relative;
  isolation: isolate;
  background: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Textura de rejilla tecnica, muy sutil */
.atlantec-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 85%);
}

.atlantec-wrapper > * { position: relative; z-index: 1; }

/* =========================================================================
   5. LAYOUT
   ========================================================================= */
.al-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.al-section { padding-block: var(--section-y); position: relative; }

.al-section--tinted {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 18%, var(--bg-secondary) 82%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.al-header {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 76px);
  text-align: center;
}

.al-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  background: rgba(154, 164, 178, 0.08);
  border: 1px solid rgba(154, 164, 178, 0.22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.al-kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
}

.al-h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 18px;
}

.al-lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.al-grad {
  background: linear-gradient(120deg, #ffffff 40%, #dbe4ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.al-brand {
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--accent-light) 55%, #3f7cc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =========================================================================
   6. NAVEGACION
   ========================================================================= */
.atlantec-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, padding .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.atlantec-nav.is-stuck {
  padding-block: 11px;
  background: rgba(7, 13, 24, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}

.atlantec-brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.atlantec-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  transition: height .35s ease;
}
.atlantec-nav.is-stuck .atlantec-logo-img { height: 44px; }

.footer-brand .atlantec-logo-img { height: auto; width: 210px; max-width: 100%; }

.atlantec-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.atlantec-menu a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 0;
  transition: color .2s ease;
}
.atlantec-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--silver-deep));
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
.atlantec-menu a:hover,
.atlantec-menu a.is-active { color: #fff; }
.atlantec-menu a:hover::after,
.atlantec-menu a.is-active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff !important;
  padding: 11px 22px !important;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px -10px rgba(47, 109, 179, 0.9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(47, 109, 179, 1); }

/* Boton hamburguesa */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.atlantec-nav .nav-toggle:hover,
.atlantec-nav .nav-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 19px; height: 2px;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: background .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 19px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .28s cubic-bezier(.4,0,.2,1), top .28s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* =========================================================================
   7. HERO
   ========================================================================= */
.atlantec-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(130px, 16vw, 180px) var(--gutter) clamp(90px, 10vw, 130px);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Sin foto por ahora (la de Unsplash se borro y daba 404). Para poner una:
     background-image: url('assets/img/NOMBRE.jpg'); y descomentar la animacion. */
  background-size: cover;
  background-position: center 35%;
  opacity: 0.30;
  filter: saturate(0.55) contrast(1.05);
  transform: scale(1.06);
  /* animation: heroDrift 26s ease-in-out infinite alternate; */
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(0, -18px, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%,  rgba(47, 109, 179, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 78%, rgba(154, 164, 178, 0.12), transparent 72%),
    radial-gradient(ellipse 45% 40% at 8% 70%,  rgba(154, 164, 178, 0.09), transparent 72%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.72) 0%, rgba(5, 10, 20, 0.80) 45%, var(--bg-primary) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; width: 100%; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(47, 109, 179, 0.14);
  border: 1px solid rgba(111, 160, 220, 0.3);
  color: var(--accent-soft);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px -12px rgba(47, 109, 179, 0.8);
}
.hero-tag svg { flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(56px, 7vw, 86px);
}

/* Botones */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn-primary {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: 1px solid rgba(169, 198, 234, 0.28);
  box-shadow: 0 14px 34px -12px rgba(47, 109, 179, 0.95);
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(47, 109, 179, 1); color: #fff; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary svg { transition: transform .25s ease; position: relative; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary span { position: relative; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-3px);
}

/* Metricas del hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(16, 28, 51, 0.88), rgba(10, 19, 36, 0.88));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px) clamp(14px, 2vw, 24px);
  box-shadow: var(--shadow-lg);
}
.stat-item { text-align: center; padding-inline: 8px; position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 12%;
  height: 76%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 10%, var(--accent-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  line-height: 1.45;
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  gap: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--accent-light); }
.hero-scroll span {
  width: 22px; height: 36px;
  border: 1px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  35%      { opacity: 1; }
  70%      { opacity: 0; transform: translate(-50%, 11px); }
}

/* =========================================================================
   8. FRANJA DE CONFIANZA
   ========================================================================= */
.al-trust {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 19, 36, 0.6);
}
.al-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  padding-block: 26px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-item svg { color: var(--accent-light); flex-shrink: 0; }

/* =========================================================================
   9. NOSOTROS
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

/* min-width:0 en los hijos de grilla: la foto tiene alto fijo y el navegador
   le calcula un ancho minimo por su proporcion (340px de alto -> 510px de
   ancho); sin esto, en celular empujaba la columna fuera de la pantalla. */
.about-grid > *,
.contact-box > *,
.footer-grid > *,
.services-grid > *,
.diff-grid > * { min-width: 0; }

.about-visual { position: relative; }
.about-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.about-visual-frame img {
  width: 100%;
  height: clamp(300px, 34vw, 440px);
  object-fit: cover;
  object-position: 24% center;
  background: var(--bg-card);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.about-visual-frame:hover img { transform: scale(1.05); }
.visual-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(5, 10, 20, 0.92) 70%);
}
.visual-badge {
  display: inline-block;
  background: rgba(47, 109, 179, 0.92);
  color: #fff;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.visual-overlay h4 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }

/* Tarjeta flotante sobre la imagen */
.about-float {
  /* Cuelga sobre el BORDE SUPERIOR: abajo tapaba el titulo del overlay. */
  position: absolute;
  z-index: 2;
  right: 18px;
  top: -30px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(140deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--glow);
  max-width: 270px;
}
.about-float-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(79, 139, 209, 0.14);
  color: var(--accent-light);
  flex-shrink: 0;
}
.about-float strong { display: block; color: #fff; font-size: 0.95rem; line-height: 1.2; }
.about-float span { font-size: 0.78rem; color: var(--text-muted); }

.about-text h3 {
  font-size: clamp(1.6rem, 2.9vw, 2.15rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 20px;
}
.about-text p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.85; }
.about-text strong { color: var(--text-soft); }
.about-text em { color: var(--accent-soft); font-style: normal; }

.about-highlights { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 28, 51, 0.45);
  transition: border-color .25s, background .25s, transform .25s;
}
.about-highlights li:hover {
  border-color: var(--border-accent);
  background: rgba(22, 38, 65, 0.6);
  transform: translateX(4px);
}
.highlight-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(79, 139, 209, 0.14);
  color: var(--accent-light);
  margin-top: 1px;
}
.about-highlights strong { color: #fff; font-weight: 700; }

/* =========================================================================
   10. SERVICIOS
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(16, 28, 51, 0.95), rgba(10, 19, 36, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 38px) clamp(24px, 2.6vw, 32px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s, box-shadow .35s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(111, 160, 220, 0.7), transparent 45%, rgba(154, 164, 178, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.service-card::after {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 180%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47, 109, 179, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 60px -30px rgba(47, 109, 179, 0.9);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--accent-light);
  background: linear-gradient(140deg, rgba(47, 109, 179, 0.22), rgba(154, 164, 178, 0.08));
  border: 1px solid rgba(111, 160, 220, 0.25);
  margin-bottom: 24px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), color .3s;
}
.service-card:hover .service-icon { transform: translateY(-3px) scale(1.06); color: #fff; }

.service-card h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.service-card > p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.75; margin-bottom: 22px; }

.service-features {
  list-style: none;
  padding: 18px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 10px;
}
.service-features li {
  font-size: 0.86rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}
.service-features svg { color: var(--accent-light); flex-shrink: 0; }

/* =========================================================================
   11. ESTANDARES
   ========================================================================= */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}
.diff-card {
  position: relative;
  background: linear-gradient(170deg, rgba(14, 26, 48, 0.85), rgba(7, 13, 24, 0.85));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 3.2vw, 40px) clamp(24px, 2.6vw, 32px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s, box-shadow .35s;
}
.diff-card::before {
  content: attr(data-num);
  position: absolute;
  top: -22px; right: 6px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(148, 163, 184, 0.05);
  pointer-events: none;
  transition: color .35s ease;
}
.diff-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}
.diff-card:hover::before { color: rgba(111, 160, 220, 0.11); }
.diff-card > * { position: relative; z-index: 1; }

.diff-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--silver);
  background: rgba(154, 164, 178, 0.1);
  border: 1px solid rgba(154, 164, 178, 0.25);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.diff-card h4 { font-size: 1.24rem; font-weight: 700; margin-bottom: 12px; line-height: 1.32; }
.diff-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin: 0; }

/* =========================================================================
   12. BANDA CTA
   ========================================================================= */
.al-cta-band { padding-block: 0; }
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(ellipse 80% 120% at 15% 0%, rgba(47, 109, 179, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 120% at 90% 100%, rgba(154, 164, 178, 0.18), transparent 60%),
    linear-gradient(140deg, #0d1a31, #08101f);
  padding: clamp(38px, 5vw, 60px) clamp(26px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-box h3 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 10px;
  max-width: 620px;
}
.cta-box p { color: var(--text-muted); margin: 0; max-width: 560px; font-size: 1rem; }
.cta-box .btn-primary { flex-shrink: 0; }

/* =========================================================================
   13. CONTACTO
   ========================================================================= */
.contact-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(34px, 4vw, 56px);
  background: linear-gradient(160deg, rgba(16, 28, 51, 0.92), rgba(8, 16, 31, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.2vw, 58px);
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-info > p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 30px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.contact-item:hover { background: rgba(255,255,255,0.03); border-color: var(--border-subtle); }
.contact-bubble {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(47, 109, 179, 0.22), rgba(154, 164, 178, 0.08));
  border: 1px solid rgba(111, 160, 220, 0.2);
  color: var(--accent-light);
  flex-shrink: 0;
}
.contact-text strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 3px; font-weight: 700; }
.contact-text span, .contact-text a { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; text-decoration: none; }
.contact-text a:hover { color: var(--accent-light); }

/* Formulario */
.al-form-frame {
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.al-form-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.al-form-note { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.req { color: var(--accent-light); }

body.atlantec-landing .form-input {
  width: 100%;
  background: rgba(16, 28, 51, 0.7) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  padding: 13px 15px !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 0.94rem !important;
  line-height: 1.4 !important;
  outline: none;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
body.atlantec-landing .form-input::placeholder { color: #556382; }
body.atlantec-landing .form-input:focus {
  border-color: var(--accent-light) !important;
  background: rgba(16, 28, 51, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(79, 139, 209, 0.18) !important;
  outline: none;
}
body.atlantec-landing textarea.form-input { resize: vertical; min-height: 96px; }

.al-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

body.atlantec-landing .form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
  color: #fff !important;
  padding: 16px !important;
  border: 1px solid rgba(169, 198, 234, 0.25) !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(47, 109, 179, 0.95);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
body.atlantec-landing .form-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(47, 109, 179, 1); }
body.atlantec-landing .form-submit[disabled] { filter: grayscale(.4) brightness(.8); cursor: wait; transform: none; }

.al-form-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
}
.al-form-msg.is-ok    { display: block; background: rgba(52, 211, 153, 0.1);  border: 1px solid rgba(52, 211, 153, 0.35);  color: #a7f3d0; }
.al-form-msg.is-error { display: block; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }

.al-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: alSpin .7s linear infinite;
}
@keyframes alSpin { to { transform: rotate(360deg); } }

/* =========================================================================
   14. FOOTER
   ========================================================================= */
.atlantec-footer {
  background: linear-gradient(180deg, var(--bg-primary), #030710);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(56px, 7vw, 84px) 0 28px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 54px);
}
.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col p { font-size: 0.92rem; line-height: 1.8; }
.footer-brand { margin-bottom: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer-links a:hover { color: var(--accent-light); padding-left: 5px; }

.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.6; }
.footer-contact svg { color: var(--accent-light); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--accent-light); }

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 999px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }

/* =========================================================================
   15. BOTON FLOTANTE WHATSAPP
   ========================================================================= */
.al-whatsapp {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(34, 197, 94, 0.75);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
}
.al-whatsapp:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px -10px rgba(34, 197, 94, 0.95); }
.al-whatsapp svg { flex-shrink: 0; }

/* =========================================================================
   16. ANIMACIONES DE ENTRADA
   ========================================================================= */
.al-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.al-reveal.is-visible { opacity: 1; transform: none; }
.al-reveal[data-delay="1"] { transition-delay: .09s; }
.al-reveal[data-delay="2"] { transition-delay: .18s; }
.al-reveal[data-delay="3"] { transition-delay: .27s; }
.al-reveal[data-delay="4"] { transition-delay: .36s; }

/* Sin JS: nunca dejar contenido invisible */
.no-js .al-reveal { opacity: 1; transform: none; }

/* =========================================================================
   17. RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-float { right: 16px; top: -26px; }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: grid; margin-left: auto; }
  .atlantec-nav { gap: 0; }

  .atlantec-nav {
    padding-block: 12px;
    background: rgba(7, 13, 24, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border-subtle);
  }

  .atlantec-menu {
    /* Anclado al alto real de la barra (la barra es fixed, asi que
       absolute se resuelve contra ella). Con un top fijo en px el panel
       se montaba encima del logo cuando la barra crecia. */
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 26px;
    background: #070d18;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.9);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: 72svh;
    overflow-y: auto;
  }
  .atlantec-menu.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .atlantec-menu li { border-bottom: 1px solid var(--border-subtle); }
  .atlantec-menu li:last-child { border-bottom: 0; padding-top: 16px; }
  .atlantec-menu a { display: block; padding: 15px 2px; font-size: 1rem; }
  .atlantec-menu a::after { display: none; }
  .nav-cta { display: block; text-align: center; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 4px; }
  .stat-item:nth-child(3)::before { display: none; }

  .cta-box { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .atlantec-logo-img,
  .atlantec-nav.is-stuck .atlantec-logo-img { height: 40px; }

  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; }
  .hero-scroll { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-float { position: static; max-width: none; margin-top: 16px; }
  .al-whatsapp { padding: 14px; }
  .al-whatsapp span { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================================
   18. MOVIMIENTO REDUCIDO / IMPRESION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.atlantec-landing *,
  body.atlantec-landing *::before,
  body.atlantec-landing *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .al-reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { animation: none; }
}

@media print {
  .atlantec-nav, .al-whatsapp, .hero-scroll, .al-form-frame { display: none !important; }
  body.atlantec-landing { background: #fff; color: #000; }
}
