/* ============================================================
   LA LUZ — CONFIGURACIÓN GLOBAL Y VARIABLES (ACTUALIZADO CON MANUAL DE MARCA)
   ============================================================ */
:root {
    /* Paleta Oficial del Manual de Marca */
    --brand-dark-brown: #4A2D00;   /* Pantone 4625C - Café Profundo */
    --brand-medium-brown: #91611E; /* Pantone 1395C - Café Medio */
    --brand-gold: #C48F30;         /* Pantone 7510C - Ocre/Dorado Principal */
    --brand-light-gold: #EACB8D;   /* Pantone 7403C - Dorado Claro/Crema */
    --brand-green: #004C45;        /* Pantone 3302C - Verde Institucional */

    /* Mapeo de Variables del Sistema */
    --gold: var(--brand-gold);
    --dark-coffee: var(--brand-dark-brown);
    --font-serif: 'Lora', serif;
}

/* --- CLASES DE UTILIDAD ADICIONALES PARA EL VERDE DE MARCA --- */
.text-brand-green { color: var(--brand-green) !important; }
.bg-brand-green { background-color: var(--brand-green) !important; }

/* --- CORRECCIONES ARQUITECTÓNICAS (BADGES FLOATING) --- */
.row.align-items-stretch {
    overflow: visible !important;
}

[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
    overflow: visible !important;
}


/* ============================================================
   COMPONENTES CORE — TEXTO, BOTONES Y DIVISORES
   ============================================================ */

/* --- ARQUITECTURA TIPOGRÁFICA --- */
.display-serif {
    font-family: var(--font-serif), Georgia, serif;
    color: var(--dark-coffee);
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

.section-main-title {
    font-family: var(--font-serif), Georgia, serif;
    color: var(--dark-coffee);
    font-size: 3.8rem !important;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.label-badge-gold {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.1rem !important;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.text-gold { color: var(--gold); }
.tracking-widest { letter-spacing: 5px; }
.line-height-relaxed { line-height: 1.6; }
.max-w-600 { max-width: 600px; }

.text-justify {
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

/* --- ELEMENTOS DE BALANCE VISUAL --- */
.premium-diamond-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
    position: relative;
    margin: 1.5rem auto 0;
}

.premium-diamond-divider::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: var(--gold);
}

.gold-line-premium {
    width: 60px;
    height: 1px;
    background: var(--gold);
    position: relative;
}

.gold-line-premium::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--gold);
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.gold-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0;
}

.title-side-line {
    width: 100%;
    height: 1px;
    background: rgba(200, 145, 50, 0.25); /* Actualizado a opacidad de --brand-gold */
    display: inline-block;
}

/* --- BOTONES PREMIUM --- */
.btn-premium, .btn-gold, .btn-outline, .btn-cafe-outline, .btn-laluz {
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-coffee) !important;
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold) !important;
    transform: scale(1.03);
}

.btn-outline {
    border: 2px solid #ffffff !important;
    background: transparent;
    color: #ffffff !important;
}

.btn-outline:hover {
    background: #ffffff !important;
    color: #4a4a4a !important;
    transform: scale(1.03);
}

.btn-laluz.btn-outline-dark {
    border: 1px solid var(--dark-coffee);
    background: transparent;
    color: var(--dark-coffee);
}

.btn-laluz.btn-outline-dark:hover {
    background: var(--dark-coffee);
    color: #ffffff !important;
}

.btn-premium {
    padding: 14px 25px !important;
    font-size: 1.1rem !important;
    min-width: 200px;
    border-radius: 4px;
}

.btn-premium:active { transform: scale(0.95); }


/* ============================================================
   ESTILOS DE SECCIONES ESPECÍFICAS
   ============================================================ */

