@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
    --navy: #001a3d;
    --navy-2: #062650;
    --yellow: #ffb400;
    --ink: #0a1630;
    --muted: #5d6675;
    --line: #e7e9ed;
    --soft: #f5f6f8;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 18px 45px rgba(0, 26, 61, .12)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6
}

h1,
h2,
h3,
h4,
.button,
.eyebrow,
.tag,
.step-number,
.stat strong {
    font-family: "Manrope", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea,
select {
    font: inherit
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto
}

.skip-link {
    position: fixed;
    z-index: 999;
    left: 10px;
    top: -70px;
    background: #fff;
    padding: 12px 18px;
    border: 2px solid var(--navy)
}

.skip-link:focus {
    top: 10px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 26, 61, .07);
    transition: box-shadow .3s ease, border-color .3s ease
}

.site-header.is-scrolled {
    border-bottom-color: rgba(0, 26, 61, .12);
    box-shadow: 0 12px 30px rgba(0, 26, 61, .12)
}

.header-inner {
    height: 120px;
    display: flex;
    align-items: center;
    gap: 34px;
    transition: height .3s ease;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
}

.brand img {
    display: block;
    width: auto;
    height: 104px;
    max-width: 180px;
    transition: height .3s ease, max-width .3s ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding: 10px 0
}

.main-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--yellow);
    transition: .25s
}

.main-nav a:hover:after,
.main-nav a.active:after {
    right: 0
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 6px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.button:after {
    content: "";
    position: absolute;
    top: -55%;
    left: -70%;
    width: 34%;
    height: 210%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
    transform: skewX(-22deg);
    transition: left .65s ease;
    pointer-events: none
}

.button:hover:after,
.button:focus-visible:after {
    left: 135%
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 26, 61, .16)
}

.button-yellow {
    background: var(--yellow);
    color: #07152d
}

.button-dark {
    background: var(--navy);
    color: #fff
}

.button-light {
    background: #fff;
    color: var(--navy)
}

.text-link {
    font-weight: 800;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 4px
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 6px;
    background: var(--navy)
}

.hero {
    padding: 18px 0 0
}

.hero-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    min-height: 610px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow)
}

.hero-copy {
    padding: 78px 60px;
    color: #fff;
    background: radial-gradient(circle at 70% 50%, #072c62 0, var(--navy) 55%)
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--yellow);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow:before {
    content: "";
    width: 35px;
    height: 3px;
    background: currentColor
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.1rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 22px 0 28px
}

.hero p {
    font-size: 1.25rem;
    max-width: 470px;
    color: #dfe8f6
}

.hero-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-top: 38px
}

.hero-media {
    position: relative;
    min-height: 500px;
    overflow: hidden
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    animation: hero-image-breathe 12s ease-in-out infinite alternate;
    will-change: transform
}

@keyframes hero-image-breathe {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.035)
    }
}

.hero-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    background: rgba(255, 255, 255, .94);
    padding: 15px 18px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: var(--shadow)
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 35px rgba(0, 26, 61, .08)
}

.benefit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    padding: 28px;
    border-right: 1px solid #f1c85c;
    font-weight: 750
}

.benefit:last-child {
    border: 0
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--navy)
}

.section {
    padding: 92px 0
}

.section-soft {
    background: var(--soft)
}

.section-dark {
    background: var(--navy);
    color: #fff
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 15px 0 22px
}

.section-lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 680px
}

.section-dark .section-lead {
    color: #cbd7e8
}

.split {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 70px;
    align-items: center
}

.split.reverse {
    grid-template-columns: 1.12fr .88fr
}

.media-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.media-card img {
    width: 100%;
    min-height: 520px;
    object-fit: cover
}

.feature-list {
    display: grid;
    gap: 22px;
    margin: 34px 0
}

.feature {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 15px;
    transition: transform .25s ease
}

.feature>strong {
    transition: color .25s ease, transform .25s ease
}

