:root {
    --primary-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light-gray: #b3b3b3;
    --bg-loader: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   PRELOADER ANIMADO
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: var(--bg-loader);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.animation-preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-top-color: var(--text-dark);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.txt-loading {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 12px;
    color: var(--text-dark);
    display: flex;
    margin-bottom: 15px;
}

.letters-loading {
    position: relative;
    color: rgba(0, 0, 0, 0.05);
}

.letters-loading::before {
    content: attr(data-text-preloader);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--text-dark);
    opacity: 0;
    animation: load-letters 3s infinite linear;
}

.letters-loading:nth-child(2)::before { animation-delay: 0.2s; }
.letters-loading:nth-child(3)::before { animation-delay: 0.4s; }
.letters-loading:nth-child(4)::before { animation-delay: 0.6s; }
.letters-loading:nth-child(5)::before { animation-delay: 0.8s; }
.letters-loading:nth-child(6)::before { animation-delay: 1.0s; }

@keyframes load-letters {
    0%, 20%, 100% { opacity: 0; }
    10%, 15% { opacity: 1; }
}

.text-center {
    font-size: 0.75rem;
    color: var(--text-light-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Base de fondo del preloader detrás del texto */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 99998;
}

.row {
    display: flex;
    width: 100%;
    height: 100%;
}

.loader-section {
    flex: 1;
    background: var(--bg-loader);
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* =========================================
   LAYOUT PRINCIPAL (SPLIT SCREEN)
   ========================================= */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Mitad Izquierda (Imagen) */
.image-half {
    flex: 1.2;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Obra%20Aleh%20(2).jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.65) contrast(1.1); /* Efecto cinemático/industrial */
}

/* Etiqueta superior ("Locación") */
.location-tag {
    position: absolute;
    top: 3.5rem;
    left: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 500;
}

/* Triángulo blanco en la esquina inferior izquierda */
.corner-cut {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 12vw;
    height: 12vw;
    min-width: 15vh;
    min-height: 15vh;
    background-color: var(--primary-bg);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 2;
}

/* Mitad Derecha (Texto Claro Minimalista) */
.content-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 5rem;
    position: relative;
    background-color: var(--primary-bg);
    justify-content: space-between;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Contenido Principal a la Derecha */
.content-body {
    position: relative;
    max-width: 480px;
    margin: auto 0;
    padding-top: 2rem;
}

/* El número '01' gigante detrás del texto */
.huge-bg-text {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 20rem;
    font-weight: 800;
    color: #f7f7f7;
    z-index: 0;
    user-select: none;
    line-height: 1;
}

.content-body > * {
    position: relative;
    z-index: 1;
}

.kicker {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
}

.title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Info Contacto */
.contact-block {
    margin-top: 4rem;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light-gray);
    margin-bottom: 0.5rem;
}

.contact-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 2px;
    display: inline-block;
}

.footer {
    font-size: 0.8rem;
    color: var(--text-light-gray);
    font-weight: 500;
}

/* Animación de entrada de los elementos derecho */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 2s; /* Espera a que termine el preloader */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 1200px) {
    .content-half {
        padding: 3.5rem 3.5rem;
    }
    .huge-bg-text {
        font-size: 16rem;
    }
}

@media (max-width: 990px) {
    .main-wrapper {
        flex-direction: column;
    }
    .image-half {
        min-height: 45vh;
        flex: none;
    }
    .corner-cut {
        bottom: 0px;
        left: auto;
        right: 0px;
        transform: scaleX(-1); /* Cambia el corte al lado derecho en movil para verse mejor */
    }
    .location-tag {
        top: 2.5rem;
        left: 2.5rem;
    }
    .content-half {
        flex: 1;
        padding: 3rem 2.5rem;
    }
    .huge-bg-text {
        font-size: 12rem;
        left: -10px;
        top: -20px;
    }
    .content-body {
        max-width: 100%;
        margin-top: 2rem;
        margin-bottom: 3rem;
    }
    .txt-loading {
        font-size: 1.8rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 480px) {
    .image-half {
        min-height: 40vh;
    }
    .location-tag {
        top: 1.5rem;
        left: 1.5rem;
    }
    .content-half {
        padding: 2.5rem 1.5rem;
    }
    .kicker {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    .title {
        font-size: 1.15rem;
    }
}
