/* =========================================================
   PERSONAL.CSS - Diseño corporativo para constructora
   ========================================================= */

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

:root{
    --azul-oscuro:#102c52;
    --azul:#183a67;
    --azul-claro:#2f5b8f;
    --naranja:#e8ad35;
    --dorado-claro:#f6d58f;
    --gris-fondo:#f5ede2;
    --gris-texto:#7a6b61;
    --blanco:#fffaf2;
    --crema:#fff7ec;
    --crema-2:#f8e9d7;
    --cafe:#5b2f22;
    --rosa:#df8f9f;
    --sombra:0 12px 30px rgba(91,47,34,.12);
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gris-fondo);
    color: #263238;
}

/* ================= HEADER ================= */

header{
    width: 100%;
    min-height: 480px;
    background:
        linear-gradient(135deg, rgba(11,45,58,.88), rgba(12,86,112,.65)),
        url('../img/fondo/1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

header::after{
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(243,156,18,.18);
    right: -180px;
    top: -160px;
}

/* ================= NAV ================= */

nav{
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 28px 55px;
}

nav a{
    color: var(--blanco);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 30px;
    transition: .3s ease;
}

nav a:hover,
nav a.active,
.active{
    background: var(--naranja);
    color: var(--blanco);
    box-shadow: 0 8px 18px rgba(243,156,18,.35);
}

/* ================= TITULOS ================= */

.textos-header{
    position: relative;
    z-index: 2;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.textos-header h1:first-child{
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #d7edf3;
    text-transform: uppercase;
}

.textos-header h1:last-child{
    font-size: 82px;
    font-weight: 800;
    color: var(--blanco);
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(0,0,0,.35);
    margin-top: 6px;
}

/* ================= CONTENEDOR CARDS ================= */

.container__cards{
    width: min(1200px, 94%);
    margin: -55px auto 45px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 5;
}

/* ================= CARD PERSONAL ================= */

.card{
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: .35s ease;
    border: 1px solid rgba(12,86,112,.08);
}

.card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

/* ================= FOTO ================= */

.cover{
    position: relative;
    height: 230px;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
}

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

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

.img__back{
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(11,45,58,.75), rgba(11,45,58,.05));
}

/* ================= DESCRIPCION ================= */

.description{
    padding: 24px;
    text-align: center;
}

.description h2{
    color: var(--azul);
    font-size: 24px;
    margin-bottom: 14px;
    font-weight: 800;
}

.description p{
    color: var(--gris-texto);
    font-size: 15px;
    margin: 8px 0;
    background: #f8fafc;
    border-left: 4px solid var(--naranja);
    padding: 9px 10px;
    border-radius: 8px;
    text-align: left;
}

/* ================= BOTON ================= */

.boton-portada{
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
}

.boton-portada input{
    border: none;
    outline: none;
    background: var(--azul);
    color: var(--blanco);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;
}

.boton-portada input:hover{
    background: var(--naranja);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(243,156,18,.35);
}

/* ================= FOOTER ================= */

.footer{
    background: var(--azul-oscuro);
    color: var(--blanco);
    text-align: center;
    padding: 22px;
    margin-top: 40px;
}

.footer h6{
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .5px;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 800px){
    header{
        min-height: 410px;
        background-attachment: scroll;
    }

    nav{
        justify-content: center;
        flex-wrap: wrap;
        padding: 22px 15px;
    }

    .textos-header h1:first-child{
        font-size: 24px;
    }

    .textos-header h1:last-child{
        font-size: 50px;
    }

    .container__cards{
        margin-top: -35px;
    }
}

@media(max-width: 480px){
    nav a{
        padding: 10px 14px;
        font-size: 14px;
    }

    .textos-header h1:first-child{
        font-size: 19px;
        letter-spacing: 2px;
    }

    .textos-header h1:last-child{
        font-size: 38px;
    }

    .cover{
        height: 210px;
    }

    .description{
        padding: 20px;
    }
}

/* =========================================================
   ENCABEZADO EQUIPO · GRUPO IDA
   ========================================================= */

header.equipo-hero{
    width:100%;
    min-height:430px;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(180deg,rgba(4,36,50,.90),rgba(4,37,51,.84)),
        url('../img/fondo/1.jpg');
    background-size:cover;
    background-position:center 42%;
    background-attachment:scroll;
}

header.equipo-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(4,37,51,.22),transparent 38%,rgba(4,37,51,.18)),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.018) 0,
            rgba(255,255,255,.018) 1px,
            transparent 1px,
            transparent 90px
        );
    pointer-events:none;
}

