:root {
    --blue: #124f2d;
    --blue-dark: #082f1b;
    --blue-soft: #edf8ef;
    --magenta: #078fc9;
    --magenta-dark: #0674a3;
    --ink: #14251b;
    --muted: #65717d;
    --line: #e7ebef;
    --soft: #f3f8f1;
    --white: #fff;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Nunito Sans", sans-serif; }
section { scroll-margin-top: 90px; }
img { max-width: 100%; }
a { transition: color .2s ease, background-color .2s ease, transform .2s ease; }

.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: .7rem 1rem; color: #fff; background: #111; border-radius: .5rem; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.topbar { padding: .62rem 0; color: #fff; background: linear-gradient(90deg, var(--blue-dark), var(--blue)); font-size: .86rem; }
.topbar a { color: #fff; text-decoration: none; }
.navbar { min-height: 78px; background: rgba(255,255,255,.96); box-shadow: 0 7px 28px rgba(15,44,68,.08); backdrop-filter: blur(12px); }
.navbar-brand { display: inline-flex; align-items: center; gap: .7rem; }
.navbar-brand img { display: block; width: 58px; height: 58px; object-fit: contain; }
.navbar-brand span, .navbar-brand strong, .navbar-brand small { display: block; }
.navbar-brand strong { color: var(--blue-dark); font-size: 1rem; font-weight: 900; line-height: 1.05; }
.navbar-brand small { margin-top: .18rem; color: var(--muted); font-size: .67rem; font-weight: 700; }
.navbar .nav-link { padding: .7rem .8rem !important; color: var(--ink); font-weight: 700; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--magenta); }

.btn { border-radius: .85rem; font-weight: 800; }
.btn-brand { padding: .82rem 1.3rem; color: #fff; background: var(--magenta); border-color: var(--magenta); }
.btn-brand:hover, .btn-brand:focus { color: #fff; background: var(--magenta-dark); border-color: var(--magenta-dark); transform: translateY(-2px); }
.btn-outline-brand { padding: .82rem 1.3rem; color: var(--blue); border-color: var(--blue); }
.btn-outline-brand:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

.hero { position: relative; display: flex; min-height: 690px; align-items: center; overflow: hidden; padding: 5rem 0 7rem; background: radial-gradient(circle at 15% 20%, rgba(13,87,151,.1), transparent 35%), linear-gradient(135deg, #fff 0%, #fff 58%, #eef7ff 100%); }
.hero::after { position: absolute; right: -170px; bottom: -260px; width: 540px; height: 540px; content: ""; border: 75px solid rgba(139,190,70,.13); border-radius: 50%; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem; color: var(--blue); background: var(--blue-soft); border-radius: 99px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 1.3rem 0 1.5rem; font-size: clamp(2.7rem, 6vw, 5.35rem); font-weight: 800; line-height: .98; letter-spacing: -.06em; }
.hero h1::after { display: inline-block; width: .17em; height: .17em; margin-left: .08em; content: ""; background: var(--magenta); }
.hero-copy { max-width: 650px; margin-bottom: 2rem; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-notes i { color: var(--blue); }
.hero-media { position: relative; z-index: 2; }
.hero-media > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2rem; box-shadow: 0 32px 85px rgba(7,52,95,.2); }
.hero-card { position: absolute; bottom: 24px; left: -30px; display: flex; max-width: 280px; align-items: center; gap: 1rem; padding: 1.1rem; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.75); border-radius: 1.1rem; box-shadow: 0 18px 45px rgba(10,37,60,.18); backdrop-filter: blur(10px); }
.hero-card strong, .hero-card small { display: block; }
.hero-card small { margin-top: .15rem; color: var(--muted); }

.icon-box { display: inline-flex; flex: 0 0 auto; width: 52px; height: 52px; align-items: center; justify-content: center; color: var(--magenta); background: #fff0f5; border-radius: .9rem; font-size: 1.45rem; }
.trust-strip { position: relative; z-index: 4; margin-top: -48px; }
.trust-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: 0 18px 50px rgba(20,56,83,.1); }
.trust-item { display: flex; align-items: center; gap: 1rem; padding: 1.45rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item > i { color: var(--blue); font-size: 1.65rem; }
.trust-item strong, .trust-item span { display: block; }
.trust-item span { margin-top: .15rem; color: var(--muted); font-size: .83rem; }

.section-space { padding: 6.5rem 0; }
.bg-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin: 0 auto 3rem; }
.section-label { color: var(--magenta); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2, .feature-panel h2 { margin: .7rem 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 1.03rem; line-height: 1.7; }

.category-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-7px); box-shadow: 0 22px 48px rgba(12,52,83,.12); }
.category-card > img { display: block; width: 100%; height: 225px; object-fit: cover; }
.category-card .card-body { padding: 1.45rem; }
.category-card h3 { margin: 1rem 0 .65rem; font-size: 1.15rem; font-weight: 800; }
.category-card p { min-height: 72px; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.category-card a { color: var(--blue); font-size: .9rem; font-weight: 800; text-decoration: none; }
.category-card a:hover { color: var(--magenta); }

.feature-panel { position: relative; overflow: hidden; padding: clamp(1.5rem, 5vw, 4rem); color: #fff; background: linear-gradient(135deg, var(--blue-dark), #071725 70%); border-radius: 2rem; }
.feature-panel::before { position: absolute; top: -180px; right: -180px; width: 430px; height: 430px; content: ""; border: 65px solid rgba(189,16,77,.35); border-radius: 50%; }
.feature-panel p { max-width: 620px; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.75; }
.feature-list { padding: 0; margin: 1.8rem 0 2rem; list-style: none; }
.feature-list li { display: flex; gap: .7rem; margin-bottom: .8rem; }
.feature-list i { color: #a9d95b; }
.feature-image { position: relative; z-index: 2; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1.25rem; }

.step-card { position: relative; height: 100%; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; }
.step-card > span { position: absolute; top: 1.2rem; right: 1.4rem; color: #dce5ed; font-size: 2rem; font-weight: 800; }
.step-card > i { color: var(--magenta); font-size: 2rem; }
.step-card h3 { margin: 1.3rem 0 .7rem; font-size: 1.1rem; font-weight: 800; }
.step-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.contact-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; box-shadow: 0 24px 65px rgba(15,49,75,.1); }
.contact-info { min-height: 100%; padding: clamp(2rem, 5vw, 3.5rem); color: #fff; background: linear-gradient(rgba(4,31,57,.82), rgba(13,87,151,.88)), url("../img/fondo-contacto.webp") center/cover; }
.contact-info h3 { font-size: 2rem; font-weight: 800; }
.contact-info > p { margin-bottom: 2.2rem; color: rgba(255,255,255,.75); line-height: 1.65; }
.contact-line { display: flex; gap: 1rem; margin: 1.35rem 0; }
.contact-line > i { font-size: 1.35rem; }
.contact-line strong, .contact-line a { display: block; }
.contact-line a, .contact-line address { margin-top: .2rem; color: rgba(255,255,255,.82); font-style: normal; text-decoration: none; }
.contact-form { padding: clamp(2rem, 5vw, 3.5rem); }
.form-control, .form-select { min-height: 52px; border-color: #dce2e7; border-radius: .75rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--blue); box-shadow: 0 0 0 .25rem rgba(13,87,151,.14); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.form-check a { color: var(--blue); font-weight: 700; }
.form-note { color: var(--muted); font-size: .78rem; }

footer { padding: 4.5rem 0 1.5rem; color: rgba(255,255,255,.68); background: #07131e; }
.footer-logo { width: 140px; height: 140px; margin-bottom: 1rem; object-fit: cover; background: #fff; border-radius: 1rem; }
footer p { max-width: 430px; font-size: .9rem; }
footer h2 { color: #fff; font-size: .95rem; font-weight: 800; }
footer a { display: block; width: fit-content; margin: .65rem 0; color: rgba(255,255,255,.68); font-size: .87rem; text-decoration: none; }
footer a:hover { color: #fff; }
footer hr { margin: 2.5rem 0 1.25rem; border-color: rgba(255,255,255,.16); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .8rem; }

.whatsapp-float { position: fixed; z-index: 1000; right: 22px; bottom: 22px; display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; color: #fff; background: #25d366; border-radius: 50%; box-shadow: 0 14px 34px rgba(0,0,0,.22); font-size: 1.75rem; text-decoration: none; }
.whatsapp-float:hover { color: #fff; background: #1fbd5b; transform: translateY(-3px); }

.policy-hero { padding: 5rem 0 7rem; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(189,16,77,.5), transparent 26%), linear-gradient(135deg, var(--blue-dark), #07131e); }
.policy-hero h1 { max-width: 900px; margin: 1rem 0; font-size: clamp(2.5rem, 6vw, 4.7rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.policy-card { position: relative; margin: -4rem auto 5rem; padding: clamp(1.5rem, 5vw, 4rem); background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; box-shadow: 0 25px 70px rgba(10,40,65,.12); }
.policy-card h2 { margin: 2.6rem 0 1rem; font-size: 1.35rem; font-weight: 800; }
.policy-card h2:first-of-type { margin-top: 0; }
.policy-card p, .policy-card li { color: #53616d; line-height: 1.8; }
.policy-card a { color: var(--blue); font-weight: 700; }
.legal-note { padding: 1.2rem; background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: .7rem; }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: .8rem 0 1rem; }
    .hero { padding-top: 4rem; }
    .hero-media { margin-top: 1rem; }
    .hero-card { left: 18px; }
    .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 575.98px) {
    .topbar { text-align: center; }
    .navbar-brand img { width: 48px; height: 48px; }
    .navbar-brand strong { font-size: .86rem; }
    .navbar-brand small { font-size: .6rem; }
    .hero { min-height: auto; padding: 3.6rem 0 6rem; }
    .hero-media > img { border-radius: 1.2rem; }
    .hero-card { position: relative; bottom: auto; left: auto; max-width: none; margin: -28px 14px 0; }
    .trust-strip { margin-top: -34px; }
    .section-space { padding: 4.5rem 0; }
    .category-card > img { height: 210px; }
    .category-card p { min-height: auto; }
    .feature-panel { border-radius: 1.25rem; }
    .footer-bottom { flex-direction: column; }
    .whatsapp-float { right: 15px; bottom: 15px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
