﻿:root {
    --ink-900: #0f2640;
    --ink-800: #16375a;
    --ink-700: #1e4b73;
    --sky-100: #eef5ff;
    --sky-200: #d9e7fb;
    --white: #ffffff;
    --text: #1b2d45;
    --muted: #5e728f;
    --line: #cddcf0;
    --accent: #0e6eb8;
    --accent-soft: #e6f3ff;
    --shadow-sm: 0 12px 26px rgba(15, 38, 64, 0.1);
    --shadow-lg: 0 24px 44px rgba(15, 38, 64, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.layout-precision {
    margin: 0;
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    background:
        radial-gradient(circle at 0 0, #eef5ff 0, transparent 36%),
        radial-gradient(circle at 100% 20%, #f2f8ff 0, transparent 34%),
        #f7faff;
    overflow-x: hidden;
}

h1,
h2,
h3,
.formal-label,
.navbar-brand {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.01em;
}

.section-anchor {
    scroll-margin-top: 92px;
}

.site-header {
    background: rgba(250, 253, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(205, 220, 240, 0.7);
}

.navbar .nav-link {
    color: var(--ink-900);
    font-weight: 700;
    padding: 0.5rem 0.8rem;
    border-radius: 0.6rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: var(--ink-800);
    background: var(--accent-soft);
}

.navbar-toggler {
    border-color: #b9cfea;
}

.brand-logo-header {
    height: 54px;
    width: auto;
}

.brand-wordmark {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-800);
    white-space: nowrap;
}

.btn-brand {
    background: linear-gradient(130deg, var(--ink-800), var(--ink-700));
    color: var(--white);
    border: 0;
    border-radius: 0.75rem;
    font-weight: 700;
    padding: 0.66rem 1rem;
}

.btn-brand:hover,
.btn-brand:focus-visible {
    color: var(--white);
    background: linear-gradient(130deg, var(--ink-700), var(--ink-800));
}

.btn-outline-brand {
    border-color: var(--ink-700);
    color: var(--ink-700);
    border-radius: 0.75rem;
    font-weight: 700;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
    background: var(--ink-700);
    color: #fff;
}

.hero-section {
    padding: 2.2rem 0 2.7rem;
}

.hero-shell {
    position: relative;
}

.hero-shell::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -160px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 110, 184, 0.14) 0, rgba(14, 110, 184, 0) 68%);
    pointer-events: none;
    z-index: 0;
}

.hero-copy,
.hero-visual,
.hero-band article {
    position: relative;
    z-index: 1;
}

.hero-copy {
    background: linear-gradient(160deg, #ffffff 0, #f1f7ff 100%);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #edf5ff;
    border: 1px solid #cce1f8;
    border-radius: 999px;
    color: var(--ink-800);
    font-size: 0.8rem;
    padding: 0.27rem 0.72rem;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0.7rem 0 0.6rem;
    line-height: 1.12;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    color: var(--ink-900);
}

.hero-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.hero-highlights span {
    border: 1px solid #cddff5;
    border-radius: 0.66rem;
    background: #fbfdff;
    color: var(--ink-800);
    font-weight: 600;
    padding: 0.44rem 0.62rem;
    font-size: 0.94rem;
}

.hero-visual {
    border-radius: 1.2rem;
    background: linear-gradient(150deg, #0f2741 0, #1b4168 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-lg);
    padding: 0.45rem;
}

.hero-slider {
    border-radius: 0.9rem;
    overflow: hidden;
    background: #122d4a;
}

.hero-slider .swiper-slide {
    position: relative;
    min-height: min(58vh, 510px);
    display: flex;
    align-items: flex-end;
}

.hero-pin {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 25, 43, 0.2) 0, rgba(11, 25, 43, 0.62) 85%);
}

.hero-slide-note {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.85rem;
    color: #f4f8ff;
    background: rgba(10, 32, 58, 0.82);
    border: 1px solid rgba(197, 220, 247, 0.35);
    border-radius: 0.68rem;
    padding: 0.5rem 0.65rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
}

.hero-section .swiper-pagination {
    position: relative;
    margin-top: 0.6rem;
    bottom: auto;
}

.hero-section .swiper-pagination-bullet {
    background: rgba(217, 231, 251, 0.7);
}

.hero-section .swiper-pagination-bullet-active {
    background: #fff;
}

.hero-section .swiper-button-prev,
.hero-section .swiper-button-next {
    width: 36px;
    height: 36px;
    top: calc(50% - 1.35rem);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hero-section .swiper-button-prev::after,
.hero-section .swiper-button-next::after {
    font-size: 13px;
    font-weight: 700;
}

.hero-band {
    margin-top: 1rem;
}

.hero-band article {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    padding: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.hero-band strong {
    display: block;
    color: var(--ink-800);
    margin-bottom: 0.25rem;
    font-family: "Space Grotesk", sans-serif;
}

.hero-band p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.formal-panel,
.feature-card,
.gallery-card,
.process-card,
.location-card,
.contact-form,
.contact-details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.formal-panel {
    padding: 1.4rem;
    background: linear-gradient(160deg, #fff 0, #f4f8ff 100%);
}

.formal-label {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--ink-700);
}

.formal-panel h2 {
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    margin-top: 0.45rem;
}

.formal-panel p {
    color: var(--muted);
}

.formal-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #d8e4f3;
    border-radius: 0.8rem;
    overflow: hidden;
}

.formal-metrics article {
    padding: 0.95rem;
    border-right: 1px solid #e3edf9;
    border-bottom: 1px solid #e3edf9;
}

.formal-metrics article:nth-child(2n) {
    border-right: 0;
}

.formal-metrics article:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.formal-metrics strong {
    color: var(--ink-800);
}

.formal-metrics span {
    color: var(--muted);
}

.section-heading h2,
.section-heading-work h2 {
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.section-heading p,
.section-heading-work p {
    color: var(--muted);
    max-width: 760px;
}

.section-kicker {
    display: inline-block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ink-700);
    border: 1px solid #cce0f7;
    background: #eef6ff;
    border-radius: 999px;
    padding: 0.22rem 0.68rem;
}

.feature-card {
    padding: 1.18rem;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -35px -35px auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 110, 184, 0.2) 0, rgba(14, 110, 184, 0) 70%);
}

