/* ========================= */
/*           BASE            */
/* ========================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* BODY limpio (sin limitar ancho) */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--black);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

/* ─── VARIABLES ─── */
:root {

    --primary-dark: #18223C;
    --primary-blue: #166077;
    --primary-gold: #AE7B39;
    --accent-green: #5AAA95;
    --accent-light: #B1DDF1;
    --bg-light: #F3F3F4;

    --white: #ffffff;
    --black: #000000;
    --color-gris: #374151;
    
    --color-azul: var(--primary-dark);
    --color-dorado: var(--primary-gold);
    --color-blanco: var(--white);
    --color-negro: var(--black);
    --color-gris-claro: var(--bg-light);
}

/* UTILIDADES */

.centrar-btn {
    text-align: center;
    margin-top: 2.5rem;
}

.sec-titulo {
    font-size: 2.7rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.sec-titulo strong {
    color: var(--primary-dark);
}

.sec-titulo.centrado {
    text-align: center;
}

.sec-titulo.light {
    color: var(--white);
}

.sec-sub {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 2.5rem;
}

.sec-sub.centrado {
    text-align: center;
}

/* ════════════════════════
   NAVBAR
════════════════════════ */
.navbar {
    position: static;
    width: 100%;
    background: var(--primary-dark);
    z-index: 100;
}

/* CONTENEDOR INTERNO (CLAVE) */
.navbar_inner {
    max-width: 120rem;
    margin: 0 auto;
    padding: 10px 5rem;

    display: flex;
    align-items: center;
}

/* LINKS (por si luego los usas) */
.nav-links {
    display: flex;
    gap: 30px;
    margin-left: 3rem;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.25s;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--white);
}

/* BOTÓN */
.btn-contacto {
    display: flex;
    align-items: center;
    gap: 8px;

    background: var(--white);
    color: var(--primary-dark);

    padding: 5px 18px;
    border-radius: 20px;

    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;

    white-space: nowrap;
    transition: all 0.25s ease;

    margin-left: auto;
    border: 0.14rem solid var(--white);
}

.btn-contacto:hover { 
    color: var(--white);
    background: transparent;
}

.btn-contacto svg {
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
}

/* ════════════════════════
   LOGO
════════════════════════ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.logo span {
    position: relative;
    padding-left: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.5);
}

/* ════════════════════════
   SOBRE UDAI
════════════════════════ */

/* sección con imagen */
.seccion-about {
    position: relative;
    min-height: 44rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5rem;

    background: url('/assets/img/fotosInmobi1440_4.webp') center/cover no-repeat;
    overflow: hidden;
}

/* overlay oscuro */
.seccion-about::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.35) 100%
    );
}

/* tarjeta glass */
.about-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 70rem;
    min-height: 32rem;

    background: rgba(24, 34, 60, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;

    padding: 3rem 4rem;

    display: flex;
    flex-direction: column;
    gap: 3rem;
}


.about-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* columna izquierda */
.about-col-left {
    display: flex;
    flex-direction: column;
}

/* título */
.about-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
}

/* párrafos */
.about-cuerpo {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1rem;
}


.about-col-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-col-right img {
    width: 21rem; 
    height: 20rem; 

    object-fit: cover;
    border-radius: 1rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


.about-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* cada contador */
.about-counter {
    flex: 1;
    text-align: center;
}

/* número */
.about-counter-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

/* texto */
.about-counter-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

/* ════════════════════════
   SECCIÓN VIDEO
════════════════════════ */

.seccion-video {
    background: var(--primary-dark);
    padding: 6rem 5rem;
    text-align: center;
}

/* título */
.video-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3rem;
}

/* contenedor */
.video-container {
    display: flex;
    justify-content: center;
}

/* caja del video */
.video-box {
    width: 100%;
    max-width: 60rem;
    height: 28rem;

    background: #d9d9d9;
    border-radius: 1.25rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* botón play */
.video-play {
    width: 5rem;
    height: 5rem;
    background: black;
    border-radius: 50%;

    position: relative;
}

/* triángulo */
.video-play::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);

    width: 0;
    height: 0;

    border-left: 1.2rem solid white;
    border-top: 0.8rem solid transparent;
    border-bottom: 0.8rem solid transparent;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
}

