/* =========================================================
   AW DESIGN STUDIO | CONTRATISTAS
   Estética: minimalista, cálida y editorial
   Paleta: negro, piedra, blanco hueso y acento bronce
   ========================================================= */

:root {
    --aw-black: #141414;
    --aw-charcoal: #232323;
    --aw-gray-900: #353535;
    --aw-gray-700: #5f5f5c;
    --aw-gray-500: #8e8d89;
    --aw-gray-300: #d6d3cd;
    --aw-gray-200: #e8e5df;
    --aw-gray-100: #f6f4f0;
    --aw-white: #ffffff;
    --aw-gold: #b08d57;
    --aw-gold-light: #d6bf94;
    --aw-gold-dark: #8a6c3f;

    --aw-font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --aw-font-heading: "Cormorant Garamond", Georgia, serif;

    --aw-container: 1240px;
    --aw-header-h: 84px;
    --aw-radius: 2px;
    --aw-ease: cubic-bezier(.2, .7, .2, 1);
    --aw-transition: 300ms ease;
    --aw-section-y: clamp(72px, 9vw, 130px);
    --aw-shadow: 0 30px 60px -30px rgba(20, 20, 20, .35);
}

/* =========================================================
   BASE
   ========================================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--aw-header-h);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--aw-charcoal);
    background: var(--aw-white);
    font-family: var(--aw-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body:not(.has-hero) main {
    padding-top: var(--aw-header-h);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--aw-transition), background var(--aw-transition),
                border-color var(--aw-transition), opacity var(--aw-transition);
}

::selection {
    color: var(--aw-white);
    background: var(--aw-gold);
}

.container {
    max-width: var(--aw-container);
    padding-right: 24px;
    padding-left: 24px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 30px;
    border-radius: var(--aw-radius);
    font-family: var(--aw-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    transition: all var(--aw-transition);
}

.btn-primary {
    color: var(--aw-white);
    background: var(--aw-gold);
    border: 1px solid var(--aw-gold);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: var(--aw-white) !important;
    background: var(--aw-gold-dark) !important;
    border-color: var(--aw-gold-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(138, 108, 63, .8);
}

.btn-outline-primary {
    color: var(--aw-charcoal);
    background: transparent;
    border: 1px solid var(--aw-charcoal);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--aw-white);
    background: var(--aw-black);
    border-color: var(--aw-black);
}

.btn-ghost {
    color: var(--aw-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--aw-black);
    background: var(--aw-white);
    border-color: var(--aw-white);
}

/* =========================================================
   TIPOGRAFÍA COMPARTIDA
   ========================================================= */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--aw-gold-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.section-title {
    margin: 14px 0 22px;
    color: var(--aw-black);
    font-family: var(--aw-font-heading);
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1.02;
}

.section-title em,
.hero-content h1 em {
    color: var(--aw-gold);
    font-style: italic;
    font-weight: 400;
}

.section-description {
    max-width: 560px;
    margin: 0 auto;
    color: var(--aw-gray-700);
    font-size: 15px;
    line-height: 1.9;
}

.section-head {
    margin-bottom: clamp(40px, 5vw, 64px);
    text-align: center;
}

.section-head .section-kicker::after {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

/* Aparición suave al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 900ms var(--aw-ease), transform 900ms var(--aw-ease);
}

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

/* =========================================================
   HEADER
   ========================================================= */
.aw-header {
    height: var(--aw-header-h);
    padding: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--aw-gray-200);
    transition: background var(--aw-transition), border-color var(--aw-transition),
                height var(--aw-transition), box-shadow var(--aw-transition);
}

body.has-hero .aw-header:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    border-color: transparent;
}

.aw-header.is-scrolled {
    --aw-header-h: 70px;
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--aw-gray-200);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.aw-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: gap 450ms var(--aw-ease);
}

/* Logo circular. Al hacer scroll crece y baja media altura:
   su centro queda sobre el borde inferior del header (50% dentro, 50% flotando fuera). */
