/* Connecting CR — hoja de estilos única, sin dependencias externas */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #16304f;
  --navy-600: #1e4270;
  --accent: #0ea5a4;
  --accent-bright: #14c8c6;
  --accent-soft: #e6faf9;
  --ink: #17212f;
  --ink-soft: #4a5768;
  --line: #dde3ec;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .06);
  --shadow-lift: 0 2px 4px rgba(10, 22, 40, .08), 0 16px 40px rgba(10, 22, 40, .12);
  --radius: 14px;
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef6;
    --ink-soft: #a2b1c4;
    --line: #23344c;
    --bg: #0a1220;
    --bg-alt: #0e1a2c;
    --card: #101d31;
    --accent-soft: #0d2b2c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: #b9c7d9;
  font-size: .875rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.topbar a { color: #cfdcea; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .spacer { margin-left: auto; }

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
/* El logo es un wordmark horizontal (191x60): altura fija, ancho proporcional. */
.brand img { height: 36px; width: auto; display: block; }
.brand .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-dark { display: none; }
  .brand .logo-light { display: block; }
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-soft); padding: 9px 13px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: 6px;
}
.lang a { padding: 6px 11px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); border-radius: 0; }
.lang a[aria-current="true"] { background: var(--accent); color: #fff; }
.lang a:hover { text-decoration: none; }

.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 22px 18px; gap: 2px;
  }
  .nav.open { display: flex; }
  .lang { margin: 10px 0 0; align-self: flex-start; }
  .topbar .spacer { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(14, 165, 164, .3); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/slider-1.webp");
  background-size: cover; background-position: center;
  opacity: .17; mix-blend-mode: luminosity;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 120px); }
.hero-inner { max-width: 730px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.24rem); color: #c7d5e6; max-width: 62ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.pillar { background: var(--bg-alt); padding: 26px 24px; }
.pillar h3 { font-size: 1rem; margin-bottom: .35em; display: flex; align-items: center; gap: 9px; }
.pillar p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.pillar svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  color: var(--accent); font-weight: 700; font-size: .82rem;
  letter-spacing: .11em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }

/* ---------- Servicios ---------- */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 24px; flex: 1; }
.service h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .45em; }
.service h3 svg { color: var(--accent); flex-shrink: 0; }
.service p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Split (por qué / cómo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 62px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split.reverse .split-media { order: -1; }
@media (max-width: 900px) { .split.reverse .split-media { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 17px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.checklist strong { display: block; margin-bottom: 2px; }
.checklist span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); text-align: center;
}
.contact-card .ico {
  width: 46px; height: 46px; margin: 0 auto 15px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .3em; }
.contact-card a { font-size: 1.06rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-card a:hover { color: var(--accent); }
.contact-card small { display: block; color: var(--ink-soft); margin-top: 5px; font-size: .87rem; }

.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-600));
  color: #fff; border-radius: var(--radius); padding: clamp(34px, 5vw, 54px); text-align: center; margin-top: 44px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d5e6; max-width: 56ch; margin-inline: auto; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #94a6bd; padding-block: 52px 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h2 { color: #fff; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: #b9c7d9; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 16px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 42px; padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .85rem;
}