/* ════════════════════════
   SECCIÓN CARRUSEL
════════════════════════ */

/* SECCION CONTENEDOR GENERAL */

.rombo,
.rombo--top {
    background: var(--white);
    color: var(--black);
    padding: 6rem 0;
    clip-path: none; /* ❌ quitamos el rombo */
}

/* SECCION TITULO */

.seccion-ali {
    background: transparent;
    color: var(--black);
    padding: 2rem 2rem 2rem;
    text-align: center;
    margin: auto;
    max-width: 80rem;
}

.titulo-ali {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.descripcion-ali {
    max-width: 34rem;
    font-size: 1.1rem;
    margin: auto;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 3rem;
}

/* SECCION SERVICIOS */

.seccion-servicios {
    padding: 0;
    background: var(--white);
}



.contenedor-servicios {
    width: 100%;
    max-width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* TARJETAS */

.servicio {
    flex: 0 0 40%;
    height: 27rem;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    border: none; /* ❌ quitamos borde dorado */
    border-radius: 1rem;
    transition: transform 0.8s ease;
}

.servicio:nth-child(2) {
    flex: 0 0 40%;
    z-index: 2;
}

/* HOVER MOVIMIENTO (se mantiene) */

.contenedor-servicios:hover .servicio:nth-child(2) {
    transform: scale(1.05);
}

.contenedor-servicios:has(.servicio:first-child:hover) .servicio {
    transform: translateX(50%);
}

.contenedor-servicios:has(.servicio:first-child:hover) .servicio:first-child {
    transform: translateX(50%) scale(1.05);
}

.contenedor-servicios:has(.servicio:last-child:hover) .servicio {
    transform: translateX(-50%);
}

.contenedor-servicios:has(.servicio:last-child:hover) .servicio:last-child {
    transform: translateX(-50%) scale(1.05);
}

/* HOVER TARJETA */

.servicio:hover {
    transform: scale(1.05);
}

/* IMAGEN */

.servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.servicio:hover img {
    transform: scale(1.08);
}

/* OVERLAY OSCURO */

.servicio::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.1)
    );
    pointer-events: none;
}

/* TEXTO SOBRE IMAGEN */

.servicio-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: var(--white); /* ✔ texto blanco */
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.servicio:hover .servicio-info {
    opacity: 1;
    transform: translateY(0);
}

.servicio-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.servicio-info p {
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    margin: 0 4rem;
}

/* ════════════════════════
   EQUIPO
════════════════════════ */
/*Seccion para equipo de trabajo*/
.seccion-equipo {
    background: var(--white);
    padding: 60px 0;
    min-height: 600px;
}

.centrar-btn {
    text-align: center;
    margin-top: 2.5rem;
}

/* título negro grande mayúsculas */
.equipo-titulo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
}

/* descripción centrada con parte bold */
.equipo-desc {
    font-size: 1.1rem;
    color: var(--black);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.equipo-desc strong {
    color: var(--primary-dark);
}

/* wrapper relativo para el degradado */
.equipo-wrap {
    position: relative;
}

/* cada fila de 5 personas */
.equipo-fila {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

/* fila 2 — completamente visible */
.equipo-fila-fade {
    opacity: 1;
}

/* filas extra ocultas por defecto */
.equipo-filas-extra {
    display: none;
}

.equipo-filas-extra.visible {
    display: block;
}

/* degradado */
.equipo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top,
            #ffffff 0%,
            #ffffff 25%,
            rgba(255, 255, 255, 0.7) 55%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s;
}

.equipo-fade.hidden {
    opacity: 0;
    pointer-events: none;
}

/* tarjeta de asesor */
.asesor {
    text-align: center;
    width: 190px;
    flex-shrink: 0;
}

/* avatar grande gris oscuro (NO TOCADO 👀) */
.asesor-foto {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--color-gris);
    margin: 0 auto 14px;
    overflow: hidden;
    position: relative;
}