.feature-card i {
    color: var(--ink-700);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin: 0.6rem 0 0.4rem;
    font-size: 1.08rem;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}

.bg-soft {
    background: linear-gradient(180deg, #f1f7ff 0, #f9fcff 100%);
}

.process-card {
    height: 100%;
    text-align: center;
    padding: 1rem;
    border-left: 0;
    background: linear-gradient(160deg, #fff 0, #f3f9ff 100%);
}

.process-card span {
    color: var(--accent);
    font-size: 1.2rem;
}

.process-card h3 {
    margin: 0.55rem 0 0;
    color: var(--ink-800);
}

.gallery-card {
    padding: 0.65rem;
    min-height: 180px;
    display: grid;
    place-items: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(15, 38, 64, 0.18);
}

.gallery-card img {
    max-height: 180px;
    object-fit: contain;
}

.gallery-preview:focus-visible {
    outline: 3px solid #7fb2e2;
    outline-offset: 2px;
}

.gallery-modal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.gallery-modal-counter {
    min-width: 78px;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--ink-800);
}

.accordion-item {
    border-color: var(--line);
}

.accordion-button:not(.collapsed) {
    color: var(--ink-800);
    background: #ebf4ff;
}

.location-card,
.contact-details,
.contact-form {
    padding: 1.2rem;
}

.location-card a,
.contact-details a,
.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.location-card a:hover,
.contact-details a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

.map-wrap {
    height: 100%;
    min-height: 320px;
    border-radius: 1rem;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
    width: 100%;
    min-height: 320px;
    height: 100%;
    border: 0;
}

.form-control:focus {
    border-color: #9ec4ec;
    box-shadow: 0 0 0 0.25rem rgba(14, 110, 184, 0.16);
}

.form-feedback {
    font-weight: 700;
}

.form-feedback.is-success {
    color: #157347;
}

.form-feedback.is-error {
    color: #b02a37;
}

.site-footer {
    color: #edf4ff;
    background:
        linear-gradient(145deg, #0f2741 0, #142f4f 55%, #1b4168 100%);
}

.site-footer h3 {
    font-size: 1.02rem;
}

.brand-logo-footer {
    width: min(236px, 100%);
    height: auto;
}

.site-footer hr {
    border-color: rgba(237, 244, 255, 0.24);
}

.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 1100;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    transform: scale(1.05);
}

/* Hero principal en formato slider completo */
.hero-section {
    padding: 0 0 2.3rem;
}

.hero-stage {
    position: relative;
    min-height: min(72vh, 640px);
    border-bottom: 1px solid var(--line);
    background: #0f2741;
}

.hero-stage .swiper-slide {
    position: relative;
    min-height: min(72vh, 640px);
}

.hero-stage .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 19, 33, 0.28) 0, rgba(7, 19, 33, 0.72) 80%);
    z-index: 1;
}

