/* ============================================
   WEBCREATOR - PUBLIC SITE STYLES
   ============================================
   Premium Architecture & Construction Landing Page
   Focused on lead generation and conversions.
*/

/* ── PAGE LOADER ──
   Fondo negro + logo centrado. Al cargar, el logo viaja a la posición
   exacta del logo del header (FLIP, transform-origin: top left). */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    /* El fondo se mantiene negro DURANTE todo el viaje del logo (1100ms)
       y recién al final hace un fade corto. */
    transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1) 1100ms,
                visibility 0s linear 1450ms;
}
#page-loader-logo {
    height: clamp(70px, 12vw, 140px);
    width: auto;
    display: block;
    opacity: 0;
    /* FLIP: el origen top-left hace que translate+scale alineen exactamente
       con la caja de destino del header. */
    transform-origin: top left;
    animation: loaderLogoIn 600ms cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
    will-change: transform, opacity;
}
@keyframes loaderLogoIn { to { opacity: 1; } }

/* Salida: logo viaja al header, fondo desvanece después */
body.is-loaded #page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.is-loaded #page-loader-logo {
    transform: translate(var(--loader-tx, 0), var(--loader-ty, 0)) scale(var(--loader-scale, 0.3));
    transition: transform 1100ms cubic-bezier(0.86, 0, 0.07, 1);
}

body.is-loading { overflow: hidden; }
/* Logo del header invisible mientras dura el loader (sin !important para que
   la transición pueda animar correctamente al pasar a is-loaded) */
body.is-loading .nav-brand .brand-logo,
body.is-loading .nav-brand img { opacity: 0; }
/* Crossfade: el header-logo empieza a aparecer MID-viaje (700ms),
   así cuando el logo del loader aterriza (1100ms) el del header ya está
   visible al 100% — la transición se siente continua. */
body.is-loaded .nav-brand .brand-logo,
body.is-loaded .nav-brand img {
    opacity: 1;
    transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1) 700ms;
}
@media (prefers-reduced-motion: reduce) {
    #page-loader, #page-loader-logo { transition: none !important; animation: none !important; }
    body.is-loaded #page-loader { display: none; }
    body.is-loading .nav-brand img { opacity: 1 !important; }
}

/* ── PAGE TRANSITION ── */
/* Nota: NO usar `transform` en <body> — crea containing block y rompe `position: fixed` (overlay menu, etc.). */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body {
    animation: pageFadeIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.is-leaving {
    animation: none;
    opacity: 0;
    transition: opacity 260ms ease;
}
@media (prefers-reduced-motion: reduce) {
    body, body.is-leaving {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── TYPOGRAPHY DEFAULTS ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headings, 'Raleway'), system-ui, sans-serif; }
.nav-links, .nav-links a, .nav-brand { font-family: var(--font-menu, 'Montserrat'), system-ui, sans-serif; }
body, p, span, li, td { font-family: var(--font-primary, 'Inter'), system-ui, sans-serif; }

/* ── DYNAMIC LOGO SWAP ── */
/* Dark backgrounds: show negative (white) logo, hide normal */
.brand-logo-normal { display: none; }
.brand-logo-negative { display: block; }
/* If header becomes light on scroll: swap logos */
.site-header.scrolled.light-header .brand-logo-normal { display: block; }
.site-header.scrolled.light-header .brand-logo-negative { display: none; }
/* Logo sizing */
.brand-logo { object-fit: contain; transition: opacity 0.3s; }

/* ── HEADER / NAVBAR ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(15, 15, 15, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-brand img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
}

.nav-phone {
    font-weight: var(--font-semibold) !important;
    color: var(--color-secondary) !important;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
    background: transparent;
    border: 0;
    margin-left: auto;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-toggle:hover span { background: var(--color-secondary, #c9a96a); }

/* ── OVERLAY MENU (Foster + Partners style) ── */
.overlay-menu {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-fixed) + 10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: transparent;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 700ms;
}

.overlay-menu.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

body.menu-open { overflow: hidden; }