header.equipo-hero::after{
    display:none;
}

.equipo-nav{
    position:relative;
    z-index:3;
    width:min(1480px,94%);
    margin:0 auto;
    min-height:112px;
    padding:20px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    border-bottom:1px solid rgba(255,255,255,.20);
}

.equipo-brand{
    display:flex;
    align-items:center;
    gap:15px;
    color:#fff;
    text-decoration:none;
    min-width:0;
}

.equipo-brand img{
    width:62px;
    height:72px;
    object-fit:contain;
    flex:none;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.equipo-brand span,
.equipo-brand strong,
.equipo-brand small{
    display:block;
}

.equipo-brand strong{
    color:#fff;
    font-size:22px;
    line-height:1;
    font-weight:900;
    letter-spacing:.5px;
}

.equipo-brand small{
    margin-top:8px;
    color:#ffc21a;
    font-size:8.5px;
    line-height:1.25;
    font-weight:900;
    letter-spacing:1.1px;
    white-space:nowrap;
}

.equipo-nav-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
}

.equipo-nav-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:11px 22px;
    border-radius:999px;
    color:#fff;
    font-size:14px;
    font-weight:800;
    text-decoration:none;
    transition:.25s ease;
}

.equipo-nav-links a:hover,
.equipo-nav-links a.active{
    color:#102f3b;
    background:#ffc21a;
    box-shadow:0 10px 26px rgba(255,194,26,.30);
}