/* cabeza */
.asesor-foto::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

/* cuerpo */
.asesor-foto::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 30px;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.85);
}

/* avatar más claro */
.asesor-foto-tenue {
    background: var(--white);
}

.asesor-foto-tenue::before,
.asesor-foto-tenue::after {
    background: rgba(255, 255, 255, 0.7);
}

.asesor-nombre {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.asesor-puesto {
    font-size: 0.78rem;
    color: var(--black);
}

/* asesor tenue */
.asesor-tenue .asesor-nombre,
.asesor-tenue .asesor-puesto {
    color: var(--white);
}

/* botón */
.btn-equipo-ver {
    background: var(--primary-dark);
    color: var(--white);
    border: 0.13rem solid var(--primary-dark);
    padding: 16px 60px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s;
    position: relative;
    z-index: 3;
}

.btn-equipo-ver:hover {
    background: transparent;
    color: var(--primary-dark);
}




@media (max-width: 768px) {

    /* ─────────────────────
       NAVBAR
    ───────────────────── */
    .navbar {
        padding: 10px 16px;
    }
    
    .navbar_inner {
        justify-content: center;
    }

    .logo img {
        height: 44px;
    }

    .btn-contacto {
        display: none;
    }

    /* ─────────────────────
       ABOUT
    ───────────────────── */
    .seccion-about {
        padding: 2.5rem 1rem;
        min-height: auto;
    }

    .about-card {
        max-width: 22rem;
        margin: 0 auto;
        padding: 1.8rem 1.4rem;
        gap: 1.8rem;
        border-radius: 1.2rem;
        min-height: auto;
    }

    .about-title {
        font-size: 3rem;
    }

    .about-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-cuerpo {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .about-col-right {
        display: none;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-counter-num {
        font-size: 1.6rem;
    }

    .about-counter-label {
        font-size: 0.8rem;
    }

    /* ─────────────────────
       VIDEO
    ───────────────────── */
    .seccion-video {
        padding: 3rem 1rem;
    }

    .video-title {
        font-size: 1.7rem;
    }

    .video-box {
        height: 180px;
        border-radius: 1rem;
    }

    /* ─────────────────────
       SERVICIOS (MOBILE FIX)
    ───────────────────── */
    
    .titulo-ali {
        font-size: 1.7rem;
    }
    
    .descripcion-ali {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .contenedor-servicios {
        flex-direction: column;
        overflow: visible;
        gap: 0;
    }
    
    .servicio {
        flex: 0 0 100%;
        width: 90%;
        height: 22rem;
        margin: 1rem auto;
        transform: none !important;
    }
    
    .contenedor-servicios:has(.servicio:first-child:hover) .servicio,
    .contenedor-servicios:has(.servicio:last-child:hover) .servicio {
        transform: none;
    }
    
    .contenedor-servicios:has(.servicio:first-child:hover) .servicio:first-child,
    .contenedor-servicios:has(.servicio:last-child:hover) .servicio:last-child {
        transform: scale(1.05);
    }
    
    .servicio-info {
        opacity: 1;
        transform: none;
    }
    
    .servicio-info h3 {
        font-size: 1.4rem;
        line-height: 1;
    }
    
    .servicio-info p {
        font-size: 0.85rem;
        margin: 0 1rem;
    }

    /* ─────────────────────
       EQUIPO
    ───────────────────── */
    .seccion-equipo {
        padding: 3rem 0;
    }
    
    .equipo-titulo {
        font-size: 1.7rem;
    }

    .equipo-desc {
        font-size: 0.9rem;
        padding: 0 3rem;
    }
    
    .equipo-fila {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    
    .equipo-filas-extra {
        display: none;
    }
    
    .equipo-fila .asesor:nth-child(4),
    .equipo-fila .asesor:nth-child(5) {
        display: none;
    }

    .asesor {
        width: 33.33%;
        padding: 10px 6px;
    }
    
    .asesor-foto {
        width: 70px;
        height: 70px;
    }
    
    .asesor-nombre {
        font-size: 0.75rem;
    }
    
    .asesor-puesto {
        font-size: 0.7rem;
    }
    
    .btn-equipo-ver {
        width: 100%;
        max-width: 260px;
        padding: 12px;
        font-size: 0.9rem;
    }
}



@media (min-width: 769px) and (max-width: 1024px) {

    /* ─────────────────────
       NAVBAR
    ───────────────────── */
    .navbar {
        padding: 12px 40px;
    }

    .navbar_inner {
        justify-content: center;
    }

    .logo img {
        height: 50px;
    }

    .btn-contacto {
        display: none;
    }

    /* ─────────────────────
       ABOUT
    ───────────────────── */
    .seccion-about {
        padding: 4rem 2rem;
    }

    .about-card {
        max-width: 48rem;
        margin: 0 auto;
        padding: 2.5rem;
        gap: 2rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-top {
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
    }

    .about-cuerpo {
        font-size: 1rem;
    }

    .about-col-right img {
        height: 18rem;
    }

    .about-stats {
        gap: 1.5rem;
    }

    /* ─────────────────────
       VIDEO
    ───────────────────── */
    .seccion-video {
        padding: 4rem 2rem;
    }

    .video-title {
        font-size: 2.2rem;
    }

    .video-box {
        height: 22rem;
    }

    /* ─────────────────────
       SERVICIOS (TABLET FIX)
    ───────────────────── */

    .grupo-titulo {
        font-size: 2.2rem;
    }

    .grupo-parrafo {
        font-size: 1rem;
        max-width: 40rem;
    }

    .contenedor-servicios {
        flex-direction: column;
        overflow: visible;
    }

    .servicio {
        flex: 0 0 100%;
        width: 90%;
        height: 24rem;
        margin: 1rem auto;
        transform: none !important;
    }

    .contenedor-servicios:has(.servicio:first-child:hover) .servicio,
    .contenedor-servicios:has(.servicio:last-child:hover) .servicio {
        transform: none;
    }

    .contenedor-servicios:has(.servicio:first-child:hover) .servicio:first-child,
    .contenedor-servicios:has(.servicio:last-child:hover) .servicio:last-child {
        transform: scale(1.05);
    }

    .servicio-info {
        opacity: 1;
        transform: none;
    }

    .servicio-info p {
        margin: 0 2rem;
    }

    /* ─────────────────────
       EQUIPO
    ───────────────────── */
    .seccion-equipo {
        padding: 4rem 0;
    }
    
    .equipo-titulo {
        font-size: 2.2rem;
    }
    
    .equipo-desc {
        font-size: 1rem;
        max-width: 500px;
    }
    
    .equipo-fila {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    
    .equipo-filas-extra {
        display: none;
    }
    
    .equipo-fila .asesor:nth-child(4),
    .equipo-fila .asesor:nth-child(5) {
        display: none;
    }
    
    .asesor {
        width: 33.33%;
        padding: 10px 6px;
    }
    
    .asesor-foto {
        width: 80px;
        height: 80px;
    }
    
    .asesor-nombre {
        font-size: 0.85rem;
    }
    
    .asesor-puesto {
        font-size: 0.75rem;
    }
    
    .btn-equipo-ver {
        padding: 14px 40px;
        font-size: 1rem;
    }
}

/*  
@media (min-width: 1921px) {
    .navbar_inner {
        max-width: 120rem;
        padding: 10px 6rem;
    }
} 
*/


/* =======================
   RESPONSIVE 2K / ULTRAWIDE
   Pantallas grandes (1920px+)
   ======================= */
@media (min-width: 1920px) {

    /* =======================
     CONTENEDOR GLOBAL
     ======================= */
    body {
        max-width: 4096px;
        margin-left: auto;
        margin-right: auto;
    }

    .seccion-servicios {
        margin: 0 auto;
        width: 1600px;
    }

    .carrusel-props {
        max-width: 1600px;
        margin: 0 auto;
    }

    .carrusel-track {
        max-width: 1600px;
        margin: 0 auto;
    }

}