/* ComPower - estilo moderno, responsive (móvil / tablet / PC) */
:root {
  --blue: #1e88d6;
  --blue-dark: #0f5c9a;
  --navy: #05082c;
  --navy-2: #0b1140;
  --ink: #1c2233;
  --muted: #5d6680;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e8f0;
  --accent: #ff8a1f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 25, 70, .10);
  --shadow-lg: 0 20px 50px rgba(10, 25, 70, .18);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfd6f3; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: center; padding: 9px 0; }
.topbar a { color: #fff; }
.topbar span { white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover, .nav a.active { background: var(--bg-soft); color: var(--blue-dark); }
.nav a.cta { background: var(--blue); color: #fff; }
.nav a.cta:hover { background: var(--blue-dark); color: #fff; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--bg-soft); cursor: pointer; padding: 0; position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s;
}
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.burger[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 20px 22px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
  .nav a.cta { text-align: center; margin-top: 8px; }
  .topbar { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; min-height: min(86vh, 720px); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides img.on { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5, 8, 44, .92) 0%, rgba(5, 8, 44, .68) 48%, rgba(5, 8, 44, .25) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 90px 0 110px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #8fd0ff; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 62px); font-weight: 800; max-width: 17ch; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: #6cc3ff; }
.hero p { font-size: clamp(16px, 1.6vw, 20px); max-width: 52ch; color: #d6dcf5; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(30, 136, 214, .4); }
.btn-primary:hover { background: #2a97e8; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 30px; background: #fff; }

/* ---------- Stats ---------- */
.stats { padding: 0; margin-top: -54px; position: relative; z-index: 5; }
.stats .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(20px, 2.4vw, 28px); color: var(--blue-dark); font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats { margin-top: -36px; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Section titles ---------- */
.title { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.title .tag { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.title h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 10px 0 0; }
.title p { color: var(--muted); margin-top: 14px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split.rev .media { order: 2; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pillars li { display: flex; gap: 14px; align-items: center; background: var(--bg-soft); padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.pillars li::before { content: '✓'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.mv { background: var(--bg-soft); border-left: 4px solid var(--blue); padding: 20px 24px; border-radius: 0 12px 12px 0; margin-bottom: 20px; }
.mv h2 { font-size: 26px; margin-bottom: .3em; }
.mv p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
}

/* ---------- Cards (servicios) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 24px 24px 28px; flex: 1; }
.card h3 { font-size: 20px; font-weight: 700; color: var(--navy); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card li { margin-bottom: 8px; }
.card li ul { margin-top: 6px; list-style: square; }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- Experiencia ---------- */
.exp { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.exp-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); display: block; color: #fff; }
.exp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.exp-card:hover img { transform: scale(1.08); }
.exp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 44, .92)); }
.exp-card .cap { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.exp-card h3 { font-size: 19px; margin: 0 0 8px; color: #fff; }
.exp-card span { font-size: 14px; font-weight: 600; color: #8fd0ff; }

/* ---------- Política ---------- */
.policy { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.policy-box { background: var(--navy); color: #dfe4fb; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.policy-box h3 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); }
.policy-box ul { padding-left: 20px; }
.policy-box li { margin-bottom: 8px; }
.policy-box strong { color: #fff; }
.policy-box .link { display: inline-block; margin-top: 10px; color: #8fd0ff; font-weight: 600; }
.policy-side img.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.certs { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.certs img { height: 96px; width: auto; }
@media (max-width: 900px) { .policy { grid-template-columns: 1fr; } }

/* ---------- Clientes ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.logos .logo {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  display: grid; place-items: center; aspect-ratio: 3 / 2; transition: box-shadow .25s, transform .25s;
}
.logos .logo:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logos img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos .logo:hover img { filter: none; opacity: 1; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact .info { background: var(--navy); color: #dfe4fb; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.contact h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 0; }
.contact .row { display: flex; gap: 16px; align-items: flex-start; }
.contact .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 20px; }
.contact .row small { display: block; color: #8fd0ff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.contact .row a { color: #fff; font-weight: 500; word-break: break-word; }
.contact .logo-c { margin-top: auto; max-width: 200px; border-radius: 10px; }
.contact .photo { min-height: 320px; }
.contact .photo img { width: 100%; height: 100%; object-fit: cover; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: clamp(300px, 45vw, 420px); border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact .photo { height: 240px; min-height: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #03051f; color: #9aa3cc; padding: 28px 0; font-size: 14px; text-align: center; }
.site-footer a { color: #cfd6f3; }

/* ---------- Páginas interiores ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; padding: clamp(44px, 7vw, 80px) 0; }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; margin: 0 0 8px; }
.page-hero p { margin: 0; color: #cfe6fb; }

/* ---------- Noticias ---------- */
.news-feature { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.news-feature .txt { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.badge { background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.news-meta time { color: var(--muted); font-size: 14px; font-weight: 500; }
.news-feature h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; }
.news-feature p { color: var(--muted); }
.news-feature .visual { display: grid; place-items: center; padding: 0; }
.news-feature .visual img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.fact { background: var(--bg-soft); border-radius: 12px; padding: 16px 10px; text-align: center; }
.fact b { display: block; color: var(--blue-dark); font-size: 17px; font-weight: 800; }
.fact span { font-size: 13px; color: var(--muted); }
.cert-view { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.cert-view img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; cursor: zoom-in; }
.cert-view h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.cert-view p { color: var(--muted); }
.cta-band { margin-top: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h3 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); }
.cta-band p { margin: 6px 0 0; color: #cfe6fb; }
@media (max-width: 860px) {
  .news-feature, .cert-view { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .news-feature .visual { order: -1; }
}
.page-hero .back { display: inline-block; margin-bottom: 14px; color: #8fd0ff; font-weight: 600; font-size: 15px; }
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative; box-shadow: var(--shadow); background: var(--bg-soft); }
.gallery img { width: 100%; transition: transform .5s; cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: 14px; font-weight: 500; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(5, 8, 44, .85)); pointer-events: none; }
.news-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.news-card img { border-radius: 12px; }
.news-doc { margin: 34px auto 0; max-width: 760px; }
.news-doc img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
@media (max-width: 760px) { .news-card { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(3, 5, 31, .92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.lb button { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slides img { transition: none; }
}