.equipo-titulo{
    position:relative;
    z-index:2;
    width:min(900px,92%);
    min-height:300px;
    margin:0 auto;
    padding:38px 20px 58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.equipo-icono{
    position:relative;
    width:58px;
    height:58px;
    margin-bottom:14px;
    border:2px solid #ffc21a;
    border-radius:50%;
}

.equipo-icono::before{
    content:"";
    position:absolute;
    left:-120px;
    right:70px;
    top:50%;
    height:1px;
    background:linear-gradient(90deg,transparent,#ffc21a);
}

.equipo-icono::after{
    content:"";
    position:absolute;
    left:70px;
    width:120px;
    top:50%;
    height:1px;
    background:linear-gradient(90deg,#ffc21a,transparent);
}

.equipo-icono span{
    position:absolute;
    border:2px solid #ffc21a;
    border-radius:50%;
}

.equipo-icono span:nth-child(1){
    width:16px;
    height:16px;
    left:20px;
    top:10px;
}

.equipo-icono span:nth-child(2){
    width:14px;
    height:14px;
    left:7px;
    top:17px;
}

.equipo-icono span:nth-child(3){
    width:14px;
    height:14px;
    right:7px;
    top:17px;
}

.equipo-titulo h1{
    margin:0;
    color:#fff;
    font-size:clamp(48px,6vw,76px);
    line-height:1;
    font-weight:900;
    letter-spacing:1.5px;
    text-shadow:0 8px 28px rgba(0,0,0,.36);
}

.equipo-etiqueta{
    width:min(480px,90%);
    margin:14px auto 0;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:14px;
}

.equipo-etiqueta i{
    height:2px;
    background:linear-gradient(90deg,transparent,#ffc21a);
}

.equipo-etiqueta i:last-child{
    background:linear-gradient(90deg,#ffc21a,transparent);
}

.equipo-etiqueta strong{
    color:#ffc21a;
    font-size:16px;
    line-height:1;
    letter-spacing:5px;
}

.equipo-titulo p{
    margin:15px 0 0;
    color:#fff;
    font-size:15px;
    font-weight:600;
}

/* El contenido de empleados comienza ligeramente sobre el encabezado. */
.container__cards{
    margin-top:-42px;
}

@media(max-width:800px){
    header.equipo-hero{
        min-height:430px;
    }

    .equipo-nav{
        min-height:auto;
        padding:17px 0;
        flex-direction:column;
        gap:15px;
    }

    .equipo-brand img{
        width:50px;
        height:58px;
    }

    .equipo-brand strong{
        font-size:19px;
    }

    .equipo-brand small{
        font-size:7.2px;
    }

    .equipo-nav-links{
        width:100%;
        justify-content:center;
        gap:7px;
    }

    .equipo-nav-links a{
        min-height:40px;
        padding:9px 14px;
        font-size:12px;
    }

    .equipo-titulo{
        min-height:260px;
        padding:30px 15px 55px;
    }

    .equipo-titulo h1{
        font-size:clamp(42px,12vw,62px);
    }

    .equipo-icono::before{
        left:-75px;
        right:66px;
    }

    .equipo-icono::after{
        left:66px;
        width:75px;
    }
}

@media(max-width:480px){
    .equipo-brand{
        gap:10px;
    }

    .equipo-brand img{
        width:42px;
        height:50px;
    }

    .equipo-brand strong{
        font-size:17px;
    }

    .equipo-brand small{
        max-width:245px;
        font-size:6.5px;
        white-space:normal;
    }

    .equipo-nav-links a{
        padding:8px 11px;
        font-size:11px;
    }

    .equipo-icono{
        width:52px;
        height:52px;
    }

    .equipo-titulo h1{
        font-size:40px;
    }

    .equipo-etiqueta{
        gap:9px;
    }

    .equipo-etiqueta strong{
        font-size:13px;
        letter-spacing:3px;
    }

    .equipo-titulo p{
        font-size:12px;
    }
}



/* =========================================================
   PALETA CREMA DE GRUPO IDA
   Solo colores y logo; no altera distribución ni tamaños.
   ========================================================= */

body{
    background:var(--gris-fondo);
    color:#3d352f;
}

header,
header.equipo-hero{
    background:
        linear-gradient(135deg,rgba(255,247,236,.88),rgba(248,233,215,.72)),
        url('../img/fondo/1.jpg');
    background-size:cover;
    background-position:center;
}

header::after{
    background:rgba(232,173,53,.16);
}

header.equipo-hero::before{
    background:
        linear-gradient(90deg,rgba(255,250,242,.12),transparent 38%,rgba(223,143,159,.10)),
        repeating-linear-gradient(
            90deg,
            rgba(24,58,103,.018) 0,
            rgba(24,58,103,.018) 1px,
            transparent 1px,
            transparent 90px
        );
}

.equipo-nav{
    border-bottom-color:rgba(24,58,103,.15);
}

.equipo-brand{
    color:var(--azul-oscuro);
}

.equipo-brand strong{
    color:var(--azul-oscuro);
}

.equipo-brand small{
    color:var(--cafe);
}

.equipo-nav-links a{
    color:var(--azul-oscuro);
}

.equipo-nav-links a:hover,
.equipo-nav-links a.active{
    color:var(--azul-oscuro);
    background:linear-gradient(135deg,var(--dorado-claro),var(--naranja));
    box-shadow:0 10px 26px rgba(232,173,53,.24);
}

.equipo-icono{
    border-color:var(--naranja);
}

.equipo-icono::before{
    background:linear-gradient(90deg,transparent,var(--naranja));
}

.equipo-icono::after{
    background:linear-gradient(90deg,var(--naranja),transparent);
}

.equipo-icono span{
    border-color:var(--naranja);
}

.equipo-titulo h1{
    color:var(--azul-oscuro);
    text-shadow:0 8px 28px rgba(91,47,34,.12);
}

.equipo-etiqueta i{
    background:linear-gradient(90deg,transparent,var(--naranja));
}

.equipo-etiqueta i:last-child{
    background:linear-gradient(90deg,var(--naranja),transparent);
}

.equipo-etiqueta strong{
    color:var(--cafe);
}

.card{
    background:var(--crema);
    border-color:rgba(24,58,103,.10);
    box-shadow:var(--sombra);
}

.cover{
    background:linear-gradient(135deg,var(--azul-oscuro),var(--azul-claro));
}

.img__back{
    background:linear-gradient(to top,rgba(16,44,82,.72),rgba(16,44,82,.04));
}

.description h2{
    color:var(--azul-oscuro);
}

.description p{
    color:#5a4b43;
    background:var(--crema-2);
    border-left-color:var(--rosa);
}

.boton-portada input{
    background:var(--azul-oscuro);
    color:var(--blanco);
}

.boton-portada input:hover{
    background:var(--naranja);
    color:var(--azul-oscuro);
    box-shadow:0 8px 18px rgba(232,173,53,.28);
}

.footer{
    background:var(--azul-oscuro);
    color:var(--blanco);
}