/* Image side: slide+fade in from left, scale settles */
.overlay-menu-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(-32px) scale(1.06);
    transition:
        opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    overflow: hidden;
    position: relative;
    background-color: #0a0a0a;
}

/* Video variant: <video> ocupa todo el panel */
.overlay-menu-image--video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-menu.is-open .overlay-menu-image {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 80ms;
}

/* Panel: slide in from right (curtain reveal) */
.overlay-menu-panel {
    position: relative;
    background: #ffffff;
    color: #0f0f0f;
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 5vw, 4rem);
    transform: translateX(100%);
    transition: transform 700ms cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.overlay-menu.is-open .overlay-menu-panel {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .overlay-menu,
    .overlay-menu-image,
    .overlay-menu-panel,
    .overlay-menu-eyebrow,
    .overlay-menu-list a,
    .overlay-menu-social,
    .overlay-menu-close { transition: none !important; transform: none !important; opacity: 1 !important; }
}

.overlay-menu-close {
    position: absolute;
    top: clamp(1.25rem, 2.5vw, 2rem);
    right: clamp(1.25rem, 2.5vw, 2rem);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #0f0f0f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    opacity: 0;
    transform: rotate(-90deg);
    transition: background-color var(--transition-fast), opacity 400ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.overlay-menu.is-open .overlay-menu-close {
    opacity: 1;
    transform: rotate(0);
    transition-delay: 380ms;
}
.overlay-menu-close:hover { background: rgba(0,0,0,0.06); transform: rotate(90deg); }
.overlay-menu-close svg { width: 24px; height: 24px; transition: transform 300ms ease; }

.overlay-menu-inner {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.overlay-menu-eyebrow {
    font-family: var(--font-menu, 'Montserrat'), system-ui, sans-serif;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(15, 15, 15, 0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.overlay-menu.is-open .overlay-menu-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 320ms;
}

.overlay-menu-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.overlay-menu-list a {
    font-family: var(--font-headings, 'Raleway'), system-ui, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #0f0f0f;
    line-height: 1.05;
    display: inline-block;
    width: max-content;
    opacity: 0;
    transform: translateY(28px);
    transform-origin: left center;
    transition:
        opacity 600ms ease,
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
        color var(--transition-fast);
    position: relative;
}

.overlay-menu-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #0f0f0f;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay-menu.is-open .overlay-menu-list a {
    opacity: 1;
    transform: translateY(0);
}
.overlay-menu.is-open .overlay-menu-list a:nth-child(1) { transition-delay: 380ms; }
.overlay-menu.is-open .overlay-menu-list a:nth-child(2) { transition-delay: 460ms; }
.overlay-menu.is-open .overlay-menu-list a:nth-child(3) { transition-delay: 540ms; }
.overlay-menu.is-open .overlay-menu-list a:nth-child(4) { transition-delay: 620ms; }
.overlay-menu.is-open .overlay-menu-list a:nth-child(5) { transition-delay: 700ms; }

/* Hover: el texto NO cambia de color (evita perderse contra paneles claros).
   La animación es solo la barra inferior que entra de izquierda a derecha. */
.overlay-menu-list a:hover { color: #0f0f0f; transition-delay: 0s !important; }
.overlay-menu-list a:hover::after,
.overlay-menu-list a:focus-visible::after { transform: scaleX(1); }

.overlay-menu-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.overlay-menu.is-open .overlay-menu-social {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 720ms;
}

.overlay-menu-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(15,15,15,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f0f0f;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.overlay-menu-social a:hover {
    background: #0f0f0f;
    color: #ffffff;
    border-color: #0f0f0f;
}
.overlay-menu-social a svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .overlay-menu { grid-template-columns: 1fr; }
    .overlay-menu-image { display: none; }
}

/* ── HERO SECTION ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-videos {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 800ms ease;
    pointer-events: none;
}

.hero-video.is-active { opacity: 1; }

.hero--video { min-height: 100vh; }
.hero--video .hero-overlay { display: none; }

/* ── HERO CAROUSEL CONTROLS ── */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(15,15,15,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 350ms ease, background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.hero:hover .hero-nav,
.hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.95);
    color: #0f0f0f;
}
.hero-nav svg { width: 22px; height: 22px; }
.hero-nav--prev { left: clamp(1rem, 2.5vw, 2rem); }
.hero-nav--next { right: clamp(1rem, 2.5vw, 2rem); }
.hero-nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-nav--next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 768px) {
    .hero-nav { opacity: 1; width: 44px; height: 44px; }
    .hero-nav svg { width: 18px; height: 18px; }
}

/* Bullets / progress indicators */
.hero-bullets {
    position: absolute;
    left: 50%;
    bottom: clamp(1.75rem, 4vw, 2.75rem);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15,15,15,0.28);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-bullet {
    position: relative;
    width: 36px;
    height: 4px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 250ms ease, width 350ms ease;
}

.hero-bullet:hover { background: rgba(255,255,255,0.45); }

.hero-bullet.is-active {
    width: 56px;
    background: rgba(255,255,255,0.18);
}

.hero-bullet-fill {
    position: absolute;
    inset: 0;
    background: #ffffff;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: inherit;
}

.hero-bullet.is-active .hero-bullet-fill {
    /* JS sets duration to match video length */
    animation: heroBulletFill var(--hero-bullet-duration, 6s) linear forwards;
}

.hero-bullet:not(.is-active) .hero-bullet-fill {
    transform: scaleX(0);
    animation: none;
}

@keyframes heroBulletFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bullet.is-active .hero-bullet-fill { animation: none; transform: scaleX(1); }
    .hero-nav, .hero-bullet { transition: none; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.82) 0%,
        rgba(10, 10, 10, 0.6) 40%,
        rgba(10, 10, 10, 0.4) 100%
    );
}