.feature:hover {
    transform: translateX(4px)
}

.feature:hover>strong {
    color: var(--yellow);
    transform: scale(1.06)
}

.feature b {
    display: block;
    margin-bottom: 3px
}

.feature span {
    color: var(--muted)
}

.sip-panel {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(120deg, var(--navy), #082c61);
    color: #fff
}

.sip-copy {
    padding: 56px
}

.sip-copy h2 {
    font-size: 2.8rem;
    line-height: 1.05;
    margin: 12px 0 34px
}

.sip-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px
}

.sip-feature {
    border-left: 2px solid var(--yellow);
    padding-left: 17px;
    transition: transform .25s ease, border-color .25s ease
}

.sip-feature:hover {
    transform: translateX(4px);
    border-left-color: #fff
}

.sip-feature strong {
    display: block;
    margin-bottom: 8px;
    transition: color .25s ease
}

.sip-feature:hover strong {
    color: var(--yellow)
}

.sip-feature p {
    font-size: .92rem;
    color: #cbd7e8;
    margin: 0
}

.sip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.project-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(0, 26, 61, .2)
}

.project-card:before {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width .4s cubic-bezier(.22, 1, .36, 1)
}

.project-card:hover:before,
.project-card:focus-visible:before {
    width: 100%
}

.project-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s
}

.project-card:hover img {
    transform: scale(1.045)
}

.project-card:after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(0, 20, 48, .95))
}

.project-card-content {
    position: absolute;
    z-index: 2;
    left: 26px;
    right: 26px;
    bottom: 24px
}

.project-card h3 {
    font-size: 1.55rem;
    margin: 0 0 5px
}

.project-card p {
    margin: 0;
    color: #dfe8f6
}

.tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy);
    padding: 5px 9px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase
}

.steps {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    color: #fff
}

.step {
    padding: 38px 29px;
    border-right: 1px solid rgba(255, 180, 0, .55)
}

.step:last-child {
    border: 0
}

.step-number {
    display: block;
    color: var(--yellow);
    font-size: 2.7rem;
    line-height: 1
}

.step h3 {
    font-size: 1.05rem;
    margin: 9px 0
}

.step p {
    color: #cbd7e8;
    font-size: .88rem
}

.step-intro h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin: 12px 0
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: 9px
}

.stats-motion-ready .stat {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1)
}

.stats-motion-ready .stat.is-visible {
    opacity: 1;
    transform: none
}

.stat strong {
    display: block;
    font-size: 2.3rem;
    color: var(--navy)
}

.stat span {
    color: var(--muted)
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px
}

.review {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px
}

.review-stars {
    color: #f4aa00;
    letter-spacing: 3px
}

.review blockquote {
    margin: 18px 0
}

.review small {
    color: var(--muted)
}

.notice {
    border-left: 4px solid var(--yellow);
    background: #fff8e5;
    padding: 18px 20px;
    border-radius: 5px;
    color: #433400
}

.cta-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow)
}

.cta-image {
    position: relative;
    min-height: 430px;
    color: #fff
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cta-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 20, 48, .9), rgba(0, 20, 48, .3))
}

.cta-image-copy {
    position: absolute;
    z-index: 2;
    inset: 50px
}

.cta-image h2 {
    font-size: 2.7rem;
    line-height: 1.05;
    margin: 15px 0 35px
}

.contact-points {
    display: grid;
    gap: 15px;
    font-size: 1.25rem
}

.contact-form {
    padding: 50px;
    background: #f7f7f8
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    display: grid;
    gap: 6px
}

.field-full {
    grid-column: 1/-1
}

.field label {
    font-weight: 750;
    font-size: .86rem
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #dfe2e8;
    border-radius: 5px;
    background: #fff;
    padding: 13px 14px;
    outline: none
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, .18)
}

.field textarea {
    min-height: 130px;
    resize: vertical
}

.check {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
}

