:root {
    --ink: #071827;
    --navy: #0d1b2a;
    --steel: #243447;
    --slate: #566273;
    --gold: #c7a15a;
    --gold-dark: #a9833e;
    --sand: #f4f1ea;
    --stone: #e4ded2;
    --white: #ffffff;
    --muted: #697487;
    --danger: #b1242f;
    --shadow: 0 24px 60px rgba(7, 24, 39, .12);
    --shadow-soft: 0 14px 38px rgba(7, 24, 39, .08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover { color: var(--gold-dark); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--gold);
    color: var(--ink);
    padding: .75rem 1rem;
    border-radius: 999px;
    transition: top .2s ease;
}

.skip-link:focus { top: 1rem; }

.fw-black { font-weight: 900; }
.text-white-70 { color: rgba(255, 255, 255, .72) !important; }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-dark-solid { background: var(--navy); }
.section-padding { padding: 108px 0; }

.btn {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -.01em;
    padding: .82rem 1.35rem;
}

.btn-lg { padding: 1rem 1.55rem; }

.btn-accent {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    box-shadow: 0 14px 28px rgba(199, 161, 90, .25);
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .56);
    color: var(--white);
}

.btn-outline-light:hover { background: var(--white); color: var(--ink); }

.site-navbar {
    padding: .85rem 0;
    background: rgba(7, 24, 39, .08);
    transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
    backdrop-filter: blur(8px);
}

.site-navbar.scrolled,
.site-navbar.menu-open {
    padding: .54rem 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 35px rgba(7, 24, 39, .10);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

/* Logo PRESIG: se muestra tal cual, sin recorte circular ni deformación. */
.brand-logo {
    width: 70px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .14);
    overflow: hidden;
    transition: width .25s ease, height .25s ease;
    flex: 0 0 auto;
}

.site-navbar.scrolled .brand-logo,
.site-navbar.menu-open .brand-logo { width: 56px; height: 63px; }

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--white);
    font-weight: 900;
    letter-spacing: .08em;
}

.brand-copy small {
    color: rgba(255, 255, 255, .76);
    font-weight: 700;
    font-size: .72rem;
}

.site-navbar.scrolled .brand-copy strong,
.site-navbar.menu-open .brand-copy strong { color: var(--ink); }
.site-navbar.scrolled .brand-copy small,
.site-navbar.menu-open .brand-copy small { color: var(--muted); }

.site-navbar .nav-link {
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
    font-size: .94rem;
    padding: .6rem .85rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--gold); }

.site-navbar.scrolled .nav-link,
.site-navbar.menu-open .nav-link { color: var(--ink); }
.site-navbar.scrolled .nav-link:hover,
.site-navbar.scrolled .nav-link.active,
.site-navbar.menu-open .nav-link:hover,
.site-navbar.menu-open .nav-link.active { color: var(--gold-dark); }

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 12px;
    padding: .55rem .65rem;
}

.site-navbar.scrolled .navbar-toggler,
.site-navbar.menu-open .navbar-toggler { border-color: rgba(7, 24, 39, .18); }

.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(199, 161, 90, .25); }

.navbar-toggler-icon {
    filter: invert(1);
}

.site-navbar.scrolled .navbar-toggler-icon,
.site-navbar.menu-open .navbar-toggler-icon { filter: none; }

.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg,
.hero-section picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: rgba(7, 24, 39, .66);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--gold-dark);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}

.eyebrow {
    color: var(--gold);
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}

.section-kicker.light { color: var(--gold); }

.hero-lead {
    color: rgba(255, 255, 255, .80);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.75;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    max-width: 650px;
}

.hero-stats div {
    padding: 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
}

.hero-stats strong {
    display: block;
    color: var(--white);
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
}

.hero-stats span {
    display: block;
    color: rgba(255, 255, 255, .72);
    margin-top: .45rem;
    font-size: .86rem;
    font-weight: 700;
}

.hero-card {
    width: min(100%, 410px);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.2rem;
    border-radius: 36px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .44);
}

.hero-card img {
    width: min(210px, 74%);
    height: auto;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(7, 24, 39, .10);
}