.hero > .container {
    position: relative;
    z-index: 1;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 380px;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

/* Hero subtitle steps */
.hero-subtitle-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.hero-step {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-step-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: var(--space-6);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-8);
    max-width: 500px;
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Outline light button */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 400;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-outline-light:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #1a1a1a;
}

/* Dark button */
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-dark:hover {
    background: #333333;
    border-color: #333333;
}

/* Accent button (B&W) */
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn-accent:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* ── HERO FORM ── */
.hero-form {
    position: relative;
}

.hero-form-card {
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-form-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.hero-form-header h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #ffffff;
    margin-bottom: var(--space-2);
}

.hero-form-header p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.hero-form-card .form-input,
.hero-form-card .form-textarea,
.hero-form-card select.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    font-size: var(--text-sm);
    width: 100%;
}

.hero-form-card .form-input::placeholder,
.hero-form-card .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.hero-form-card .form-input:focus,
.hero-form-card .form-textarea:focus,
.hero-form-card select.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    outline: none;
}

.hero-form-card select.form-input option {
    background: #1a1a1a;
    color: #ffffff;
}

.hero-form-note {
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-4);
    margin-bottom: 0;
}

/* ── WELCOME SECTION ── */
.welcome-section {
    background: #ffffff;
    padding: 6rem 0;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

/* ── Welcome con imagen al lado (2 columnas) ── */
.welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    margin: 0 0 5rem;
}

@media (max-width: 1024px) {
    .welcome-grid { gap: 2.5rem; }
}

@media (max-width: 800px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
}

.welcome-image {
    overflow: hidden;
    border-radius: 4px;
    background: #f3f3f3;
    aspect-ratio: 4 / 3;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-image:hover img { transform: scale(1.03); }

.welcome-content--side {
    text-align: left;
    margin: 0;
    max-width: 540px;
}

.welcome-content--side h2 {
    text-align: left;
}

.welcome-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-8);
    text-transform: uppercase;
}

.welcome-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 300;
    line-height: 1.8;
    color: #333333;
    margin-bottom: var(--space-8);
    letter-spacing: 0.01em;
}