.check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid #c7ccd4;
    box-shadow: none;
    accent-color: var(--yellow);
    cursor: pointer;
}

.privacy-link {
    display: inline;
    color: var(--navy);
    font-weight: 700;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 2px;
}

.privacy-link:hover {
    color: #a57200;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important
}

.form-error {
    background: #fff0f0;
    border-left: 4px solid #d73232;
    padding: 14px;
    margin-bottom: 15px
}

.response-promise {
    margin: 15px 0;
    color: var(--muted);
    font-size: .9rem
}

.page-hero {
    padding: 74px 0;
    background: linear-gradient(120deg, #eef3f9, #fff)
}

.page-hero h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
    margin: 14px 0 20px;
    letter-spacing: -.05em
}

.page-hero p {
    max-width: 750px;
    font-size: 1.2rem;
    color: var(--muted)
}

.breadcrumbs {
    padding-top: 20px
}

.breadcrumbs ol {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .86rem;
    color: var(--muted)
}

.breadcrumbs li+li:before {
    content: "/";
    margin-right: 10px
}

.breadcrumbs a:hover {
    color: var(--navy);
    text-decoration: underline
}

.content-narrow {
    width: min(800px, calc(100% - 40px));
    margin: auto
}

.content-narrow h2 {
    margin-top: 40px
}

.faq-list {
    display: grid;
    gap: 12px
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff
}

.faq-item button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 22px;
    border: 0;
    background: #fff;
    text-align: left;
    font-weight: 800;
    cursor: pointer
}

.faq-item button:after {
    content: "+";
    color: var(--yellow);
    font-size: 1.6rem
}

.faq-item button[aria-expanded=true]:after {
    content: "−"
}

.faq-answer {
    padding: 0 22px 22px;
    color: var(--muted)
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px
}

.map-frame {
    border: 0;
    width: 100%;
    height: 430px;
    border-radius: var(--radius)
}

.error-page {
    text-align: center;
    padding: 120px 20px
}

.error-code {
    font-size: clamp(6rem, 20vw, 13rem);
    font-weight: 900;
    color: var(--navy);
    line-height: .8;
    letter-spacing: -.08em
}

.error-page h1 {
    font-size: 2.4rem
}

.success-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--navy);
    font-size: 2.5rem;
    margin: 0 auto 25px
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .65s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.reveal .eyebrow:before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1) .12s
}

.reveal .section-title,
.reveal h2,
.reveal .section-lead {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity .55s ease,
        transform .55s cubic-bezier(.22, 1, .36, 1)
}

.reveal .section-title,
.reveal h2 {
    transition-delay: .2s
}

.reveal .section-lead {
    transition-delay: .3s
}

.reveal.visible .eyebrow:before {
    transform: scaleX(1)
}

.reveal.visible .section-title,
.reveal.visible h2,
.reveal.visible .section-lead {
    opacity: 1;
    transform: none
}

.mobile-cta {
    display: none
}

.site-footer {
    padding: 40px 0 18px;
    background: #f5f6f8;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    align-items: start;
    gap: 40px;
}

.footer-grid>div {
    align-self: start;
}

.footer-grid>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid>div:first-child img {
    display: block;
    width: 230px;
    height: auto;
    margin: 0 0 28px;
}

.footer-grid>div:first-child p {
    max-width: 280px;
    margin: 0;
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.2;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 6px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #dfe2e8;
    color: var(--muted);
    font-size: 0.84rem;
}

@media(min-width:701px) {
    .site-header.is-scrolled .header-inner {
        height: 88px
    }

    .site-header.is-scrolled .brand img {
        height: 74px;
        max-width: 145px
    }
}

@media(min-width:701px) and (max-width:980px) {
    .site-header.is-scrolled .main-nav {
        top: 88px
    }
}