.hero-card h2 {
    margin: 1.2rem 0 .6rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.hero-card p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.hero-email {
    color: var(--gold-dark);
    font-weight: 900;
    word-break: break-word;
}

.trust-strip {
    background: var(--ink);
    color: var(--white);
}

.trust-strip span {
    display: block;
    padding: .85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    font-size: .92rem;
}

.section-title {
    margin: .9rem 0 1.25rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.055em;
    font-weight: 900;
    color: var(--ink);
}

.section-copy {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.03rem;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 96px;
    height: 6px;
    border-radius: 999px;
    background: var(--gold);
}

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

.mini-card {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    font-weight: 850;
}

.mini-card i {
    color: var(--gold-dark);
    font-size: 1.35rem;
}

.service-card,
.project-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-card > img,
.project-card > img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.service-card-body,
.project-card-body {
    padding: 1.55rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--sand);
    color: var(--gold-dark);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.service-card h3,
.project-card h3,
.process-item h3,
.office-card h3 {
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -.035em;
    margin-bottom: .65rem;
}

.service-card p,
.project-card p,
.process-item p,
.office-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.project-card-body span {
    display: inline-flex;
    margin-bottom: .8rem;
    color: var(--gold-dark);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.process-item {
    min-height: 230px;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
}

.process-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.process-item h3 { color: var(--white); }
.process-item p { color: rgba(255, 255, 255, .68); }

.capacity-list {
    display: grid;
    gap: .9rem;
}

.capacity-list div {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--stone);
    background: var(--white);
    font-weight: 850;
}

.capacity-list i {
    color: var(--gold-dark);
    font-size: 1.35rem;
}

.image-stack {
    position: relative;
    min-height: 560px;
}

.image-stack img {
    position: absolute;
    width: 72%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.image-stack img:first-child {
    top: 0;
    left: 0;
}

.image-stack img:last-child {
    right: 0;
    bottom: 0;
    border: 10px solid var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .9rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--stone);
    box-shadow: var(--shadow-soft);
}

.gallery-item::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.cta-band {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: var(--navy);
}

.cta-band > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 24, 39, .78);
}

.contact-card,
.office-card,
.form-shell {
    border-radius: var(--radius-lg);
    background: var(--sand);
    border: 1px solid var(--stone);
    box-shadow: var(--shadow-soft);
}

.contact-card {
    display: grid;
    gap: .85rem;
    padding: 1.25rem;
}

.contact-card a {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
    border-radius: 16px;
    background: var(--white);
    font-weight: 850;
    color: var(--ink);
    word-break: break-word;
}

.contact-card a:hover { color: var(--gold-dark); }

.contact-card i {
    color: var(--gold-dark);
    font-size: 1.22rem;
}

.office-card {
    padding: 1.35rem;
}

.form-shell {
    padding: clamp(1.2rem, 3vw, 2rem);
    background: var(--white);
}

.form-label {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 850;
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 15px;
    border: 1px solid var(--stone);
    color: var(--ink);
    background-color: #fbfaf7;
    padding: .85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(199, 161, 90, .18);
}

textarea.form-control { min-height: 148px; }

.form-check-input:checked {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.form-note {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.site-footer {
    padding: 64px 0;
    color: rgba(255, 255, 255, .74);
    background: var(--ink);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: var(--white);
}

.footer-brand img {
    width: 78px;
    height: auto;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.footer-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-brand strong {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.footer-brand small {
    color: rgba(255, 255, 255, .65);
    font-weight: 750;
}

.site-footer h3 {
    color: var(--white);
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, .72);
    margin-bottom: .55rem;
    font-weight: 650;
}

.site-footer a:hover { color: var(--gold); }

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    font-size: 1.65rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.floating-whatsapp:hover { color: var(--white); transform: translateY(-2px); }

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199.98px) {
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .section-padding { padding: 84px 0; }

    .site-navbar .navbar-collapse {
        margin-top: .9rem;
        padding: .85rem;
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow-soft);
    }

    .site-navbar .navbar-collapse .nav-link { color: var(--ink); }
    .site-navbar .navbar-collapse .nav-link:hover { color: var(--gold-dark); }

    .hero-section .display-3 { font-size: clamp(2.65rem, 9vw, 4rem); }
    .process-grid { grid-template-columns: 1fr; }
    .image-stack { min-height: auto; display: grid; gap: 1rem; }
    .image-stack img { position: static; width: 100%; height: 320px; border: 0 !important; }
}

@media (max-width: 767.98px) {
    .site-navbar { padding: .65rem 0; }
    .brand-copy small { display: none; }
    .brand-logo { width: 54px; height: 61px; }
    .site-navbar.scrolled .brand-logo,
    .site-navbar.menu-open .brand-logo { width: 48px; height: 54px; }
    .hero-stats { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card > img,
    .project-card > img { height: 220px; }
    .image-frame img { min-height: 360px; }
    .cta-band { min-height: 460px; }
}

@media (max-width: 575.98px) {
    .hero-actions .btn { width: 100%; }
    .gallery-grid { gap: .65rem; }
    .contact-card a { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

.thanks-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--navy);
}

.thanks-bg,
.thanks-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.thanks-bg { object-fit: cover; }
.thanks-overlay { background: rgba(7, 24, 39, .72); }

.thanks-card {
    width: min(100%, 720px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.thanks-card img {
    width: 150px;
    height: auto;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}