/* ── Trust / Servicios — editorial minimal ── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: trust;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .trust-grid { grid-template-columns: 1fr; }
}

.trust-card {
    counter-increment: trust;
    position: relative;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 2.75rem 2rem 2.5rem;
    transition: background-color 350ms ease;
}

.trust-card:last-child { border-right: 0; }

@media (max-width: 1024px) {
    .trust-card:nth-child(2) { border-right: 0; }
    .trust-card:nth-child(1),
    .trust-card:nth-child(2) { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
}

@media (max-width: 540px) {
    .trust-card { border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); padding: 2.25rem 0.5rem; }
    .trust-card:last-child { border-bottom: 0; }
}

.trust-card:hover { background: rgba(0, 0, 0, 0.02); }

/* Número editorial (01, 02...) en la esquina superior derecha */
.trust-card::before {
    content: "0" counter(trust);
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(0, 0, 0, 0.55);
}

.trust-icon {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: transparent;
    border-radius: 0;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.trust-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.2;
}

.trust-card h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-card p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.trust-list li {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.55;
    font-weight: 300;
    position: relative;
    padding-left: 18px;
}

.trust-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 10px;
    height: 1px;
    background: rgba(0, 0, 0, 0.35);
}

/* ── SERVICES SPLIT SCREEN ── */
.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .services-split {
        grid-template-columns: 1fr;
    }
}

.split-card {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.split-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.split-card:hover img {
    transform: scale(1.05);
}

.split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.split-content {
    position: relative;
    z-index: 2;
    padding: var(--space-10);
    width: 100%;
}

.split-content h3 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 300;
    color: #ffffff;
    margin-bottom: var(--space-4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .split-content h3 {
        white-space: nowrap;
    }
}

.split-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.split-tag {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.65);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
}

/* ── FEATURED PROJECTS ── */
.projects-section {
    background: #111111;
    padding: 6rem 0;
}

.projects-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.projects-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #1a1a1a;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-thumb img {
    transform: scale(1.06);
}

.project-card-body {
    padding: 1.25rem 0.25rem 0;
}

.project-card-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.project-card-body h3 {
    font-size: 1.35rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.project-card-dot {
    color: rgba(255, 255, 255, 0.3);
}

/* ── STATS BAR ── */
.stats-bar {
    background: #1a1a1a;
    padding: var(--space-16) 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1em;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0.02em;
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-2);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
}

/* ── CONTACT SECTION ── */
.contact-section {
    background: #0f0f0f;
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.contact-info h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.text-accent {
    color: #ffffff;
    font-style: italic;
}

.contact-info > p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: 2px;
}

.contact-detail span {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.contact-form-wrap h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    color: #ffffff;
    font-weight: var(--font-bold);
}

.contact-form-wrap .form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
    display: block;
}

.contact-form-wrap .form-label .required {
    color: var(--color-secondary);
}

.contact-form-wrap .form-input,
.contact-form-wrap .form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    width: 100%;
    transition: all var(--transition-base);
}

.contact-form-wrap .form-input::placeholder,
.contact-form-wrap .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form-wrap .form-input:focus,
.contact-form-wrap .form-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
    outline: none;
}

/* ── FOOTER ── */
.site-footer {
    background: #0a0a0a;
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-brand p {
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    max-width: 280px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-3);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-ig {
    display: inline-flex !important;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.footer-ig svg { flex-shrink: 0; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-secondary);
}

/* ── SECTIONS (general) ── */
.section {
    padding: var(--space-24) 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-error {
    font-size: var(--text-xs);
    color: #ef4444;
    margin-top: var(--space-1);
}

/* ── WHATSAPP FLOATING BUTTON ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.2);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.08); }
    100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ── WHATSAPP MODAL ── */
#wa-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 28px;
}
#wa-modal.active {
    display: flex;
}
.wa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    animation: fadeIn 0.2s;
}
.wa-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    margin-bottom: 70px;
}
.wa-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.wa-modal-close:hover { color: #374151; }
.wa-modal-icon {
    width: 52px;
    height: 52px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 480px) {
    #wa-modal { padding: 16px; }
    .wa-modal-card { width: 100%; margin-bottom: 64px; }
}

/* ============================================
   PROJECT DETAIL PAGE (.pd-*)
   ============================================ */

body.project-page {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.85);
}