.aw-brand {
    --aw-logo: 56px;
    --aw-logo-scrolled: 104px;
    position: relative;
    z-index: 2;
}

.aw-brand-logo {
    width: var(--aw-logo);
    height: var(--aw-logo);
    flex: none;
    border: 3px solid var(--aw-white);
    border-radius: 50%;
    background: var(--aw-white);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    transition: width 450ms var(--aw-ease), height 450ms var(--aw-ease),
                transform 450ms var(--aw-ease), box-shadow 450ms var(--aw-ease);
}

.aw-header.is-scrolled .aw-brand-logo {
    width: var(--aw-logo-scrolled);
    height: var(--aw-logo-scrolled);
    transform: translateY(calc(var(--aw-header-h) / 2));
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
}

.aw-brand-text {
    display: block;
    max-width: 260px;
    overflow: hidden;
    color: var(--aw-black);
    font-family: var(--aw-font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--aw-transition), opacity 300ms ease,
                max-width 450ms var(--aw-ease), transform 300ms ease;
}

.aw-header.is-scrolled .aw-brand-text {
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
}

.aw-header.is-scrolled .aw-brand {
    gap: 0;
}

.aw-nav {
    gap: 6px;
}

.aw-nav-link {
    position: relative;
    display: block;
    padding: 10px 18px;
    color: var(--aw-charcoal);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.aw-nav-link::after {
    position: absolute;
    right: 18px;
    bottom: 4px;
    left: 18px;
    height: 1px;
    background: var(--aw-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--aw-transition);
}

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

.aw-nav-link:hover::after,
.aw-nav-link.active::after {
    transform: scaleX(1);
}

/* Header transparente sobre el hero */
body.has-hero .aw-header:not(.is-scrolled) .aw-brand-text,
body.has-hero .aw-header:not(.is-scrolled) .aw-nav-link {
    color: var(--aw-white);
}

body.has-hero .aw-header:not(.is-scrolled) .aw-nav-link.active,
body.has-hero .aw-header:not(.is-scrolled) .aw-nav-link:hover {
    color: var(--aw-gold-light);
}

/* Botón hamburguesa */
.aw-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    box-shadow: none !important;
}

.aw-toggler span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--aw-black);
    transition: transform var(--aw-transition), background var(--aw-transition);
}

body.has-hero .aw-header:not(.is-scrolled) .aw-toggler span {
    background: var(--aw-white);
}

.aw-toggler[aria-expanded="true"] span:first-child {
    transform: translateY(4.25px) rotate(45deg);
}

.aw-toggler[aria-expanded="true"] span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
    background: var(--aw-black);
    isolation: isolate;
}

.hero-section--page {
    min-height: 78vh;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    animation: heroZoom 14s ease-out both;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, .05) 100%),
        linear-gradient(0deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 40%);
}

.hero-section > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: calc(var(--aw-header-h) + 40px);
    padding-bottom: 90px;
}

.hero-content {
    max-width: 700px;
    color: var(--aw-white);
    animation: heroIn 1.1s var(--aw-ease) .15s both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    color: var(--aw-gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-kicker::before {
    width: 40px;
    height: 1px;
    background: currentColor;
    content: "";
}

.hero-content h1 {
    margin: 0;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: clamp(50px, 7.4vw, 100px);
    font-weight: 500;
    letter-spacing: .3px;
    line-height: .96;
}

.hero-content h1 em {
    color: var(--aw-gold-light);
}

.hero-content p {
    max-width: 480px;
    margin: 28px 0 38px;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    z-index: 2;
    width: 26px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 14px;
    transform: translateX(-50%);
}

.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    border-radius: 2px;
    background: var(--aw-white);
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* =========================================================
   PRESENTACIÓN / NOSOTROS
   ========================================================= */
.about-section {
    padding: var(--aw-section-y) 0;
    background: var(--aw-white);
}

.about-image-wrapper {
    position: relative;
    padding: 0 28px 28px 0;
}

.about-image-wrapper::after {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    height: 75%;
    border-right: 1px solid var(--aw-gold);
    border-bottom: 1px solid var(--aw-gold);
    content: "";
}

.about-image-wrapper img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 2765 / 1650;
    object-fit: cover;
    background: #efefef;
    box-shadow: var(--aw-shadow);
}

.about-section .section-description {
    margin: 0;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.about-actions .btn {
    padding-right: 22px;
    padding-left: 22px;
}

.about-actions .btn i {
    font-size: 15px;
}

/* =========================================================
   MODAL CANVA
   ========================================================= */
.canva-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--aw-radius);
    background: var(--aw-black);
}