/* --- HERO ZEN DINÁMICO --- */
.hero-zen {
    background-color: #fdfbf7;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 25vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(74, 45, 0, 0.05) 100%); /* Actualizado a opacidad de --brand-dark-brown */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- HERO SERVICIOS TRADICIONALES --- */
/*noinspection CssUnknownTarget*/
.hero-tradicionales {
    min-height: 55vh;
    /*noinspection CssUnknownTarget*/
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('/img/portada-tradicionales.jpg') center/cover no-repeat;
    margin-top: 76px;
    padding: 60px 20px;
}

.label-hero-gold {
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 600;
}

.title-hero-serif { font-family: var(--font-serif); }
.desc-hero { max-width: 650px; }

/* --- SECCIÓN GESTIÓN DIGITAL Y CARENCIAS --- */
.section-digital-bg {
    background-color: #fdfbf7;
}

.card-digital-management {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(200, 145, 50, 0.12); /* Actualizado con el nuevo dorado */
    overflow: hidden;
    padding: 3rem !important;
    transition: all 0.4s ease;
}

.card-digital-management:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 45, 0, 0.08) !important; /* Actualizado con el nuevo café oscuro */
}

.card-watermark {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 8rem;
    color: rgba(200, 145, 50, 0.03); /* Actualizado con el nuevo dorado */
    z-index: 0;
    pointer-events: none;
}

.decorative-icon-large {
    font-size: 12rem;
    color: var(--gold);
}

.carencia-box {
    background-color: #fdfbf7;
    border: 1px solid rgba(200, 145, 50, 0.15); /* Actualizado con el nuevo dorado */
}