.hero-stage .hero-pin {
    width: 100%;
    height: min(72vh, 640px);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.hero-panel {
    margin: 0 auto 1.1rem;
    width: min(860px, 92%);
    max-width: none;
    background: rgba(13, 41, 67, 0.88);
    border: 1px solid rgba(219, 234, 253, 0.28);
    backdrop-filter: blur(2px);
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    color: #f5f9ff;
    text-align: center;
}

.hero-panel h1,
.hero-panel h2 {
    margin: 0.65rem 0 0.4rem;
    font-size: clamp(1.35rem, 2.8vw, 2.5rem);
    color: #fff;
}

.hero-panel .hero-lead {
    color: #e4eefb;
    max-width: 760px;
    margin-inline: auto;
}

.hero-panel .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero-panel .hero-highlights span {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    color: #eaf3ff;
}

.hero-section .swiper-pagination {
    display: none;
}

.hero-section .swiper-button-prev,
.hero-section .swiper-button-next {
    top: 50%;
    margin-top: -18px;
    z-index: 3;
}

.hero-band-wrap {
    margin-top: -24px;
    position: relative;
    z-index: 4;
}

@media (max-width: 991.98px) {
    .brand-logo-header {
        height: 48px;
    }

    .hero-section {
        padding-top: 0;
    }

    .hero-stage,
    .hero-stage .swiper-slide {
        min-height: 500px;
    }

    .hero-stage .hero-pin {
        height: 500px;
    }

    .hero-panel {
        max-width: 90%;
        text-align: left;
        width: auto;
    }

    .hero-band-wrap {
        margin-top: -14px;
    }
}

@media (max-width: 767.98px) {
    .section-anchor {
        scroll-margin-top: 84px;
    }

    .navbar .nav-link {
        padding: 0.64rem 0.75rem;
    }

    .py-5 {
        padding-top: 2.4rem !important;
        padding-bottom: 2.4rem !important;
    }

    .hero-stage,
    .hero-stage .swiper-slide {
        min-height: 440px;
    }

    .hero-stage .hero-pin {
        height: 440px;
    }

    .hero-panel {
        margin-bottom: 0.75rem;
        max-width: 100%;
        border-radius: 0.9rem;
        padding: 0.88rem 0.85rem;
        text-align: left;
        width: auto;
    }

    .hero-panel h1,
    .hero-panel h2 {
        font-size: 1.45rem;
        line-height: 1.15;
        margin-top: 0.5rem;
    }

    .hero-panel .hero-lead {
        font-size: 0.95rem;
    }

    .hero-panel .hero-kicker,
    .hero-panel .hero-highlights {
        display: none;
    }

    .hero-panel .d-flex {
        display: none !important;
    }

    .hero-section .swiper-button-prev,
    .hero-section .swiper-button-next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }

    .hero-band-wrap {
        margin-top: 0.7rem;
    }

    .hero-band article {
        padding: 0.75rem;
        border-radius: 0.85rem;
    }

    .formal-panel {
        padding: 0.95rem;
    }

    .formal-panel h2 {
        font-size: 1.3rem;
    }

    .formal-metrics {
        grid-template-columns: 1fr;
    }

    .formal-metrics article {
        border-right: 0;
        border-bottom: 1px solid #e3edf9;
    }

    .formal-metrics article:last-child {
        border-bottom: 0;
    }

    .gallery-card {
        min-height: 158px;
        padding: 0.5rem;
    }

    .contact-form,
    .contact-details,
    .location-card {
        padding: 1rem;
    }

    .site-footer {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .brand-wordmark {
        display: inline-block;
        font-size: 0.76rem;
        letter-spacing: 0.02em;
        margin-left: 0.35rem !important;
    }

    .brand-logo-header {
        height: 42px;
    }

    .hero-section .swiper-button-prev,
    .hero-section .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .hero-section .swiper-pagination {
        bottom: 8px;
        font-size: 0.85rem;
    }
}
