:root {
  --blue: #031be6;
  --blue-dark: #0212a3;
  --blue-soft: #eef0ff;
  --yellow: #f2b800;
  --wa: #08bc0b;
  --wa-dark: #079a0a;
  --ink: #14161f;
  --text: #3c4150;
  --muted: #6b7180;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --dark: #0b0f1d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 20, 60, .08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; color: var(--yellow); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(3, 27, 230, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(8, 188, 11, .28); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.center .btn-row { justify-content: center; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--blue); }
/* El desenfoque va en una capa aparte: si se pone en .site-header, el menú móvil (position: fixed) queda atrapado dentro del encabezado. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.menu-open { overflow: hidden; }
body.menu-open .wa-float { display: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { display: block; }
.dropdown a { padding: 9px 12px; font-size: .92rem; }
.dropdown a:hover { background: var(--blue-soft); }
.nav-cta { margin-left: 10px; padding: 10px 18px !important; }
.nav-links a.nav-cta { background: var(--wa); color: #fff; }
.nav-links a.nav-cta:hover { background: var(--wa-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; color: var(--ink); }

/* Hero slider */
.hero { position: relative; min-height: 560px; color: #fff; overflow: hidden; background: var(--dark); touch-action: pan-y; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,30,.82) 0%, rgba(5,10,30,.55) 55%, rgba(5,10,30,.25) 100%); }
.slide .container { position: relative; z-index: 2; }
.slide h1, .slide h2 { color: #fff; max-width: 640px; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.slide p { max-width: 560px; font-size: 1.12rem; opacity: .92; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; width: 28px; border-radius: 6px; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, #050a24 0%, #0a1a8c 100%); color: #fff; padding: 84px 0 76px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242,184,0,.22), transparent 70%); }
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero p { max-width: 680px; font-size: 1.12rem; opacity: .9; }
.page-hero .container { position: relative; }
/* Encabezado con foto de fondo: degradado oscuro a la izquierda para que el texto se lea */
.page-hero.has-image { background: #06101a; min-height: 450px; display: flex; align-items: center; }
.page-hero.has-image::before { display: none; }
.page-hero.has-image .container { width: 100%; z-index: 2; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center right; }
.page-hero.has-image::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,10,18,.92) 0%, rgba(3,10,18,.78) 36%, rgba(3,10,18,.35) 67%, rgba(3,10,18,.25) 100%); }
.crumbs { font-size: .85rem; opacity: .75; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }

/* Grid & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
a.card { text-decoration: none; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link { color: var(--blue); font-weight: 600; font-size: .92rem; }
.services-grid { grid-template-columns: repeat(5, 1fr); margin-top: 40px; gap: 18px; }

.feature { text-align: center; padding: 10px; }
.feature img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 14px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card h3 { display: flex; gap: 10px; align-items: center; }
.info-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.dot { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; flex: none; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { position: relative; padding: 6px 0 6px 32px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031be6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--blue); font-weight: 700; line-height: 1.1; }
.stat span { color: var(--muted); }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; align-items: center; margin-top: 36px; }
.logos div { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 104px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logos img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(.2); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; font-family: inherit; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: .95rem; }
.gallery figcaption small { display: block; color: var(--yellow); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.lightbox { position: fixed; inset: 0; background: rgba(5,8,20,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* Reviews */
.reviews-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.rating { display: flex; align-items: center; gap: 12px; }
.rating strong { font-size: 2.2rem; color: var(--ink); }
.stars { color: var(--yellow); letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.review-top small { display: block; color: var(--muted); font-size: .8rem; }
.review p { margin: 6px 0 0; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, #0a1a8c 100%); color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; font-size: 1.1rem; }

/* Specs */
.specs { width: 100%; border-collapse: collapse; margin: 10px 0 24px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs th { color: var(--muted); font-weight: 500; width: 46%; }
.specs td { color: var(--ink); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-items { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); font-size: .95rem; text-decoration: none; }
.contact-item a:hover { color: var(--blue); }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 14px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg-soft); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form .btn { width: 100%; justify-content: center; margin-top: 20px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-status { margin-top: 14px; padding: 12px; border-radius: 10px; font-size: .92rem; display: none; }
.form-status.ok { display: block; background: #e8f9ea; color: #11681a; }
.form-status.err { display: block; background: #fdecec; color: #9b1c1c; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img.logo { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 14px; }
.footer-brand img.sec { height: 54px; width: auto; margin-top: 14px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.75); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.25); font-size: .92rem; }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* Responsive */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px; overflow-y: auto; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { font-size: 1.05rem; padding: 14px 6px; width: 100%; text-align: left; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .nav-cta { margin: 12px 0 0; text-align: center !important; justify-content: center; }
}
@media (max-width: 640px) {
  .page-hero.has-image { min-height: 380px; }
  .page-hero.has-image::after { background: rgba(3,10,18,.72); }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .gallery, .footer-grid, .form .row, .services-grid, .reviews { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .cta-band { padding: 40px 22px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; }
}