body.project-page .site-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 50;
}

/* ── Hero ── */
.pd-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 4rem;
    color: #fff;
    overflow: hidden;
}

.pd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pd-hero-bg img,
.pd-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(10, 10, 10, 0.92) 100%
    );
}

.pd-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
    width: 100%;
}

.pd-hero-text {
    min-width: 0;
}

@media (max-width: 900px) {
    .pd-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}

.pd-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb a:hover { color: #fff; }
.pd-breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }
.pd-breadcrumb-current { color: rgba(255, 255, 255, 0.5); }

.pd-status {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-family: 'Raleway', sans-serif;
}

.pd-hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.75rem;
    line-height: 1.08;
}

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.75rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.pd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.78);
}

.pd-meta-item svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

/* ── Hero lead form ── */
.pd-lead-form {
    padding: 1.6rem 1.6rem 1.4rem;
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    align-self: end;
}

@media (max-width: 900px) {
    .pd-lead-form {
        margin-top: 1rem;
    }
}

.pd-lead-form-head {
    margin-bottom: 1.1rem;
}

.pd-lead-form-head h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.04em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.pd-lead-form-head p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.pd-lead-form-head strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.pd-lead-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: stretch;
}

.pd-lead-form-row .pd-lead-btn {
    margin-top: 0.2rem;
}

.pd-lead-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    transition: border-color 0.2s, background 0.2s;
}

.pd-lead-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pd-lead-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.09);
}

