/*  
Theme Name: WP 2026
Theme URI: https://codeados.com/
Version: 1.0.0
Author: Codeados 
Author URI: https://codeados.com/
Description:  WP 2026
*/  
@import url("https://cdn.gestoapp.com/v3/style.css");

header, header > *, #logo { transition: all 0.3s ease; }
header { padding: 0; padding-top: 8px; padding-bottom: 8px; background: transparent; }
header.scroll { top: -100px; }
#logo { line-height: 0; display: block; max-width: 100%; width: 180px; }
header.scroll.fixed  #logo {  }

#navigation { margin-top: 5px; }
.container { width: 92%; max-width: 1440px; }
header.scroll #navigation {  }  
nav#navigation ul li a {  font-weight: 500;    padding: 4px 8px;    padding-top: 6px;  }
nav#navigation ul li a:hover { }
#lang-switch { display: inline-block; margin: 0 22px 0 0; padding: 0; list-style: none; vertical-align: middle; font-size: 15px; font-weight: 500; }
#lang-switch li { display: inline-block; margin: 0; }
#lang-switch li + li::before { content: "|"; margin: 0 6px; color: var(--gris); }
#lang-switch a { color: var(--grisalt); text-decoration: none; }
#lang-switch a:hover, #lang-switch .current-lang a { color: var(--corporativo1); }
@media screen and (min-width:1031px) {
    nav#navigation ul li a { font-size: 15px; color: var(--corporativo2); padding: 6px 14px; }
    nav#navigation ul li a:hover, nav#navigation ul li.current-menu-item > a { color: var(--corporativo1); text-decoration: none; }
}
a.trigger_menu {
    position: absolute;
    top: 2px;
    right: 0px;
    color: var(--corporativo2);
    background: transparent;
    padding: 0;
    height: 45px;
    width: 45px;
    line-height: 47px;
    border-radius: 50%;
    font-size: 24px;
    border: none;
}a.trigger_menu.opened {  color: var(--blanco); }
#navigationfooter { padding: 6px 0px; box-sizing: border-box; }
#navigationfooter ul { text-align: center; margin: 0; list-style: none; }
#navigationfooter ul li { text-align: left; margin-bottom: 0; display: inline-block; }
#navigationfooter ul li a { background: transparent; border-bottom: 1px solid rgba(255,255,255,.35);
    margin-bottom: 0; padding: 6px 0; font-size: 14px; margin-right: 24px; font-weight: 400;
    color: var(--blanco); display: inline-block; box-sizing: border-box; }
#navigationfooter ul li a:hover { text-decoration: none; border-bottom-color: var(--blanco); }