.carencia-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* --- CONTENEDORES DE SECCIÓN GENERALES --- */
.section-padding { padding: 100px 0; }
.bg-dark { background-color: var(--dark-coffee) !important; }
.bg-cream-premium { background-color: var(--cream, #fbfaf8); }
.bg-dark-cta { background-color: var(--dark-coffee, #4A2D00); }
.title-section-dark { color: var(--dark-coffee); font-family: var(--font-serif); font-weight: 400; }
.title-card-coffee { color: var(--dark-coffee); }
.title-cta-serif { font-family: var(--font-serif); }
.desc-section { max-width: 500px; }
.desc-cta { max-width: 550px; letter-spacing: 1px; }
.btn-cta-premium { font-size: 0.85rem; letter-spacing: 2px; transition: 0.3s; }

.sedes-header, .legal-header {
    background-size: cover;
    background-position: center;
    padding-top: 180px !important;
    padding-bottom: 100px !important;
    text-align: center;
}

.map-container-wrapper {
    border: 2px solid var(--gold);
    height: 650px;
    position: relative;
}


/* ============================================================
   ESTILOS DE TARJETAS (CARDS)
   ============================================================ */

/* --- TARJETAS MINIMALISTAS GENERALES --- */
.card-minimal {
    background: #ffffff;
    padding: 0 !important;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #eef0f2 !important;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-minimal .p-4 {
    padding: 2rem 2.2rem !important;
}

/* SOLUCIÓN AL BADGE FLOTANTE */
.card-minimal.card-featured {
    overflow: visible !important;
}

.card-minimal:hover {
    border: 2px solid var(--gold) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(74, 45, 0, 0.12) !important; /* Actualizado con el nuevo café oscuro */
}

/* EFECTOS INTERACTIVOS INTERNOS */
.card-minimal .image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-minimal:hover .image-wrapper img {
    transform: scale(1.06);
}

.card-minimal:hover .bi-shield-check,
.card-minimal:hover .bi-flower1,
.card-minimal:hover .bi-geo-alt {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* --- COMPONENTES DE IMÁGENES Y HOVERS --- */
.image-wrapper-premium {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(200, 145, 50, 0.2); /* Actualizado con el nuevo dorado */
}

.image-wrapper-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-interactive:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.img-side-protocol {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.badge-fase {
    font-size: 0.7rem;
    background-color: rgba(74, 45, 0, 0.85) !important; /* Actualizado con el nuevo café oscuro */
}

.transform-transition {
    transition: transform 0.5s ease;
    object-fit: cover;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.card-hover:hover .transform-transition {
    transform: scale(1.06);
}


/* ============================================================
   CARRUSEL DE ALIADOS ESTRATÉGICOS
   ============================================================ */
.section-allies-wrapper {
    display: block;
    clear: both;
    margin-top: 0 !important;
    padding-top: 60px;
    padding-bottom: 65px;
    background-color: #fdfbf7;
}

.text-allies-header {
    margin-top: 40px !important;
    margin-bottom: 35px;
}

.allies-slider {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    padding: 40px 0;
    box-shadow: 0 15px 40px rgba(74, 45, 0, 0.04); /* Sombra suavizada con café de marca */
    border-top: 1px solid rgba(200, 145, 50, 0.15);  /* Bordes integrados con el nuevo dorado */
    border-bottom: 1px solid rgba(200, 145, 50, 0.15);
}

.allies-slider::before,
.allies-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.allies-slider::before {
    top: 0;
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.allies-slider::after {
    top: 0;
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.allies-track {
    display: flex;
    width: calc(250px * 15);
    animation: scrollInfinite 25s linear infinite;
    will-change: transform;
}

.ally-logo {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ally-logo img {
    max-width: 160px;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.ally-logo img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.allies-slider:hover .allies-track {
    animation-play-state: paused;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}


/* ============================================================
   OTROS COMPONENTES
   ============================================================ */
.counter {
    display: inline-block;
    min-width: 0.6em;
    font-variant-numeric: tabular-nums;
}

.dropdown-menu {
    border-radius: 0;
    border-top: 3px solid var(--gold) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: var(--dark-coffee);
    color: var(--gold) !important;
    padding-left: 2rem;
}


/* ============================================================
   MEDIA QUERIES — RESPONSIVO Y ADAPTACIONES MÓVILES
   ============================================================ */

@media (min-width: 992px) {
    .card-img-wrapper.wrapper-large {
        height: 280px;
    }
}

@media (max-width: 767.98px) {

    .section-digital-bg .position-absolute,
    .decorative-icon-large,
    .decorative-flower {
        display: none !important;
    }

    .section-main-title {
        font-size: calc(1.6rem + 1.2vw) !important;
        text-align: center !important;
        line-height: 1.3 !important;
        padding: 0 15px;
    }

    .label-badge-gold {
        font-size: 0.78rem !important;
        letter-spacing: 3px !important;
        text-align: center !important;
        display: block;
        margin-bottom: 0.4rem;
    }

    .text-start {
        text-align: center !important;
    }
    .hero-title { font-size: 2rem; }
    .section-padding { padding: 50px 0; }

    .card-digital-management {
        padding: 2rem 1.5rem !important;
    }

    .overflow-hidden-mobile {
        overflow: hidden !important;
    }

    .carencia-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
        padding-left: 10%;
    }

    .hero-tradicionales {
        min-height: 45vh;
        padding: 40px 15px;
    }
    .hero-tradicionales h1 {
        font-size: 2rem !important;
    }
    .text-justify {
        text-align: left;
        font-size: 1rem;
    }
    .img-side-protocol {
        height: 280px;
    }
    .btn-call-action, .btn-cta-premium {
        width: 100%;
        text-align: center;
    }
    .title-section-dark {
        font-size: 1.75rem !important;
    }
    .title-cta-serif {
        font-size: 1.5rem !important;
    }
    .btn-cta-premium {
        padding: 15px 20px !important;
    }

    .row.align-items-stretch > [class*="col-"] {
        margin-bottom: 2.5rem;
    }

    .row.align-items-stretch > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

}

@media (max-width: 575.98px) {
    .hero-tradicionales {
        min-height: 40vh;
    }
    .card-img-wrapper {
        height: 180px;
    }
    .carencia-grid {
        padding-left: 5%;
    }
}