:root {
    color-scheme: light;
    --blue: #123b68;
    --blue-dark: #0a2748;
    --crimson: #c8102e;
    --ink: #253247;
    --muted: #647184;
    --line: #dce3eb;
    --paper: #f5f7fa;
    --white: #fff;
    --container: 1180px;
    --shadow: 0 16px 42px rgba(10, 39, 72, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font: 16px/1.65 "Segoe UI", Arial, sans-serif;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--crimson); }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .75rem; color: var(--blue-dark); line-height: 1.18; }
h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 3000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--blue-dark);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    color: var(--crimson);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.section { padding: 82px 0; }
.section--soft { background: var(--paper); }
.section-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.text-link { color: var(--blue); font-weight: 750; }
.text-link:hover { color: var(--crimson); }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 21px;
    border: 2px solid var(--crimson);
    border-radius: 4px;
    color: var(--white);
    background: var(--crimson);
    font-weight: 750;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { color: var(--white); background: #a90d27; border-color: #a90d27; transform: translateY(-1px); }
.button--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.82); }
.button--outline:hover { color: var(--blue-dark); background: var(--white); border-color: var(--white); }
.button--blue { background: var(--blue); border-color: var(--blue); }
.button--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.top-bar {
    overflow: hidden;
    color: var(--white);
    background: var(--blue-dark);
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
}
.marquee-content { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-content span { padding: 9px 24px; }
.marquee-content:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.main-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: var(--white);
    box-shadow: 0 3px 16px rgba(10,39,72,.08);
}
.header-inner {
    display: flex;
    width: min(var(--container), calc(100% - 40px));
    min-height: 100px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-inline: auto;
}
.logo { flex: 0 0 auto; }
.logo img { width: 310px; height: 100px; object-fit: contain; }
.desktop-nav { margin-left: auto; }
.nav-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 1px; }
.nav-menu > li { position: relative; flex: 0 0 auto; }
.nav-menu > li.has-dropdown { display: flex; align-items: center; }
.nav-menu > li > a, .nav-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 4px;
    padding: 10px 7px;
    border: 0;
    border-radius: 4px;
    color: var(--blue-dark);
    background: transparent;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .015em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-action { padding-inline: 3px; }
.nav-menu > li > a:hover, .nav-menu > li > a.active, .nav-action:hover, .nav-action[aria-expanded="true"] {
    color: var(--crimson);
    background: var(--paper);
}
.dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    display: none;
    width: 300px;
    max-height: min(76vh, 640px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--crimson);
    background: var(--white);
    box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu, .has-dropdown.dropdown-open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 3px;
    color: var(--ink);
    font-size: .9rem;
}
.dropdown-menu a:hover, .dropdown-menu a.active { color: var(--crimson); background: var(--paper); }
.dropdown-label {
    margin: 10px 10px 4px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.header-phone { flex-shrink: 0; padding: 10px 14px; border-radius: 6px; color: var(--white); background: var(--crimson); font-weight: 800; text-align: center; white-space: nowrap; transition: background-color .2s ease; }
.header-phone:hover { color: var(--white); background: #a90d27; }
.header-phone strong { display: block; font-size: .72rem; color: var(--white); font-weight: 650; }
.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--blue-dark);
    background: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}