/* Footer: banda CTA sobre fotografía + contenido existente. */
#footer { position: relative; isolation: isolate; overflow: hidden; }
#footer > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
#footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 39 72 / 79%) 0%, rgba(16, 39, 72, .15) 40%, rgb(11 23 40 / 41%) 100%); }
#footer > span { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(90px, 13vw, 190px); background: var(--blanco); z-index: 0; clip-path: polygon(0% 0.000%, 100% 0.000%, 100.000% 25.000%, 98.214% 23.274%, 96.429% 21.695%, 94.643% 20.394%, 92.857% 19.483%, 91.071% 19.038%, 89.286% 19.096%, 87.500% 19.654%, 85.714% 20.663%, 83.929% 22.039%, 82.143% 23.665%, 80.357% 25.404%, 78.571% 27.108%, 76.786% 28.635%, 75.000% 29.854%, 73.214% 30.663%, 71.429% 30.994%, 69.643% 30.818%, 67.857% 30.151%, 66.071% 29.048%, 64.286% 27.603%, 62.500% 25.939%, 60.714% 24.195%, 58.929% 22.519%, 57.143% 21.052%, 55.357% 19.920%, 53.571% 19.216%, 51.786% 19.002%, 50.000% 19.294%, 48.214% 20.068%, 46.429% 21.259%, 44.643% 22.766%, 42.857% 24.462%, 41.071% 26.204%, 39.286% 27.843%, 37.500% 29.243%, 35.714% 30.284%, 33.929% 30.878%, 32.143% 30.976%, 30.357% 30.569%, 28.571% 29.691%, 26.786% 28.417%, 25.000% 26.854%, 23.214% 25.135%, 21.429% 23.404%, 19.643% 21.808%, 17.857% 20.482%, 16.071% 19.537%, 14.286% 19.054%, 12.500% 19.074%, 10.714% 19.594%, 8.929% 20.571%, 7.143% 21.923%, 5.357% 23.534%, 3.571% 25.269%, 1.786% 26.982%, 0.000% 28.527%, 0% 100.000%); -webkit-clip-path: polygon(0% 0.000%, 100% 0.000%, 100.000% 25.000%, 98.214% 23.274%, 96.429% 21.695%, 94.643% 20.394%, 92.857% 19.483%, 91.071% 19.038%, 89.286% 19.096%, 87.500% 19.654%, 85.714% 20.663%, 83.929% 22.039%, 82.143% 23.665%, 80.357% 25.404%, 78.571% 27.108%, 76.786% 28.635%, 75.000% 29.854%, 73.214% 30.663%, 71.429% 30.994%, 69.643% 30.818%, 67.857% 30.151%, 66.071% 29.048%, 64.286% 27.603%, 62.500% 25.939%, 60.714% 24.195%, 58.929% 22.519%, 57.143% 21.052%, 55.357% 19.920%, 53.571% 19.216%, 51.786% 19.002%, 50.000% 19.294%, 48.214% 20.068%, 46.429% 21.259%, 44.643% 22.766%, 42.857% 24.462%, 41.071% 26.204%, 39.286% 27.843%, 37.500% 29.243%, 35.714% 30.284%, 33.929% 30.878%, 32.143% 30.976%, 30.357% 30.569%, 28.571% 29.691%, 26.786% 28.417%, 25.000% 26.854%, 23.214% 25.135%, 21.429% 23.404%, 19.643% 21.808%, 17.857% 20.482%, 16.071% 19.537%, 14.286% 19.054%, 12.500% 19.074%, 10.714% 19.594%, 8.929% 20.571%, 7.143% 21.923%, 5.357% 23.534%, 3.571% 25.269%, 1.786% 26.982%, 0.000% 28.527%, 0% 100.000%); }
#footer > section { position: relative; padding: 150px 0 40px; }
#footer > .container { position: relative; z-index: 1; }
#footer > .container img { filter: brightness(0) invert(1); max-width: 100%; height: auto; margin-bottom: 15px; }
#footer ul { margin: 0; padding: 0; list-style: none; }
#footer #footernav li, #footer #footerservices li, #footer #footercontact li { margin-bottom: 8px; }
#footer #footernav a, #footer #footerservices a, #footer #footercontact a { color: var(--blanco); font-size: 15px; text-decoration: none; }
#footer #footernav a:hover, #footer #footerservices a:hover, #footer #footercontact a:hover { color: var(--corporativo3); }
#footer > section .container { position: relative; z-index: 1; }
#footer > section h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; max-width: 640px; color: var(--blanco); margin: 10px 0 0; text-shadow: 0 2px 18px rgba(16,39,72,.45), 0 1px 3px rgba(11,23,40,.35); }
#footer > section p.h6 { letter-spacing: .12em; color: var(--blanco); margin: 0; }
#footer > section .btn.primary { background: var(--corporativo1); box-shadow: none; }
#footer > section .btn.primary:hover { background: var(--corporativo1alt); }
#footer > section .btn:focus-visible { outline: 2px solid var(--blanco); outline-offset: 4px; }
@media screen and (min-width:1031px) {
    #footer > section { padding: 130px 0 40px; }
    #footer > section .container { display: flex; align-items: flex-end; justify-content: space-between; }
    #footer > section .col { width: auto; }
    #footer > section .col.eight { flex: none; text-align: right; }
}