.pd-lead-btn {
    padding: 0.7rem 1.6rem;
    background: #fff;
    color: #0a0a0a;
    border: 1px solid #fff;
    border-radius: var(--radius-md);
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.pd-lead-btn:hover:not(:disabled) {
    background: transparent;
    color: #fff;
}

.pd-lead-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pd-lead-status {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    margin: 0.6rem 0 0;
    min-height: 1em;
    color: rgba(255, 255, 255, 0.7);
}

.pd-lead-status[data-kind="error"] {
    color: #ff7a7a;
}

/* ── Content (description + aside) ── */
.pd-content {
    background: #0f0f0f;
    padding: 5.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .pd-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.pd-body .section-label {
    display: block;
    margin-bottom: 1.5rem;
}

.pd-body p {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 1.5rem;
}

.pd-body p:last-child { margin-bottom: 0; }

/* ── Intro: descripción arriba, full width, texto más chico ── */
.pd-intro {
    width: 100%;
    margin: 0 0 3rem;
}

.pd-intro .section-label {
    display: block;
    margin-bottom: 1rem;
}

.pd-intro p {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 1rem;
}

.pd-intro p:last-child { margin-bottom: 0; }

/* ── Aside: ficha técnica ── */
.pd-aside {
    position: sticky;
    top: 6rem;
}

.pd-card {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: var(--radius-sm);
}

.pd-card .section-label {
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-datasheet {
    margin: 0 0 1.75rem;
    display: grid;
    gap: 1.1rem;
}

.pd-datasheet-row { margin: 0; }

.pd-datasheet dt {
    font-family: 'Raleway', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
}

.pd-datasheet dd {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.45;
}

.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-tag {
    display: inline-block;
    padding: 5px 11px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.04em;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ── Gallery ── */
.pd-gallery {
    background: #0a0a0a;
    padding: 5rem 0 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pd-gallery-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0.5rem 0 0;
}

.pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .pd-gallery-grid { grid-template-columns: 1fr; }
}

.pd-gallery-item {
    all: unset;
    display: block;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #1a1a1a;
}

.pd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.pd-gallery-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
}

/* ── Media tabs (Imágenes / Videos) ── */
.pd-media {
    margin-top: 0;
}

.pd-media-tabs {
    display: inline-flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.pd-media-tab {
    all: unset;
    cursor: pointer;
    padding: 0.55rem 1.4rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.pd-media-tab:hover { color: rgba(255, 255, 255, 0.85); }

.pd-media-tab.is-active {
    background: #fff;
    color: #0a0a0a;
}

.pd-media-panel { display: none; }
.pd-media-panel.is-active { display: block; }

.pd-media .pd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .pd-media .pd-gallery-grid { grid-template-columns: 1fr; }
}

/* ── Video item: thumb + play overlay ── */
.pd-video-item { position: relative; }

.pd-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.pd-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.05));
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.pd-video-item:hover .pd-video-play { opacity: 1; }

.pd-video-play svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

/* ── Ficha técnica: bloques de Materialidades / Programa ── */
.pd-spec-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-spec-block .section-label {
    display: block;
    margin-bottom: 0.75rem;
}

/* dentro de spec-block, las tags ya tienen su separador, no necesitan otro */
.pd-spec-block .pd-tags {
    margin: 0 0 0;
    padding-top: 0;
    border-top: 0;
}

/* ============================================
   MOBILE OPTIMIZATIONS — home + project detail
   ============================================ */

/* Tablet (≤900px) */
@media (max-width: 900px) {
    /* Project detail: sacar sticky del aside cuando colapsa */
    .pd-aside {
        position: static;
        top: auto;
    }
    /* Reducir paddings de secciones */
    .pd-content { padding: 3.5rem 0 4rem; }
    .pd-hero { padding: 7rem 0 3rem; min-height: 60vh; }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
    /* ── HOME ── */
    .section { padding: 3rem 0; }
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero > .container { padding-top: 2rem; padding-bottom: 2rem; }
    .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 1rem; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 1.75rem; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .hero-actions .btn,
    .hero-actions .btn-outline-light,
    .hero-actions .btn-accent,
    .hero-actions .btn-dark { width: 100%; }
    .hero-form-card { padding: 1.5rem 1.25rem; }
    .projects-header h2,
    .pd-gallery-header h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
    .projects-grid { gap: 1.25rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-wrap { padding: 1.5rem 1.25rem; }
    .form-row { grid-template-columns: 1fr !important; gap: 1rem; }

    /* ── PROJECT DETAIL ── */
    .pd-hero { padding: 6rem 0 2.5rem; min-height: auto; }
    .pd-hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); margin-bottom: 1rem; }
    .pd-breadcrumb { font-size: 0.65rem; margin-bottom: 1.25rem; }
    .pd-status { font-size: 0.6rem; margin-bottom: 0.85rem; padding: 4px 10px; }
    .pd-meta { gap: 0.75rem 1.25rem; }
    .pd-meta-item { font-size: 0.82rem; }
    .pd-meta-item svg { width: 16px; height: 16px; }

    .pd-content { padding: 2.5rem 0 3rem; }
    .pd-content-grid { gap: 2rem; }

    .pd-intro { margin: 0 0 2rem; }
    .pd-intro p { font-size: 0.88rem; line-height: 1.7; }

    .pd-card { padding: 1.4rem 1.25rem; border-radius: 10px; }
    .pd-card .section-label { padding-bottom: 0.75rem; margin-bottom: 1rem; }
    .pd-datasheet { gap: 0.85rem; margin-bottom: 1.25rem; }
    .pd-datasheet dd { font-size: 0.9rem; }
    .pd-spec-block { margin-top: 1.1rem; padding-top: 1rem; }

    /* Tabs Imágenes/Videos: que siempre quepan */
    .pd-media-tabs { width: 100%; justify-content: center; }
    .pd-media-tab { flex: 1; padding: 0.55rem 0.5rem; font-size: 0.72rem; letter-spacing: 0.1em; text-align: center; }

    /* Galería: 2 columnas chicas en mobile */
    .pd-media .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .pd-gallery-item { border-radius: 8px; }
    .pd-video-play svg { width: 32px; height: 32px; }

    /* Lightbox: chrome más ajustado */
    .pd-lightbox-content { padding: 1rem; }
    .pd-lightbox-btn { width: 40px; height: 40px; }

    /* Otros proyectos */
    .pd-others .projects-grid { gap: 1.25rem; }
}