.sidebar-overlay { position: fixed; z-index: 1100; inset: 0; display: none; background: rgba(10, 39, 72, .5); }
.sidebar-overlay.show { display: block; }
.mobile-sidebar {
    position: fixed;
    z-index: 1200;
    top: 0;
    right: 0;
    width: min(370px, 88vw);
    height: 100dvh;
    overflow-y: auto;
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .25s ease;
}
.mobile-sidebar.open { transform: translateX(0); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sidebar-header img { width: 175px; max-height: 60px; object-fit: contain; }
.sidebar-close { width: 42px; height: 42px; border: 1px solid var(--line); color: var(--blue-dark); background: var(--white); font-size: 1.35rem; cursor: pointer; }
.sidebar-menu { display: grid; gap: 6px; padding-top: 18px; }
.sidebar-menu > a, .services-title {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border: 0;
    border-radius: 4px;
    color: var(--blue-dark);
    background: var(--paper);
    font-weight: 750;
    text-align: left;
}
.services-title { cursor: pointer; }
.services-subitems { display: none; padding: 4px 0 4px 14px; }
.services-section.open .services-subitems { display: block; }
.services-subitems a { display: block; padding: 9px 12px; color: var(--ink); font-size: .92rem; }
.services-subitems a:hover { color: var(--crimson); }
.mobile-sub-header { margin: 9px 12px 3px; color: var(--crimson); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-quote { margin-top: 10px; color: var(--white) !important; background: var(--crimson) !important; }

.hero { position: relative; min-height: 640px; overflow: hidden; color: var(--white); background: var(--blue-dark); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(5, 28, 52, .68); }
.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(var(--container), calc(100% - 40px));
    min-height: 640px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .75fr);
    align-items: center;
    gap: 56px;
    margin-inline: auto;
    padding-block: 70px;
}
.hero-content { max-width: 700px; }
.hero h1, .hero h2 { color: var(--white); }
.hero h1 span { color: #fff; }
.hero-content > p { max-width: 640px; margin: 18px 0 25px; color: #f2f5f8; font-size: 1.15rem; }
.hero-features { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 28px; color: #f4f6f8; font-size: .91rem; }
.hero-feature::before { content: "✓"; margin-right: 8px; color: #fff; font-weight: 900; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.estimate-box { padding: 27px; border: 1px solid rgba(255,255,255,.35); border-top: 4px solid var(--crimson); border-radius: 4px; color: var(--white); background: rgba(255,255,255,.18); box-shadow: var(--shadow); }
.form-header { margin-bottom: 16px; color: var(--blue-dark); font-size: 1.2rem; font-weight: 850; }
.estimate-form, .contact-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; color: var(--blue-dark); font-size: .88rem; font-weight: 750; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c9d2dd;
    border-radius: 3px;
    color: var(--ink);
    background: var(--white);
}
textarea { min-height: 135px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 3px solid rgba(200, 16, 46, .28);
    outline-offset: 2px;
}
.estimate-form .button, .contact-form .button { width: 100%; }
.form-note { color: var(--muted); font-size: .83rem; }
.form-status { min-height: 1.5em; color: var(--blue); font-size: .92rem; font-weight: 700; }
.form-status.error { color: var(--crimson); }
.hero .estimate-box label, .hero .form-note, .hero .form-status { color: var(--white); }
.hero .estimate-box input, .hero .estimate-box select, .hero .estimate-box textarea {
    color: var(--white);
    background: transparent;
    border-color: rgba(255,255,255,.7);
}
.hero .estimate-box textarea::placeholder { color: #e6edf5; opacity: 1; }
.hero .estimate-box option { color: var(--ink); background: var(--white); }

.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 38px; padding: 21px 20px; color: var(--blue-dark); background: var(--paper); font-size: .92rem; font-weight: 750; }
.trust-item::before { content: "•"; margin-right: 9px; color: var(--crimson); font-size: 1.2rem; }
.about-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 60px; }
.about-image img { width: 100%; min-height: 350px; max-height: 500px; object-fit: cover; }
.about-content p { color: var(--muted); }
.about-content .button { margin-top: 7px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card-content { padding: 22px; }
.service-card-content p { color: var(--muted); }
.service-card-content a { color: var(--blue); font-weight: 800; }
.service-card-content a:hover { color: var(--crimson); }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.split-section img { width: 100%; max-height: 440px; object-fit: cover; }
.check-list { display: grid; gap: 10px; margin: 20px 0; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { position: absolute; left: 0; color: var(--crimson); content: "✓"; font-weight: 850; }
.cta-band { padding: 56px 0; color: var(--white); background: var(--blue); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; color: var(--white); font-size: clamp(1.7rem, 3vw, 2.45rem); }
.cta-band p { margin: 6px 0 0; color: #edf2f7; }
.page-hero { position: relative; isolation: isolate; padding: 78px 0; color: var(--white); background: var(--blue) url("../src/images/cabecera.jpg") center / cover no-repeat; }
.page-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: rgba(5, 28, 52, .68); }
.page-hero h1 { max-width: 900px; color: var(--white); font-size: clamp(2.3rem, 4.5vw, 3.8rem); }
.page-hero p { max-width: 760px; margin-bottom: 0; color: #e6edf5; font-size: 1.08rem; }
.breadcrumbs { margin-bottom: 18px; color: #d9e3ee; font-size: .88rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.service-detail { max-width: var(--container); margin-inline: auto; }
.service-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; margin-bottom: 48px; }
.service-intro-content p { color: var(--muted); font-size: 1.05rem; }
.service-intro-content .button { margin-top: 8px; }
.service-detail .detail-card { border-radius: 16px; }
.additional-service-list { display: grid; gap: 28px; }
.additional-service-list .service-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; border-radius: 16px; box-shadow: var(--shadow); }
.additional-service-list .service-card img { height: 100%; min-height: 280px; }
.additional-service-list .service-card-content { align-self: center; padding: 32px; }
.service-detail > p { color: var(--muted); font-size: 1.05rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 35px 0; }
.detail-card { padding: 25px; border: 1px solid var(--line); background: var(--paper); }
.detail-card h2 { font-size: 1.45rem; }
.service-detail-image { width: 100%; height: 480px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 20px; border: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 7px; }
.faq-item p { margin-bottom: 0; color: var(--muted); }
.faq-item summary { color: var(--blue-dark); font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.faq-item summary::marker { color: var(--crimson); }
.faq-item[open] summary { margin-bottom: 12px; }
.faq-contact { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; padding: 25px; background: var(--paper); }
.faq-contact h2 { flex-basis: 100%; margin: 0; font-size: 1.5rem; }
.faq-contact p { flex-basis: 100%; margin: 0; color: var(--muted); }
.faq-contact .text-link { align-self: center; }
.faq-page { max-width: 900px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin-inline: auto; }
.testimonial-card { margin: 0; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--crimson); background: var(--white); box-shadow: 0 8px 24px rgba(10,39,72,.06); }
.testimonial-stars { margin-bottom: 14px; color: var(--crimson); font-size: 1.3rem; letter-spacing: .12em; }
.testimonial-card blockquote { margin: 0 0 18px; color: var(--blue-dark); font-size: 1.2rem; font-weight: 650; }
.testimonial-card figcaption { color: var(--muted); font-weight: 750; }
.video-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 42px; }
.video-grid video, .video-card video { display: block; width: 100%; max-height: 520px; background: var(--blue-dark); object-fit: cover; }
.video-card { max-width: 950px; margin-inline: auto; }
.video-card h2 { margin-bottom: 20px; }
.video-card p { margin: 12px 0 0; color: var(--muted); }
.video-card code { color: var(--blue-dark); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-info { padding: 28px; background: var(--paper); }
.contact-info p { color: var(--muted); }
.coverage-map { height: clamp(360px, 55vw, 560px); width: 100%; z-index: 0; border: 1px solid var(--line); background: var(--blue-dark); }
#other-services, #other-services .service-card { scroll-margin-top: 120px; }
#other-services { margin-bottom: 40px; }
.contact-line { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-line strong { display: block; color: var(--blue-dark); }
.contact-form-wrap { padding: 30px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(10,39,72,.06); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-item { overflow: hidden; border: 0; padding: 0; background: var(--paper); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 245px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-dialog { width: min(92vw, 1100px); max-width: none; padding: 14px; border: 0; background: var(--blue-dark); }
.gallery-dialog::backdrop { background: rgba(5, 22, 40, .88); }
.gallery-dialog img { max-height: 80vh; margin-inline: auto; object-fit: contain; }
.gallery-dialog button { display: block; margin: 0 0 10px auto; border: 1px solid #fff; padding: 6px 12px; color: #fff; background: transparent; cursor: pointer; }
.footer { position: relative; isolation: isolate; overflow: hidden; padding: 58px 0 0; color: #e6edf5; background: var(--blue-dark); }
.footer::before, .footer::after { position: absolute; z-index: -1; inset: 0; content: ""; }
.footer::before { background: url("../src/images/bg-footer.webp") center / cover no-repeat; }
.footer::after { background: rgba(10, 39, 72, .91); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr .8fr; gap: 34px; padding-bottom: 38px; }
.footer h2, .footer h3 { color: var(--white); }
.footer h2 { font-size: 1.35rem; }
.footer p { color: #d6e0ea; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); color: #d6e0ea; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-about > a { display: inline-block; margin: 2px 12px 0 0; color: var(--white); font-weight: 750; }
.footer-facebook { display: inline-block; margin-top: 18px !important; color: var(--white); }
.footer-location { margin-bottom: 14px; }
.footer-location p { margin: 4px 0; }
.footer-payments > p { margin-bottom: 12px; }
.payment-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.payment-icons img { width: auto; max-width: 55px; height: 38px; object-fit: contain; }
.footer-credits { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-credits a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.floating-actions { position: fixed; z-index: 900; right: 0; bottom: 0; display: flex; align-items: center; flex-direction: column; gap: 0; }
.floating-action { display: inline-flex; width: 45.9px; height: 45.9px; align-items: center; justify-content: center; padding: 8.5px; border-radius: 50%; box-shadow: var(--shadow); }
.floating-action svg, .floating-action img { display: block; width: 29px; height: 29px; object-fit: contain; }
.floating-action--facebook { color: #fff; background: #1877f2; }
.floating-action--facebook svg { fill: currentColor; }
.floating-action--phone { color: var(--white); background: var(--crimson); }
.floating-action--whatsapp { padding: 0; background: transparent; box-shadow: none; }
.floating-action--whatsapp img { width: 100%; height: 100%; }
.floating-action:hover { transform: scale(1.05); }
.floating-action:hover { color: var(--white); filter: brightness(.92); }
@media (max-width: 1100px) {
    .desktop-nav, .header-right { display: none; }
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
    .header-inner { min-height: 96px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .container, .header-inner { width: min(100% - 32px, var(--container)); }
    .header-phone { display: none; }
    .section { padding: 58px 0; }
    .hero, .hero-container { min-height: 0; }
    .hero-container { grid-template-columns: 1fr; gap: 32px; padding: 62px 0 76px; }
    .hero h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
    .estimate-box { max-width: 520px; }
    .hero-controls { right: 16px; bottom: 14px; }
    .about-grid, .split-section, .contact-grid, .footer-grid, .video-grid { grid-template-columns: 1fr; gap: 28px; }
    .service-intro, .additional-service-list .service-card { grid-template-columns: 1fr; gap: 24px; }
    .service-detail-image { height: 340px; }
    .additional-service-list .service-card { gap: 0; }
    .additional-service-list .service-card img { height: 260px; min-height: 0; }
    .additional-service-list .service-card-content { padding: 24px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .footer-credits { align-items: flex-start; flex-direction: column; gap: 6px; }
    .about-image img { min-height: 0; max-height: 360px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .gallery-item img { height: 180px; }
    .cta-band-inner { align-items: flex-start; flex-direction: column; }
    .detail-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 58px 0; }
}
@media (max-width: 480px) {
    .logo img { width: 190px; height: 82px; }
    .header-inner { min-height: 88px; }
    .service-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-btns { align-items: stretch; flex-direction: column; }
    .hero-btns .button { width: 100%; }
    .gallery-item img { height: 145px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