.canva-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 24px;
    color: var(--aw-white);
}

.canva-modal-title {
    margin: 0;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: 24px;
    font-weight: 500;
}

.canva-open {
    color: var(--aw-gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.canva-open:hover {
    color: var(--aw-white);
}

.canva-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 120px);
    background: var(--aw-charcoal);
}

.canva-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 400ms ease;
}

.canva-modal.is-loaded .canva-frame iframe {
    opacity: 1;
}

.canva-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--aw-gold-light);
}

.canva-modal.is-loaded .canva-loading {
    display: none;
}

@media (max-width: 767.98px) {
    .canva-frame {
        aspect-ratio: auto;
        height: calc(100svh - 66px);
        max-height: none;
    }

    .canva-open {
        font-size: 0;
    }

    .canva-open i {
        font-size: 16px;
    }

    .about-actions .btn {
        flex: 1 1 100%;
    }
}

/* =========================================================
   INDICADORES
   ========================================================= */
.stats-section {
    position: relative;
    padding: clamp(40px, 5vw, 64px) 0;
    color: var(--aw-white);
    background: var(--aw-black);
}

.stats-section .col-4 + .col-4 .stat-item {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.stat-item {
    padding: 6px 8px;
}

.stat-item h2 {
    margin: 0;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: clamp(40px, 5.4vw, 66px);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

.stat-item h2 small {
    color: var(--aw-gold-light);
    font-family: var(--aw-font-body);
    font-size: 12px;
    letter-spacing: 1px;
}

.stat-item p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects-section {
    padding: var(--aw-section-y) 0;
    background: var(--aw-gray-100);
}

.project-card {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
    border-radius: var(--aw-radius);
    background: var(--aw-gray-200);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--aw-ease), opacity 700ms ease;
}

.project-card img.project-img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.project-card:hover img,
.project-card:focus-visible img {
    transform: scale(1.06);
}

.project-card:hover img.project-img-hover,
.project-card:focus-visible img.project-img-hover {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    color: var(--aw-white);
    background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, 0) 100%);
}

.project-overlay > div {
    transform: translateY(8px);
    transition: transform 500ms var(--aw-ease);
}

.project-card:hover .project-overlay > div {
    transform: none;
}

.project-overlay h3 {
    margin: 0 0 4px;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
}

.project-overlay span {
    display: inline-block;
    color: var(--aw-gold-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.project-expand {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: var(--aw-white);
    font-size: 14px;
    opacity: 0;
    transform: scale(.8);
    transition: opacity var(--aw-transition), transform var(--aw-transition), background var(--aw-transition);
}

.project-card:hover .project-expand,
.project-card:focus-visible .project-expand {
    opacity: 1;
    transform: none;
    background: rgba(176, 141, 87, .85);
    border-color: transparent;
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding-bottom: 60px;
    color: var(--aw-gold-light);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, var(--aw-gray-900), var(--aw-black));
}

.project-placeholder i {
    font-size: 40px;
}

.project-placeholder span {
    color: rgba(255, 255, 255, .6);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================================
   BIM
   ========================================================= */
.bim-section {
    padding: var(--aw-section-y) 0 0;
    background: var(--aw-white);
}

.bim-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--aw-radius);
    color: var(--aw-white);
    background: var(--aw-black);
}

.bim-banner .row {
    --bs-gutter-x: 0;
}

.bim-content {
    padding: clamp(40px, 6vw, 80px);
}

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

.bim-content h2 {
    margin: 16px 0 18px;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.05;
}