@media screen and (max-width:1200px) {
    nav#navigation ul li a { }
}
@media screen and (max-width:1030px) {
    nav#navigation { background: var(--corporativo2); margin: 0; }
    nav#navigation ul { text-align: left; }
    nav#navigation ul li a { font-size: 25px; }

    #navigationfooter ul li {         display: block;
        width: 100%;
        text-align: center;  }
    #logo { max-width: 240px; }
    
    .tabletmb20 { margin-bottom: 20px !important; }
 }
@media screen and (max-width:480px) {
    
}

/* Hero (.bg_home): portada y, con .bg_page, cabecera de páginas interiores. Movido desde page-landpage.php. */
.bg_home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--blanco);
    color: var(--negroalt);
    padding: 80px 0;
}
.bg_home > img { display: none; }
.bg_home > .container { z-index: 1; }
.bg_home .jumbotitle { margin: 18px 0; line-height: 1.02; font-weight: 400; }
.bg_home .jumbotitle em { display: block; font-weight: inherit; }
.bg_home p.colorprimary { font-size: 16px; line-height: 1.6; letter-spacing: .12em; }
.bg_home p.fsize18 { max-width: 510px; line-height: 1.5; margin: 18px 0 22px; }
.bg_home .btn.primary { background: var(--corporativo1); box-shadow: none; }
.bg_home .btn.primary:hover { background: var(--corporativo1alt); }
.bg_home .btn:focus-visible { outline: 2px solid var(--corporativo2); outline-offset: 4px; }

@media screen and (min-width: 1031px) {
    .bg_home { margin-top: 68px; padding: 42px 0 38px; min-height: 510px; } 
    .bg_home .col.ten { padding: 0; }
    .bg_home .jumbotitle { font-size: clamp(50px, 4.6vw, 74px); letter-spacing: -.025em; }
    .bg_home .jumbotitle em { white-space: nowrap; }
    .bg_home p.colorprimary { margin: 0 0 18px; }
    .bg_home p.fsize18 { max-width: 48vw; width: 510px; }
    .bg_home .btn { margin: 0; padding: 15px 26px; font-size: 14px; }
    .bg_home > img.bg_image {
        display: block;
        position: absolute;
        inset: 0 0 0 auto;
        width: 50%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: right center;
        border-radius: 42% 0 0 0 / 45% 0 0 0;
        z-index: -2;
    }
    .bg_home > img:not(.bg_image) {
        display: block;
        position: absolute;
        left: 46%;
        bottom: -7%;
        width: 23%;
        height: auto;
        max-width: 360px;
        transform: rotate(-12deg);
        z-index: -1;
        pointer-events: none;
    }
}

@media screen and (min-width: 761px) and (max-width: 1030px) {
    .bg_home {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 68px;
        padding: 32px 0 0;
    }
    .bg_home > .container { order: -1; width: 90%; }
    .bg_home .col.ten { padding: 0; }
    .bg_home .jumbotitle {
        font-size: clamp(46px, 6vw, 58px);
        letter-spacing: -.025em;
    }
    .bg_home p.colorprimary { margin: 0 0 18px; font-size: 15px; }
    .bg_home p.fsize18 { max-width: 580px; }
    .bg_home .btn { margin: 0; padding: 15px 26px; font-size: 14px; }
    .bg_home > img.bg_image {
        display: block;
        align-self: flex-end;
        width: 90%;
        height: clamp(400px, 50vw, 500px);
        object-fit: cover;
        object-position: right center;
        border-radius: 25% 0 0 0 / 55% 0 0 0;
    }
    .bg_home > img:not(.bg_image) {
        display: block;
        position: absolute;
        left: 0;
        bottom: -20px;
        width: 200px;
        height: auto;
        transform: rotate(-12deg);
        z-index: 1;
        pointer-events: none;
    }
}

