.hero {
    position: relative;
    min-height: 90vh;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
}


.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.65;
    background: var(--principal-dark);
    z-index: 1;
}


.hero-contenido {
    position: relative;
    z-index: 2;
    color: white;
}


.hero-titulo {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}


.hero-texto {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 520px;
}


.hero-boton {
    background: var(--principal);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
}

.hero-boton:hover {
    background: #174a69;
}


.hero-lateral {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 70px;
    background: color-mix(in srgb, var(--principal-dark) 80%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-lateral span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
}


.acciones-rapidas {
    background: var(--principal-dark);
}

.acciones-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10%;
    padding: 14px 0;
}

.accion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: none;
}

.accion-icon {
    font-size: 18px;
}

.accion-item:hover {
    color: rgba(255, 255, 255, 0.7);
}

.accion-separador {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

/*=========================
   SOBRE NOSOTROS
========================= */

.sobre-nosotros {
    background: var(--blanco);
    padding: clamp(70px, 8vh, 110px) 0;
}


.sobre-etiqueta {
    color: var(--principal-light);
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 600;
}


.sobre-titulo {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    margin: 15px 0 25px 0;
    color: var(--principal-dark);
    line-height: 1.15;
}


.sobre-texto {
    color: var(--secundario);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 55ch;
}


.boton-historia {
    background: var(--principal);
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
}

.boton-historia:hover {
    background: var(--secundario);
    color: white;
}

/*=========================
   IMÁGENES
========================= */

.imagenes-sobre {
    position: relative;
    width: 100%;
    height: clamp(320px, 40vw, 460px);
}


.img-sobre {
    position: absolute;
    width: 42%;
    height: 85%;
    object-fit: cover;
    border-radius: 14px;
}


.img-sobre-1 {
    left: 8%;
    bottom: 0;
}


.img-sobre-2 {
    right: 0;
    top: 0;
}

/*=========================
   RESPONSIVE MÓVIL
========================= */

@media (max-width: 768px) {
    .imagenes-sobre {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        margin-top: 40px;
    }

    .img-sobre {
        position: relative;
        width: 100%;
        height: 240px;
    }

    .img-sobre-1,
    .img-sobre-2 {
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
}

/*=========================
   SECCIÓN SERVICIOS
========================= */

.servicios {
    background: #f4f6f8;
    padding: clamp(70px, 8vh, 110px) 0;
}

.servicios-titulo {
    font-size: clamp(28px, 2.8vw, 36px);
    font-weight: 700;
    color: #1c2b3a;
}

/*=========================
   TABS
========================= */

.servicios-tabs {
    border-bottom: 1px solid #e1e6ec;
    margin-bottom: 50px;
}

.servicios-tabs .nav-link {
    border: none;
    background: none;
    color: #6b7785;
    font-weight: 500;
    padding: 12px 20px;
}

.servicios-tabs .nav-link.active {
    color: #2d6cdf;
    border-bottom: 2px solid #2d6cdf;
}

/*=========================
   CONTENIDO
========================= */

.servicios-subtitulo {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1c2b3a;
}

.servicios-texto {
    font-size: 15px;
    line-height: 1.7;
    color: #5f6c7b;
    margin-bottom: 25px;
    max-width: 520px;
}



.servicios-lista {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.servicios-lista li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #4f5b67;
    font-size: 15px;
}

.icono-check {
    font-size: 20px;
    color: var(--principal-light);
}



.servicios-boton {
    background: var(--principal);
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
}

.servicios-boton:hover {
    background: var(--secundario);
    color: white;
}

/*=========================
   IMAGEN
========================= */

.servicios-img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 12px;
    object-fit: cover;
}

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

@media (max-width: 991px) {
    .servicios-contenido .row {
        text-align: center;
    }

    .servicios-texto {
        margin-left: auto;
        margin-right: auto;
    }

    .servicios-lista li {
        justify-content: center;
    }

    .servicios-img {
        margin-top: 20px;
        max-width: 380px;
    }
}


/*=========================
   METODOLOGÍA
========================= */

.metodologia{
    background:var(--blanco);
    padding:clamp(70px,8vh,110px) 0;
}



.metodologia-header{
    margin-bottom:60px;
}

.metodologia-etiqueta{
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    color:#2d6cdf;
}

.metodologia-titulo{
    font-size:clamp(28px,3vw,36px);
    font-weight:700;
    color:#1c2b3a;
    margin-top:10px;
}




.metodologia-card{
    background:#F8FAFC;
    border-radius:12px;
    padding:30px;
    border:1px solid #e4e8ee;
    height:100%;
    transition:all .25s ease;
}

.metodologia-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
}




.metodologia-icon{
    width:42px;
    height:42px;
    border-radius:8px;
    background:#135BEC1A;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
}