@media(max-width:980px) {
    .header-cta {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 22px 30px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 58px 40px
    }

    .hero-media {
        min-height: 430px
    }

    .split,
    .split.reverse,
    .sip-panel,
    .cta-band,
    .map-grid {
        grid-template-columns: 1fr
    }

    .steps {
        grid-template-columns: repeat(2, 1fr)
    }

    .step-intro {
        grid-column: 1/-1
    }

    .sip-features {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:700px) {
    body {
        padding-bottom: 62px
    }

    .wrap {
        width: min(100% - 28px, 1180px)
    }

    .header-inner {
        height: 82px;
    }

    .brand img {
        width: auto;
        height: 68px;
        max-width: 115px;
    }

    .main-nav {
        top: 82px;
    }

    .hero {
        padding-top: 8px
    }

    .hero-copy {
        padding: 44px 27px
    }

    .hero h1 {
        font-size: 3.2rem
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column
    }

    .benefits {
        grid-template-columns: 1fr
    }

    .benefit {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid #f1c85c;
        padding: 18px 24px
    }

    .section {
        padding: 64px 0
    }

    .projects-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .projects-grid,
    .review-grid,
    .stats {
        grid-template-columns: 1fr
    }

    .project-card {
        min-height: 360px
    }

    .steps {
        grid-template-columns: 1fr
    }

    .step-intro {
        grid-column: auto
    }

    .sip-copy {
        padding: 38px 26px
    }

    .sip-copy h2 {
        font-size: 2.25rem
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .contact-form {
        padding: 30px 22px
    }

    .cta-image-copy {
        inset: 34px 25px
    }

    .cta-image h2 {
        font-size: 2.2rem
    }

    .mobile-cta {
        display: flex;
        position: fixed;
        z-index: 90;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        align-items: center;
        justify-content: center;
        background: var(--yellow);
        color: var(--navy);
        font-weight: 900;
        box-shadow: 0 -10px 30px rgba(0, 26, 61, .2)
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px
    }

    .page-hero {
        padding: 55px 0
    }

    .media-card img {
        min-height: 360px
    }
}

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

    .reveal {
        opacity: 1;
        transform: none
    }
}

.stats-two {
    grid-template-columns: 1fr 1fr
}

.error-actions {
    justify-content: center
}

.faq-cta {
    margin-top: 35px
}

@media(max-width:700px) {
    .stats-two {
        grid-template-columns: 1fr
    }
}

.footer-credit a {
    display: inline;
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 4px;
}

.footer-credit a:hover {
    color: #b77f00;
}

@media (max-width: 700px) {
    .site-footer {
        padding: 36px 0 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-grid>div:first-child img {
        width: 200px;
        height: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 28px;
    }
}

/* Página de proyectos */

.projects-hero {
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 181, 0, 0.13), transparent 25rem),
        linear-gradient(135deg, #001a3d 0%, #00295c 100%);
    color: #fff;
    text-align: center;
}

.projects-hero-inner {
    max-width: 900px;
}

.projects-hero .eyebrow {
    color: #ffb500;
}

.projects-hero h1 {
    max-width: 850px;
    margin: 1rem auto 1.4rem;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.projects-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.7;
}

.projects-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #ffb500;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.projects-hero-link span {
    color: #ffb500;
    transition: transform 0.25s ease;
}

.projects-hero-link:hover span {
    transform: translateY(0.25rem);
}

.projects-showcase {
    background: #f6f8fb;
}

.projects-showcase-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.projects-showcase-head .section-title {
    max-width: 720px;
    margin-bottom: 0;
}

.projects-showcase-head>p {
    margin: 0;
    color: #58657a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.3vw, 2rem);
}

.project-gallery-card {
    position: relative;
    grid-column: span 6;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 32, 75, 0.08);
    border-radius: 1.15rem;
    box-shadow: 0 20px 55px rgba(0, 25, 59, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color .3s ease;
}

.project-gallery-card:after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

.project-gallery-card:hover,
.project-gallery-card:focus-within {
    transform: translateY(-0.35rem);
    border-color: rgba(255, 181, 0, .6);
    box-shadow: 0 28px 65px rgba(0, 25, 59, 0.14);
}