@media screen and (max-width: 760px) {
    .bg_home {
        display: flex;
        flex-direction: column;
        margin-top: 68px;
        padding: 24px 0 0;
    }
    .bg_home > .container { order: -1; width: 88%; position: relative; z-index: 2; }
    .bg_home .col.ten { padding: 0; margin-bottom: 90px !important; }
    .bg_home p.colorprimary {
        margin: 0 0 14px;
        font-size: clamp(12px, 3.65vw, 15px);
        line-height: 1.5;
        letter-spacing: .12em;
    }
    .bg_home .jumbotitle {
        margin: 0 0 18px;
        font-size: clamp(36px, 12.8vw, 60px);
        line-height: 1.04;
        letter-spacing: -.025em;
    }
    .bg_home .jumbotitle em { max-width: 11ch; white-space: normal; }
    .bg_home p.fsize18 { margin: 0 0 22px; max-width: 100%; font-size: 18px; line-height: 1.5; }
    .bg_home .btn {
        display: inline-block;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        width: auto;
        box-sizing: border-box;
        margin: 0;
        padding: 9px 12px;
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        text-align: left;
    }
    .bg_home .btn i { flex-shrink: 0; }
    .bg_home > img.bg_image {
        display: block;
        width: 100%;
        height: clamp(340px, 100vw, 480px);
        margin-top: -30vw;
        object-fit: cover;
        object-position: 35% center;
        border-radius: 100% 0 0 0 / 55% 0 0 0;
    }
    .bg_home > img:not(.bg_image) {
        display: block;
        position: absolute;
        left: -14%;
        bottom: -12px;
        width: 55%;
        max-width: 280px;
        height: auto;
        transform: rotate(-12deg);
        z-index: 1;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg_home .btn { transition: none; }
    .bg_home .btn:hover { transform: none; }
}

/* Franja azul claro de corte (portada y páginas interiores). Movido desde page-landpage.php. */
.bg_sec2 { background-color: #f5f9fb; }
/* Brillo azul muy suave que recorre la franja en bucle lento. Sin movimiento con reduced-motion. */
.bg_sec2 {
    background-image: linear-gradient(110deg, #f5f9fb 0%, var(--grisclaroalt) 30%, rgba(208,231,242,.6) 50%, var(--grisclaroalt) 70%, #f5f9fb 100%);
    background-size: 250% 100%;
    animation: bg_sec2_brillo 18s ease-in-out infinite alternate;
}
@keyframes bg_sec2_brillo {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
/* Sublínea: destello azul que recorre el borde inferior y descansa fuera de la vista. */
.bg_sec2 { position: relative; overflow: hidden; }
.bg_sec2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--corporativo3) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: bg_sec2_linea 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bg_sec2_linea {
    0%        { transform: translateX(-100%); }
    55%, 100% { transform: translateX(340%); }
}
@media (prefers-reduced-motion: reduce) {
    .bg_sec2 { animation: none; }
    .bg_sec2::after { display: none; }
}

/* Variante compacta del hero para páginas interiores (includes/page-hero.php). */
.bg_page + .sec_pagina { background-image: linear-gradient(to bottom, #d0e7f2 0%, #ffffff 30%); background-repeat: no-repeat; background-size: 100% 600px; }
.bg_page p.colorprimary a { color: inherit; }
.bg_page p.colorprimary a:hover { color: var(--corporativo2); }
@media screen and (min-width: 1031px) {
    .bg_page { min-height: 400px; padding: 36px 0; }
    .bg_page .jumbotitle { font-size: clamp(44px, 3.8vw, 60px); }
    .bg_page > img:not(.bg_image) { width: 18%; max-width: 280px; }
}
@media screen and (min-width: 761px) and (max-width: 1030px) {
    .bg_page > img.bg_image { height: clamp(300px, 40vw, 380px); }
    .bg_page > img:not(.bg_image) { width: 160px; }
}
@media screen and (max-width: 760px) {
    .bg_page .col.ten { margin-bottom: 70px !important; }
    .bg_page .jumbotitle { font-size: clamp(36px, 11vw, 50px); }
    .bg_page > img.bg_image { height: clamp(260px, 80vw, 380px); }
}
