* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e1e1e;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Paleta premium: blanco, rojo oscuro (#8B1E1E), negro/gris oscuro */
:root {
    --primary-red: #8B1E1E;
    --primary-red-dark: #6B1515;
    --black-rich: #111111;
    --gray-soft: #F8F9FC;
    --shadow-card: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 30px 40px -20px rgba(0, 0, 0, 0.2);
}

/* Hero Parallax sin navbar, ocupa toda la altura inicial */
.hero-parallax {
    background: linear-gradient(107deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 100%), url('https://images.pexels.com/photos/2587054/pexels-photo-2587054.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll;
        background-position: center;
        min-height: 85vh;
    }

    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px;
    }

    .hero-sub {
        font-size: 1rem !important;
    }

    .btn-premium,
    .btn-outline-premium {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn-premium {
    background-color: var(--primary-red);
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.25s ease;
    color: white;
    box-shadow: 0 10px 20px -8px rgba(139, 30, 30, 0.4);
}

.btn-premium:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 28px -10px rgba(139, 30, 30, 0.5);
}

.btn-outline-premium {
    border: 2px solid white;
    background: transparent;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-premium:hover {
    background-color: white;
    color: var(--primary-red) !important;
}

/* Secciones */
.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-red);
    margin-top: 12px;
    border-radius: 4px;
}

/* Tarjetas departamentos */
.card-dept {
    border: none;
    border-radius: 24px;
    background: white;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-dept:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.badge-urban {
    background-color: rgba(139, 30, 30, 0.1);
    color: var(--primary-red);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.dept-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

@media (max-width: 768px) {
    .dept-img {
        height: 180px;
    }
}

.card-dept:hover .dept-img {
    transform: scale(1.02);
}

/* estadísticas */
.stats-section {
    background: linear-gradient(135deg, #F9F5F2 0%, #ffffff 100%);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

/* modal personalizado - responsive */
.modal-content {
    border-radius: 28px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #f0eef0;
    background: white;
    padding: 1rem 1.5rem;
}

.urban-item {
    transition: all 0.2s;
    border-radius: 20px;
    background: #fefefe;
}

.urban-item:hover {
    background: #faf5f2;
}

.urban-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 576px) {
    .urban-thumb {
        width: 55px;
        height: 55px;
    }

    .urban-item {
        flex-direction: column !important;
        text-align: center;
    }

    .btn-sm-red {
        margin-top: 0.5rem;
        width: 100%;
    }
}

.btn-sm-red {
    background-color: var(--primary-red);
    border: none;
    border-radius: 40px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    transition: background 0.2s;
}

.btn-sm-red:hover {
    background-color: var(--primary-red-dark);
}

/* botones flotantes */
.float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: var(--primary-red);
    width: 52px;
    height: 52px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 1030;
    cursor: pointer;
    border: none;
}

.float-btn:hover {
    background-color: #6d1515;
    transform: scale(1.05);
}

.whatsapp-float {
    bottom: 100px;
    background-color: #25D366;
}

.whatsapp-float:hover {
    background-color: #20b859;
}

@media (max-width: 576px) {
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float {
        bottom: 80px;
    }
}

/* Transiciones y utilidades adicionales */
img {
    max-width: 100%;
}

.btn:focus {
    box-shadow: none;
}

.max-w-700 {
    max-width: 700px;
}

.hover-translate {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-translate:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
}

.hover-white:hover {
    color: #ffffff !important;
}

.navbar .nav-link {
    color: #333333;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.navbar .nav-link:hover {
    color: var(--primary-red) !important;
}

.footer-section {
    background-color: #121518 !important;
    border-top: 3px solid var(--primary-red);
}

/* Tarjetas y Listado de Requisitos */
.requisito-list-item {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-left: 4px solid var(--primary-red) !important;
    border-radius: 18px;
    padding: 1.15rem 1.4rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.requisito-list-item:hover {
    transform: translateX(6px);
    background: #fffafa;
    box-shadow: 0 10px 25px -5px rgba(139, 30, 30, 0.1);
    border-color: rgba(139, 30, 30, 0.3);
}

.icon-circle-requisito-sm {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(139, 30, 30, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.requisito-list-item:hover .icon-circle-requisito-sm {
    background: var(--primary-red);
}

.requisito-list-item:hover .icon-circle-requisito-sm i {
    color: #ffffff !important;
}

.card-asesoria {
    background: linear-gradient(145deg, #ffffff 0%, #faf6f5 100%);
    border: 1px solid rgba(139, 30, 30, 0.15) !important;
    border-radius: 24px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card-asesoria:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 30, 30, 0.15);
    border-color: rgba(139, 30, 30, 0.3) !important;
}

/* ========================================================
   PRELOADER
   ======================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1), visibility 0.6s cubic-bezier(0.2, 0, 0, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: preloaderPulse 1.8s ease-in-out infinite alternate;
}

.preloader-logo {
    height: 64px;
    width: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(139, 30, 30, 0.15));
}

.preloader-spinner-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 30, 30, 0.12);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spinPreloader 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.preloader-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #666666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes spinPreloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0% { transform: scale(0.98); opacity: 0.9; }
    100% { transform: scale(1.02); opacity: 1; }
}

/* ========================================================
   ANIMACIONES AL SCROLL (Se activan solo la 1ra vez)
   ======================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.93) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Estado una vez revelado */
.reveal-on-scroll.is-revealed,
.reveal-fade-left.is-revealed,
.reveal-fade-right.is-revealed,
.reveal-zoom.is-revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays para escalonar (Stagger effect) */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
