/* MULTIPARQUES – hoja de estilos única, sin dependencias */
:root {
  --navy: #0b1b3a;
  --navy-2: #13295a;
  --orange: #f26b1d;
  --orange-d: #d9560b;
  --yellow: #ffc21a;
  --green: #2bb24c;
  --blue: #1e6fe0;
  --purple: #8b3fd1;
  --red: #e5322d;
  --ink: #1b2437;
  --muted: #5b6577;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 58, .08);
  --shadow-lg: 0 20px 50px rgba(11, 27, 58, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, video, iframe { max-width: 100%; display: block; }
picture { display: contents; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850; }
h3, .h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 2rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.25em; border-radius: 999px; font-weight: 750; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 107, 29, .35); }
.btn-primary:hover { background: var(--orange-d); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: .02em; color: var(--navy); }
.brand img { width: 44px; height: auto; }
.brand span { background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav > ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 650; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--orange); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -1rem; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .5rem .8rem; border-radius: 8px; }
.sub a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px 1.5rem; box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .sub a { padding: .4rem 0; font-weight: 500 !important; }
  .nav .btn { justify-content: center; margin-top: 1rem; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media, .hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: 0; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.ready { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 27, 58, .88) 0%, rgba(11, 27, 58, .55) 45%, rgba(11, 27, 58, .1) 100%); }
.hero-content { position: relative; z-index: 2; padding: 5rem 0; max-width: 1200px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 58ch; color: #dbe4f5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .8rem; color: var(--orange); margin-bottom: .6rem; }
.hero .eyebrow { color: var(--yellow); }

/* Barra de confianza */
.trust { background: var(--navy-2); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust-grid > div { display: flex; gap: .8rem; align-items: center; }
.trust-grid .icon { width: 34px; height: 34px; color: var(--yellow); }
.trust-grid p { margin: 0; line-height: 1.3; }
.trust-grid strong { display: block; }
.trust-grid span { font-size: .9rem; color: #b9c6e3; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* Secciones */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #dbe4f5; }
.section-dark h2, .section-dark > .wrap > .section-head h3 { color: #fff; }
.section-dark .card { color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:last-child { color: #b9c6e3; }
.page-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe4f5; padding: 2.5rem 0 3.5rem; }
.page-head h1 { color: #fff; max-width: 22ch; }
.page-head .lead { font-size: 1.15rem; max-width: 65ch; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: #b9c6e3; }

/* Rejillas y tarjetas */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; color: var(--orange); font-weight: 750; display: inline-flex; gap: .4em; align-items: center; }
.card .meta { display: flex; gap: .4em; align-items: center; margin: 0; }
.card .meta .icon { color: var(--orange); }
.badge { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: .8rem; font-weight: 750; padding: .25rem .65rem; border-radius: 999px; display: flex; gap: .3rem; align-items: center; }

/* Bloques a dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; }
.split-rev > :first-child { order: 2; }
.split-media img, img.rounded { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-rev > :first-child { order: 0; } }
.prose { color: #334055; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }

.checks { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: 1px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.section-alt .steps li { border: 0; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 900; color: #fff; margin-bottom: 1rem; font-size: 1.2rem; }
.steps li:nth-child(4n+1) .step-n { background: var(--orange); }
.steps li:nth-child(4n+2) .step-n { background: var(--green); }
.steps li:nth-child(4n+3) .step-n { background: var(--blue); }
.steps li:nth-child(4n+4) .step-n { background: var(--purple); }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: #fff; border-radius: 12px; margin-bottom: .8rem; box-shadow: 0 2px 10px rgba(11, 27, 58, .05); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 750; display: flex; justify-content: space-between; gap: 1rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq-chev { transition: transform .2s; color: var(--orange); }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.1rem; color: #334055; }
.faq-a p:last-child { margin: 0; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--orange) 0%, #f2421d 100%); color: #fff; padding: 3.5rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 60ch; color: #fff3ea; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta .btn-primary { background: var(--navy); box-shadow: none; }
.cta .btn-primary:hover { background: var(--navy-2); }

/* Galerías */
.gallery-main img { width: 100%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; margin-top: .6rem; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; height: auto; }
.masonry { columns: 3 300px; column-gap: 1rem; margin-bottom: 3rem; }
.masonry a { display: block; margin-bottom: 1rem; break-inside: avoid; border-radius: 12px; overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .4s; }
.masonry a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; background: rgba(5, 10, 25, .94); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 18px; color: #fff; font-size: .9rem; }

.project-info { margin-top: 1rem; }
.facts { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; }
.facts dl { margin: 0; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0 0 1rem; font-weight: 650; }
.notice { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Formularios */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 650; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1.5px solid #cfd6e3; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(30, 111, 224, .15); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.form .check input { margin-top: .3rem; width: 18px; height: 18px; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-ok { background: #e7f8ec; color: #145c2a; }
.alert-ok .icon { width: 24px; height: 24px; }
.alert-error { background: #fdecec; color: #8a1c1c; }
.contact-card { background: var(--navy); color: #dbe4f5; border-radius: var(--radius); padding: 2rem; position: sticky; top: 96px; }
.contact-card h2 { color: #fff; }
.contact-card a { color: #fff; }
.map { width: 100%; height: 240px; border: 0; border-radius: 12px; margin-top: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-list .icon { color: var(--orange); margin-top: .2em; }

/* Pie */
.site-footer { background: #071228; color: #9fb0d1; padding: 4rem 0 0; font-size: .95rem; }
.site-footer a { color: #dbe4f5; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand { font-weight: 900; font-size: 1.3rem; color: #fff; }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding: 1.4rem 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); z-index: 60; }
.wa-float .icon { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Franja de Instagram */
.ig-band { background: linear-gradient(110deg, #833ab4 0%, #c13584 40%, #e1306c 65%, #f77737 100%); color: #fff; padding: 2.8rem 0; }
.ig-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.ig-inner > div { flex: 1 1 320px; }
.ig-inner h2 { color: #fff; margin-bottom: .3em; }
.ig-inner p { margin: 0; color: #fde8f1; max-width: 62ch; }
.ig-logo { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .18); flex: none; }
.ig-logo .icon { width: 40px; height: 40px; }
.ig-band .btn-light { color: #c13584; }