.project-gallery-card:hover:after,
.project-gallery-card:focus-within:after {
    width: 100%
}

.project-gallery-card:first-child {
    grid-column: span 7;
}

.project-gallery-card:nth-child(2) {
    grid-column: span 5;
}

.project-gallery-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.project-gallery-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #dfe5ec;
}

.project-gallery-card--wide .project-gallery-media {
    min-height: 480px;
    aspect-ratio: auto;
}

.project-gallery-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 24, 56, 0.55), transparent);
    pointer-events: none;
}

.project-gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-gallery-card:hover .project-gallery-media img {
    transform: scale(1.045);
}

.project-gallery-number {
    position: absolute;
    right: 1.2rem;
    bottom: 0.9rem;
    z-index: 1;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
}

.project-gallery-content {
    padding: clamp(1.5rem, 3vw, 2.35rem);
}

.project-gallery-content h3 {
    margin: 0.8rem 0 0.85rem;
    color: #001b40;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.project-gallery-description {
    margin-bottom: 1.5rem;
    color: #536177;
    font-size: 1.03rem;
    line-height: 1.7;
}

.project-gallery-details {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.project-gallery-details div {
    padding-left: 1rem;
    border-left: 3px solid #ffb500;
}

.project-gallery-details dt {
    margin-bottom: 0.25rem;
    color: #001b40;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-gallery-details dd {
    margin: 0;
    color: #5c687b;
    line-height: 1.55;
}

@property --cta-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes projects-cta-border-spin {
    to {
        --cta-border-angle: 360deg;
    }
}

.projects-final-cta {
    background: #001b40;
    color: #fff;
}

.projects-final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 2px solid transparent;
    border-radius: 1.25rem;
    background:
        linear-gradient(#001b40, #001b40) padding-box,
        conic-gradient(from var(--cta-border-angle, 0deg),
            transparent 0 68%,
            rgba(255, 181, 0, 0.35) 76%,
            #ffb500 84%,
            #fff 88%,
            #ffb500 92%,
            transparent 100%) border-box;
    box-shadow: 0 20px 55px rgba(0, 10, 28, 0.24);
    animation: projects-cta-border-spin 7s linear infinite;
}

.projects-final-cta .eyebrow {
    color: #ffb500;
}

.projects-final-cta h2 {
    max-width: 720px;
    margin: 0.9rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.projects-final-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.projects-final-cta .button {
    flex: 0 0 auto;
}

.project-gallery-card:focus-within,
.projects-hero-link:focus-visible,
.projects-final-cta .button:focus-visible {
    outline: 3px solid #ffb500;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .projects-showcase-head {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-gallery-card,
    .project-gallery-card:first-child,
    .project-gallery-card:nth-child(2),
    .project-gallery-card--wide {
        grid-column: 1 / -1;
    }

    .project-gallery-card--wide {
        display: block;
    }

    .project-gallery-card--wide .project-gallery-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .projects-final-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.8rem;
    }
}

@media (max-width: 600px) {
    .projects-hero {
        padding: 4rem 0;
    }

    .projects-hero h1 {
        font-size: clamp(2.45rem, 13vw, 3.7rem);
    }

    .project-gallery {
        gap: 1.25rem;
    }

    .project-gallery-media,
    .project-gallery-card--wide .project-gallery-media {
        aspect-ratio: 4 / 3;
    }

    .project-gallery-content {
        padding: 1.4rem;
    }

    .project-gallery-details {
        gap: 0.85rem;
    }

    .projects-final-cta .button {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-final-cta-inner {
        animation: none;
    }

    .hero-media img {
        animation: none;
        transform: none;
        will-change: auto;
    }

    .reveal .eyebrow:before,
    .reveal.visible .eyebrow:before {
        transform: scaleX(1);
    }

    .reveal .section-title,
    .reveal h2,
    .reveal .section-lead {
        opacity: 1;
        transform: none;
    }

    .stats-motion-ready .stat {
        opacity: 1;
        transform: none;
    }

    .button:after {
        display: none;
    }

    .project-card:hover,
    .project-card:focus-visible,
    .project-gallery-card:hover,
    .project-gallery-card:focus-within,
    .feature:hover,
    .sip-feature:hover {
        transform: none;
    }

    .project-gallery-card,
    .project-gallery-media img,
    .projects-hero-link span {
        transition: none;
    }
}

.media-card--paneles {
    aspect-ratio: 1192 / 757;
    overflow: hidden;
}

.media-card--paneles img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.floating-actions {
    position: fixed;
    z-index: 120;
    right: 24px;
    bottom: 28px;
    display: grid;
    gap: 12px;
    justify-items: end;
}

.floating-contact {
    position: relative;
    display: grid;
    justify-items: end;
}

.floating-action {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--navy);
    box-shadow: 0 18px 38px rgba(0, 26, 61, .2);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.floating-action svg {
    width: 25px;
    height: 25px;
    grid-area: 1 / 1;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity .2s, transform .2s;
}

.floating-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(0, 26, 61, .26);
}

.floating-action-top {
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.floating-action-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-action-contact {
    background: var(--yellow);
    outline: 4px solid rgba(255, 180, 0, .28);
}

.floating-action-contact .floating-icon-close {
    opacity: 0;
    transform: scale(.75);
}

.floating-action-contact.is-open .floating-icon-message {
    opacity: 0;
    transform: scale(.75);
}

.floating-action-contact.is-open .floating-icon-close {
    opacity: 1;
    transform: scale(1);
}

.floating-contact-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(386px, calc(100vw - 38px));
    display: grid;
    gap: 10px;
}

.floating-contact-panel[hidden] {
    display: none;
}

.floating-contact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 18px 40px rgba(0, 26, 61, .22);
    border: 1px solid rgba(0, 26, 61, .08);
    transition: transform .2s, box-shadow .2s;
}

