/* ═══════════════════════════════════════════════════════════════
   CORPORATIVA S.L. — Hoja de estilos principal
   Paleta:
     --navy    #0D1B2A   (fondo oscuro, texto principal)
     --blue    #2E6DA4   (acento corporativo)
     --slate   #4A6580   (texto secundario)
     --mist    #DDE3EA   (separadores, fondos suaves)
     --snow    #F8F9FA   (fondo claro)
     --white   #FFFFFF
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --navy:      #0D1B2A;
  --blue:      #2E6DA4;
  --blue-dark: #235686;
  --slate:     #4A6580;
  --mist:      #DDE3EA;
  --snow:      #F8F9FA;
  --white:     #FFFFFF;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:     4px;
  --shadow:     0 2px 16px rgba(13,27,42,.10);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ─── Utilidades ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ─── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(46,109,164,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover, .btn--outline:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ─── HEADER ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .01em;
  white-space: nowrap;
}
.header__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.header__brand-light { color: var(--slate); font-weight: 400; }

/* Nav */
.header__nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}
.header__nav a {
  padding: 7px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.header__nav a:hover, .header__nav a:focus-visible { color: var(--navy); background: var(--snow); }

.nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav__cta:hover, .nav__cta:focus-visible {
  background: var(--blue-dark) !important;
}

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.header__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  padding-top: 130px;
  padding-bottom: 80px;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* Firma visual: línea de acento vertical */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--blue);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 40px;
  border-left: 1px solid rgba(255,255,255,.12);
  min-width: 180px;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__stat-label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
  letter-spacing: .03em;
}

/* ─── SECCIONES (estructura común) ─────────────────────────── */
.section { padding-block: 80px; }

.section--alt { background: var(--snow); }

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.section__label-col { padding-top: 6px; }

.section__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.section__label--light { color: rgba(255,255,255,.45); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}
.section__title--center { text-align: center; }
.section__title--light { color: var(--white); }

.section__text {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 640px;
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 52px;
}
.section__header .section__label { margin-bottom: 12px; }

.section__intro {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.75;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.feature-list li {
  font-size: .9rem;
  color: var(--slate);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ─── CARDS (Servicios) ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card__icon {
  width: 52px; height: 52px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card__text {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ─── DATOS DE EMPRESA ──────────────────────────────────────── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 48px;
}

.data-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.data-item__icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.data-item__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 5px;
}

.data-item__value {
  font-size: .95rem;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}
.data-item__value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.25);
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.data-item__value a:hover { color: var(--white); }

/* ─── CONTACTO CTA ──────────────────────────────────────────── */
.section--contact {
  background: var(--blue);
  color: var(--white);
  padding-block: 80px;
}

.contact__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.section--contact .btn--primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.section--contact .btn--primary:hover {
  background: var(--snow);
  border-color: var(--snow);
  color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: #080f16;
  color: rgba(255,255,255,.45);
  padding-block: 28px;
  font-size: .82rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__brand {
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
}

.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  transition: color var(--transition);
}
.footer__links a:hover { color: rgba(255,255,255,.8); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__aside {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 28px 0 0;
    gap: 0;
    justify-content: space-around;
  }
  .hero__stat { text-align: center; }

  .section__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section__label-col { padding-top: 0; }

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

  .feature-list { grid-template-columns: 1fr; }
}

/* Móvil ≤ 640px */
@media (max-width: 640px) {
  .hero { padding-top: 110px; padding-bottom: 60px; }

  .hero__aside {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero__stat { text-align: left; }

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

  .section { padding-block: 56px; }
  .section--contact { padding-block: 56px; }

  .data-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer__copy { order: 2; }
  .footer__links { order: 3; }

  /* Menú móvil */
  .header__toggle { display: flex; }

  .header__nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--mist);
    padding: 12px 0 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .header__nav.is-open { display: block; }

  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
  }
  .header__nav a {
    display: block;
    padding: 11px 14px;
    font-size: .95rem;
  }
  .nav__cta { margin-top: 8px; text-align: center; }
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