/* Mobile chico (≤420px) */
@media (max-width: 420px) {
    /* Mantener 2 columnas en la galería incluso en mobile chico */
    .pd-media .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
    .pd-video-play svg { width: 24px; height: 24px; }
    .hero h1 { font-size: clamp(1.7rem, 9vw, 2.3rem); }
    .pd-hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
}

/* ============================================
   MOBILE POLISH — barrido final
   ============================================ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
    /* Welcome con imagen al lado */
    .welcome-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
    .welcome-content--side { max-width: 100%; }

    /* Footer columnas más compactas */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Estudio: el grid cae a 1 col antes (ya estaba en 900) */
    .estudio-section { padding-bottom: 4rem; }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
    /* HOME — Welcome */
    .welcome-section { padding: 3.5rem 0; }
    .welcome-content { margin-bottom: 2rem; }
    .welcome-content h2,
    .welcome-content--side h2 {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .welcome-content--side { text-align: center; }
    .welcome-content--side h2 { text-align: center; }
    .welcome-badge { font-size: 0.65rem; padding: 6px 14px; margin-bottom: 1.5rem; }
    .welcome-image { aspect-ratio: 16 / 10; }
    .welcome-grid { gap: 1.5rem; margin-bottom: 2rem; }

    /* HOME — Trust grid (servicios) */
    .trust-grid { margin-top: 2.5rem; }
    .trust-card { padding: 1.75rem 0.5rem 1.5rem; }
    .trust-card::before { top: 0.6rem; right: 0.4rem; font-size: 0.62rem; }
    .trust-icon { margin-bottom: 1rem; }
    .trust-icon svg { width: 28px; height: 28px; }
    .trust-card h4 { font-size: 0.85rem; margin-bottom: 0.85rem; padding-bottom: 0.75rem; }
    .trust-card p, .trust-list li { font-size: 0.8rem; }

    /* HOME — Hero overlay nav arrows + bullets más chicos */
    .hero-nav { width: 38px; height: 38px; }
    .hero-bullets { gap: 0.5rem; }
    .hero-bullet { width: 22px; }

    /* HOME — Contact info text más compacto */
    .contact-info h2 { font-size: 1.6rem; }
    .contact-info > p { font-size: 0.95rem; margin-bottom: 1.75rem; }
    .contact-detail { gap: 0.85rem; margin-bottom: 1.1rem; }
    .contact-icon { width: 38px; height: 38px; }

    /* HOME — Projects header */
    .projects-section { padding: 3rem 0; }
    .projects-header { margin-bottom: 2rem; }

    /* PROJECT — Otros proyectos */
    .pd-others { padding: 3rem 0 4rem; }
    .pd-others .projects-header h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

    /* ESTUDIO — proporciones */
    .estudio-section { padding: 0 0 3rem; }
    .estudio-grid { gap: 2rem; margin-top: 2rem; }
    .estudio-text { max-width: 100%; }
    .estudio-title { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 1.5rem; }
    .estudio-lead { font-size: 0.95rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
    .estudio-block { margin-bottom: 1.5rem; }
    .estudio-block p, .estudio-meta p { font-size: 0.88rem; line-height: 1.7; }
    .estudio-image { aspect-ratio: 4 / 5; }
    .estudio-image-caption { font-size: 0.7rem; margin-top: 0.75rem; }
    .estudio-cta .btn-outline-light { width: 100%; padding: 0.85rem 1rem; font-size: 0.78rem; }

    /* OVERLAY MENU — links más medibles */
    .overlay-menu-list a { font-size: clamp(1.8rem, 9vw, 2.6rem); }
    .overlay-menu-panel { padding: 1.75rem; }
    .overlay-menu-eyebrow { font-size: 0.65rem; }
    .overlay-menu-close { width: 40px; height: 40px; top: 1rem; right: 1rem; }

    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; padding-top: 1.5rem; }
    .site-footer { padding: 3rem 0 2rem; }

    /* HEADER — nav-brand un toque más chico */
    .site-header { padding: 0.75rem 0; }
    .nav-brand img,
    .nav-brand .brand-logo { height: 28px !important; }

    /* PROJECT DETAIL — pd-others grid más compacto */
    .pd-others .projects-grid { grid-template-columns: 1fr; }

    /* LIGHTBOX — imagen no se corta */
    .pd-lightbox { padding: 1rem; }
    .pd-lightbox-content img { max-height: 70vh; }
    .pd-lightbox #lightbox-video { width: 95vw !important; }
    .pd-lightbox-prev { left: 0.5rem; }
    .pd-lightbox-next { right: 0.5rem; }
}