.floating-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(0, 26, 61, .26);
}

.floating-contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 180, 0, .13);
    color: #c47f00;
}

.floating-contact-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-contact-card strong,
.floating-contact-card small {
    display: block;
}

.floating-contact-card strong {
    font-size: 1.05rem;
    line-height: 1.2;
}

.floating-contact-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .92rem;
}

.floating-action:focus-visible,
.floating-contact-card:focus-visible {
    outline: 3px solid #fff;
    box-shadow:
        0 0 0 6px rgba(255, 180, 0, .5),
        0 18px 38px rgba(0, 26, 61, .2);
}

@media (max-width: 700px) {
    body {
        padding-bottom: 0;
    }

    .mobile-cta {
        display: none;
    }

    .floating-actions {
        right: 16px;
        bottom: 18px;
    }

    .floating-action {
        width: 54px;
        height: 54px;
    }

    .floating-action svg {
        width: 23px;
        height: 23px;
    }

    .floating-contact-panel {
        bottom: 70px;
        width: min(360px, calc(100vw - 32px));
    }

    .floating-contact-card {
        grid-template-columns: 52px 1fr;
        padding: 16px;
        border-radius: 16px;
    }

    .floating-contact-icon {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-action,
    .floating-action svg,
    .floating-contact-card {
        transition: none;
    }
}

/* Hover sutil en los enlaces del footer */
.site-footer .footer-grid a,
.site-footer .footer-credit a {
    transition: color 220ms ease, text-decoration-color 220ms ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.site-footer .footer-grid a:hover,
.site-footer .footer-grid a:focus-visible,
.site-footer .footer-credit a:hover,
.site-footer .footer-credit a:focus-visible {
    color: var(--navy);
    text-decoration-color: var(--yellow);
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-grid a,
    .site-footer .footer-credit a {
        transition: none;
    }
}