.bim-content p {
    max-width: 420px;
    color: rgba(255, 255, 255, .72);
}

.bim-image {
    height: 100%;
    min-height: 380px;
}

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

/* =========================================================
   PROCESO
   ========================================================= */
.process-section {
    padding: var(--aw-section-y) 0;
    background: var(--aw-white);
}

.process-card {
    position: relative;
    height: 100%;
    padding: 40px 34px 36px;
    border: 1px solid var(--aw-gray-200);
    background: var(--aw-white);
    transition: border-color var(--aw-transition), transform var(--aw-transition), box-shadow var(--aw-transition);
}

.process-card::before {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 0;
    height: 2px;
    background: var(--aw-gold);
    content: "";
    transition: width 600ms var(--aw-ease);
}

.process-card:hover {
    border-color: transparent;
    box-shadow: var(--aw-shadow);
    transform: translateY(-6px);
}

.process-card:hover::before {
    width: calc(100% + 2px);
}

.process-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 26px;
    border: 1px solid var(--aw-gold);
    border-radius: 50%;
    color: var(--aw-gold-dark);
    font-family: var(--aw-font-heading);
    font-size: 26px;
    font-style: italic;
}

.process-card h3 {
    margin-bottom: 14px;
    color: var(--aw-black);
    font-family: var(--aw-font-heading);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
}

.process-card p {
    margin: 0;
    color: var(--aw-gray-700);
    font-size: 14px;
    line-height: 1.85;
}

/* =========================================================
   BANNER DE CONTACTO
   ========================================================= */
.contact-banner-section {
    padding: 0 0 var(--aw-section-y);
    background: var(--aw-white);
}

.hero-section + .contact-banner-section {
    padding-top: var(--aw-section-y);
}

.contact-banner {
    position: relative;
    display: flex;
    min-height: 380px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--aw-radius);
    background: url("../img/aw/contacto.jpg") center / cover no-repeat;
}

.contact-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, .68);
}

.contact-banner-content {
    position: relative;
    max-width: 620px;
    padding: 60px 24px;
    color: var(--aw-white);
    text-align: center;
}

.contact-banner-content .section-kicker {
    color: var(--aw-gold-light);
}

.contact-banner-content .section-kicker::after {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.contact-banner-content h2 {
    margin: 14px 0 14px;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 500;
    line-height: 1;
}

.contact-banner-content p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .82);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-section {
    padding: clamp(60px, 7vw, 90px) 0 32px;
    color: rgba(255, 255, 255, .68);
    background: var(--aw-black);
    font-size: 14px;
}

.footer-logo img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--aw-white);
}

.footer-description {
    max-width: 340px;
    margin-top: 22px;
    line-height: 1.85;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--aw-white);
    font-family: var(--aw-font-heading);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .5px;
}

.footer-contact-list,
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li,
.footer-links li {
    margin-bottom: 12px;
}

.footer-contact-list i {
    margin-right: 10px;
    color: var(--aw-gold-light);
}

.footer-links a:hover {
    color: var(--aw-gold-light);
}

.footer-divider {
    margin: 50px 0 26px;
    border-color: rgba(255, 255, 255, .14);
    opacity: 1;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.copyright {
    font-size: 12px;
    letter-spacing: .5px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: var(--aw-white);
}

.footer-socials a:hover {
    border-color: var(--aw-gold);
    background: var(--aw-gold);
}

/* =========================================================
   MODAL DE PROYECTO
   ========================================================= */
.modal-backdrop.show {
    opacity: .85;
}

.project-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--aw-radius);
    background: var(--aw-white);
}

.project-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--aw-white);
    background: rgba(0, 0, 0, .55);
    transition: background var(--aw-transition);
}

.project-modal-close:hover {
    background: var(--aw-gold-dark);
}

.project-viewer-col {
    display: flex;
    flex-direction: column;
    background: var(--aw-black);
}

.project-viewer {
    position: relative;
    flex: 1;
    min-height: 560px;
}