/* ── Mobile chico (≤420px) ── */
@media (max-width: 420px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-form-card { padding: 1.25rem 1rem; }
    .pd-card { padding: 1.2rem 1rem; }
    .estudio-title { font-size: clamp(1.7rem, 9vw, 2.2rem); }
    .welcome-image { aspect-ratio: 4 / 3; }

    /* Trust grid: stacking en 1 col, número arriba a la derecha más sutil */
    .trust-card { padding: 1.5rem 0.25rem 1.25rem; }
    .trust-card::before { top: 0.5rem; right: 0.25rem; }
}

/* ── iOS Safari fix: prevenir zoom al focus de inputs ── */
@media (max-width: 640px) {
    input, select, textarea, .form-input, .form-textarea {
        font-size: 16px !important;
    }
}

/* ── Other projects ── */
.pd-others {
    background: #0a0a0a;
    padding: 5rem 0 7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Lightbox ── */
.pd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
}

.pd-lightbox.active { display: flex; }

.pd-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pd-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.pd-lightbox-content p {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

.pd-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 50%;
}

.pd-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pd-lightbox-btn svg {
    width: 22px;
    height: 22px;
}

.pd-lightbox-close { top: 1.5rem; right: 1.5rem; }
.pd-lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.pd-lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .pd-lightbox { padding: 1rem; }
    .pd-lightbox-close { top: 0.75rem; right: 0.75rem; }
    .pd-lightbox-prev  { left: 0.5rem; }
    .pd-lightbox-next  { right: 0.5rem; }
}

/* ── 404 ── */
.pd-notfound {
    padding: 9rem 0 8rem;
    text-align: center;
    color: #fff;
    background: #0a0a0a;
}

.pd-notfound-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.pd-notfound-icon svg {
    width: 100%;
    height: 100%;
}

.pd-notfound h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 1rem 0;
}

.pd-notfound p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}


/* ============================================
   ESTUDIO PAGE
   ============================================ */
.estudio-section {
    background: #0a0a0a;
    color: #fff;
    padding: 0 0 6rem;
    min-height: 100vh;
}

.estudio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .estudio-grid { gap: 3rem; }
}

@media (max-width: 900px) {
    .estudio-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.estudio-text { max-width: 560px; }

.estudio-text .section-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.estudio-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 2.25rem;
}

.estudio-lead {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin: 0 0 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.estudio-lead strong { color: #fff; font-weight: 500; }

.estudio-block { margin-bottom: 2rem; }

.estudio-eyebrow {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
}

.estudio-block p,
.estudio-meta p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin: 0;
}

.estudio-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
    .estudio-meta { grid-template-columns: 1fr; gap: 1.5rem; }
}

.estudio-cta { margin-top: 2rem; }

.estudio-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #161616;
}

.estudio-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

@media (min-width: 901px) {
    .estudio-image {
        position: sticky;
        top: 6rem;
    }
}

.estudio-image-caption {
    display: block;
    margin-top: 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
    .estudio-section { padding: 0 0 3rem; }
    .estudio-text { max-width: 100%; }
    .estudio-title { margin-bottom: 1.5rem; }
}