.metodologia-icon span{
    font-size:22px;
    color:#2d6cdf;
}




.metodologia-card h3{
    font-size:16px;
    font-weight:600;
    color:#1c2b3a;
    margin-bottom:12px;
}

.metodologia-card p{
    font-size:14px;
    line-height:1.6;
    color:#6b7785;
    margin-bottom:18px;
}

.metodologia-card a{
    font-size:14px;
    color:#2d6cdf;
    font-weight:500;
    text-decoration:none;
}

.metodologia-card a:hover{
    text-decoration:underline;
}

/*=========================
   COLABORACIÓN
========================= */

.colaboracion{
    background: #F8FAFC;
    padding:clamp(70px,8vh,110px) 0;
}




.colaboracion-etiqueta{
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    color:#2d6cdf;
    display:block;
    margin-bottom:10px;
}




.colaboracion-titulo{
    font-size:clamp(28px,3vw,36px);
    font-weight:700;
    color:#1c2b3a;
    margin-bottom:18px;
}




.colaboracion-subtitulo{
    font-size:16px;
    font-weight:600;
    color:#1c2b3a;
    margin-bottom:12px;
}




.colaboracion-texto{
    font-size:15px;
    line-height:1.7;
    color:#6b7785;
    max-width:520px;
}




.colaboracion-img-wrapper{
    border-radius:16px;
    overflow:hidden;
    max-height: 500px;
    box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

.colaboracion-img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position: top;
    display:block;
}


/*=========================
   PROYECTO DESTACADO
========================= */

.proyecto-destacado{

    background:
        linear-gradient(
            90deg,
            rgba(6,26,46,0.95) 0%,
            rgba(6,26,46,0.85) 45%,
            rgba(6,26,46,0.6) 70%,
            rgba(6,26,46,0.2) 100%
        ),
        url("/imagenes/paginas/index/proyectos-fondo.jpg");

    background-size:cover;
    background-position:center right;

    padding:clamp(90px,10vh,140px) 0;

    color:white;
}




.proyecto-etiqueta{
    font-size:12px;
    letter-spacing:1px;
    font-weight:600;
    color:#2d6cdf;
    display:block;
    margin-bottom:12px;
}




.proyecto-titulo{
    font-size:clamp(30px,3.5vw,44px);
    font-weight:700;
    margin-bottom:20px;
    line-height:1.15;
}




.proyecto-texto{
    font-size:15px;
    line-height:1.7;
    color:var(--light-grey);
    max-width:520px;
    margin-bottom:30px;
}




.proyecto-datos{
    display:flex;
    gap:40px;
    align-items:center;
    margin-bottom:35px;
}

.dato{
    display:flex;
    flex-direction:column;
    position:relative;
}

.dato:first-child{
    padding-left:18px;
}

.dato:first-child::before{
    content:"";
    position:absolute;
    left:0;
    top:4px;
    bottom:4px;
    width:3px;
    background:var(--principal-light);
}

.dato-label{
    font-size:11px;
    letter-spacing:1px;
    color:rgba(255,255,255,0.5);
    margin-bottom:4px;
}

.dato-valor{
    font-size:14px;
    font-weight:500;
}




.proyecto-boton{
    background:var(--blanco);
    color:var(--principal-dark);
    padding:10px 22px;
    border-radius:6px;
    font-weight:500;
}

.proyecto-boton:hover{
    background:transparent;
    color: var(--blanco);
    border: 1px solid var(--blanco);
}


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

@media (max-width:768px){

    .proyecto-datos{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

}

/*=========================
   PORTFOLIO
========================= */

.portfolio{
    padding:clamp(70px,8vh,110px) 0;
    background:var(--blanco);
}




.portfolio-header{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:40px;
}

.portfolio-etiqueta{
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    color:var(--principal-light);
}

.portfolio-titulo{
    font-size:clamp(28px,3vw,36px);
    font-weight:700;
    margin-top:8px;
    color:var(--principal-dark);
}

.portfolio-ver{
    font-size:14px;
    color:#2d6cdf;
    text-decoration:none;
    font-weight:500;
}

.portfolio-ver:hover{
    text-decoration:underline;
}




.portfolio-card{
    position:relative;
    display:block;
    border-radius:12px;
    overflow:hidden;
}




.portfolio-img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}




.portfolio-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.65) 100%
    );
}




.portfolio-texto{
    position:absolute;
    bottom:16px;
    left:18px;
    right:18px;
    color:white;
    font-size:14px;
    font-weight:500;
}




.portfolio-card:hover .portfolio-img{
    transform:scale(1.05);
}

.portfolio-img{
    transition:transform .35s ease;
}




@media (max-width:768px){

    .portfolio-header{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

}