.project-viewer-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-viewer-stage img,
.project-viewer-stage video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: pmFade 400ms ease;
}

@keyframes pmFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.project-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: var(--aw-white);
    background: rgba(0, 0, 0, .35);
    transform: translateY(-50%);
    transition: background var(--aw-transition), border-color var(--aw-transition);
}

.project-viewer-nav:hover {
    border-color: var(--aw-gold-light);
    background: var(--aw-gold-dark);
}

.project-viewer-nav.prev { left: 16px; }
.project-viewer-nav.next { right: 16px; }

.project-viewer-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    padding: 3px 12px;
    border-radius: 20px;
    color: var(--aw-white);
    background: rgba(0, 0, 0, .5);
    font-size: 11px;
    letter-spacing: 1.5px;
    transform: translateX(-50%);
}

.project-viewer-counter:empty {
    display: none;
}

.project-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    background: var(--aw-charcoal);
    scrollbar-width: thin;
}

.project-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--aw-gray-900);
    opacity: .5;
    transition: opacity var(--aw-transition), border-color var(--aw-transition);
}

.project-thumb:hover,
.project-thumb.active {
    border-color: var(--aw-gold);
    opacity: 1;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb-video {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--aw-white);
    font-size: 22px;
}

.project-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 82vh;
    padding: 56px 38px 38px;
    overflow-y: auto;
}

.project-detail-title {
    margin: 12px 0 20px;
    color: var(--aw-black);
    font-family: var(--aw-font-heading);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.05;
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 22px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--aw-gray-200);
    list-style: none;
    color: var(--aw-gray-700);
    font-size: 12px;
}

.project-detail-meta:empty {
    display: none;
}

.project-detail-meta i {
    margin-right: 6px;
    color: var(--aw-gold);
}

.project-detail-text {
    color: var(--aw-gray-700);
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-line;
}

.project-detail-subtitle {
    margin: 20px 0 10px;
    color: var(--aw-black);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-docs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-docs a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--aw-gray-200);
    color: var(--aw-charcoal);
    font-size: 13px;
    word-break: break-word;
}

.project-docs a:hover {
    color: var(--aw-gold-dark);
}

.project-docs i {
    color: #b8432f;
    font-size: 17px;
}

.project-detail .btn {
    align-self: flex-start;
    margin-top: auto !important;
}

.project-modal.no-media .project-viewer-col {
    display: none;
}

.project-modal.no-media .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    :root {
        --aw-header-h: 72px;
    }

    .aw-toggler {
        display: flex;
    }

    .aw-brand {
        --aw-logo: 48px;
        --aw-logo-scrolled: 88px;
    }

    /* Con el menú abierto el logo no flota sobre los enlaces */
    .aw-header.is-scrolled:has(#awNav.show, #awNav.collapsing) .aw-brand-logo {
        width: var(--aw-logo);
        height: var(--aw-logo);
        transform: none;
    }

    #awNav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--aw-white);
        box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    }

    .aw-nav {
        padding: 12px 24px 22px;
    }

    .aw-nav-link,
    body.has-hero .aw-header:not(.is-scrolled) .aw-nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--aw-gray-200);
        color: var(--aw-charcoal);
    }

    .aw-nav-link::after {
        display: none;
    }

    .project-card {
        height: 280px;
    }

    .bim-image,
    .bim-image img {
        min-height: 300px;
    }

    .project-viewer {
        min-height: 55vh;
    }

    .project-detail {
        max-height: none;
        padding: 30px 22px;
    }

    .project-detail-title {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .aw-brand {
        --aw-logo: 44px;
        --aw-logo-scrolled: 78px;
        gap: 10px;
    }

    .aw-brand-text {
        font-size: 17px;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-scroll {
        display: none;
    }

    .about-image-wrapper {
        padding: 0 14px 14px 0;
    }

    .stat-item p {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .project-card {
        height: 240px;
    }

    .process-card {
        padding: 32px 24px;
    }

    .contact-banner {
        min-height: 320px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Accesibilidad: reduce animaciones si el usuario lo solicita */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

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