/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@import 'css/bootstrap.min.css';

@import 'https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sen:wght@400..800&display=swap';
@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css';

:root {
    --blanco:#fff;
    --negro:#000;
    --bg:#252525;
    --color1:#0099DA;
    --color2:#000000;
    --color3:#F4F4F4;
    --color4:#a5a5a5;
    --gris:#989898;
    --titulo:#EBEBEB;
    --naranjo:#E94E1D;
    --morado:#F91DFF;
    --bg_post:#0F0F0F;
    --bg_pasos:#0F0F0F;
    --titulo_post:#B7A900;
}

/* Normalización de Gutenberg */
/* Bloques de columnas */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-default);
}

.wp-block-column {
    padding: calc(var(--gap-default) / 2);
}

/* Compatibilidad con clases de contenedor */
.wp-block-columns.container,
.wp-block-columns.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.wp-block-columns.container .wp-block-column,
.wp-block-columns.container-fluid .wp-block-column {
    padding: 0 calc(var(--gap-default) / 2);
}

/* Compatibilidad adicional en el editor de bloques */
.block-editor .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-default);
}

.block-editor .wp-block-column {
    flex: 1 1 auto;
    padding: calc(var(--gap-default) / 2);
}

/* Clases personalizadas para diferentes gaps */
.gap-sm {
    gap: var(--gap-sm);
}

.gap-lg {
    gap: var(--gap-lg);
}

/* Contenedores y depuración visual */
.debug .wp-block-columns {
    border: 1px dashed red;
}

.debug .wp-block-column {
    border: 1px solid blue;
}

.debug .container {
    background-color: rgba(255, 0, 0, 0.2);
}

.debug .container-fluid {
    background-color: rgba(0, 0, 255, 0.1);
}

.debug .row {
    border: thin dashed red;
}

.debug [class*='col-'] {
    border: thin solid green;
}

.debug footer {
    background-color: rgba(0, 255, 0, 0.2);
}

.debug .wp-block-columns[class~="container"] .row {
    padding-left: 0;
    padding-right: 0;
    background-color: rgba(0, 180, 120, 0.2);
}
.wrapper{
    font-family: "Sen", sans-serif;
    background-color: var(--bg);
    color:var(--blanco);
    overflow-x: hidden;
}
.wrapper a{

}
.wrapper p strong{
    color: var(--naranjo);
}
.wrapper .videobanner{
    min-height: 85vh;
}
.wrapper .header-bar{
    position: fixed;
    left: 20px;
    top:16px;
    width: CALC(100% - 40px);
    z-index: 20;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-filter: contrast(.958);
    filter: contrast(.958);
    background-color: rgba(0,0,0,0.5);
    height: 74px;
    padding: 0px 10px;
}
.wrapper .menu-item a{
     text-decoration: none;
    color: var(--blanco);
    font-size: 12px;
    font-weight: 600;
    
}
.wrapper .active a{
    color:var(--naranjo) !important;
}
.wrapper .menu-item{ 
    margin-right: 28px; 
}
.wrapper .menu-item:last-child {
    margin-right: 18px; 
} 

.caja{
    max-width: CALC(100% - 400px);
    margin: 0 200px;
}

.page-contacto .caja{
    max-width: CALC(100% );
    margin: 0 200px;
}
.pre-caja{
    max-width: CALC(100% - 400px);
    margin: 0px 200px 100px;

}
.post-proyecto .pre-caja .entry-header{
    margin-top: 100px;
}
.page-nosotros .pre-caja .entry-header {
    margin-top: 0px;
}
.pre-caja h2{
    color:var(--gris);
    font-size: 64px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}
.pre-caja .categorias, .pre-caja .categorias a{
    color:var(--blanco);
    text-decoration: none;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}
.pre-caja .categorias{
    margin-bottom: 42px;
}
.archive{
    padding-top: 100px;
}
.site-nosotros h2, .site-page h2, .page-metodologia h2 , .page-contacto h2{
     font-size: 64px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 0;
}

.archive-proyectos h1 , .page-metodologia h1, .page-contacto h1{
font-size: 64px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}
.archive-proyectos h3 , .page-metodologia h3, .site-nosotros h3 ,.page-contacto h3{
font-size: 48px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}
.wp-block-post-content h1, .wp-block-post-content h2{
    font-size: 64px;
    font-style: normal;
    font-weight: 800;
}
.caja-interior{
    padding: 50px;
}
.seccion{
    
    width: 100%;
    margin: 0;
}
.m-60{
   min-height: 60vh;
}
.destacado{
    padding: 120px 0;
}
.destacado h2{
    font-weight: 800;
    font-size: clamp(48px, 6vw + 1rem, 67px);
}
.site-logo{
    min-height: 50px;
    min-width: 140px;
}
.btn-base{
font-family: "Open Sans";
    background-color: var(--blanco);
    color: var(--negro) !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 9px;
    padding: 28px 25px 28px 67px;
    min-width: 271px;
    
    display: inline-flex;
    margin: auto;
}
.post-mini .btn-base{
    padding: 6px 14px;
    font-size: 11px;
    line-height: 20px !important;
    font-style: normal;
    font-weight: 700;
    text-align: center;
    min-width: 130px;
}
.post-mini .btn-base .texto{
    margin: auto;
    display: block;

}
.post-mini .btn-base svg {
    margin-left: 5px;
    min-height: 20px;
}
.block-editor .btn-base{
    border:1px solid #ccc;
}
.mitades{
    background-color: var(--negro);
    position: relative;
}

.block-editor .mitades{
    background-color: transparent;
}
.mitades .fondo{
    position: absolute;
    top:0;
    width: 50%;
    background-size: cover;
}
.img-top-width{
    width: 100%;
    height: auto;
    margin: 45px 0;
}
.int{
    right: 0;
    
}
.end{
    left: 0;
}
.mitades .caja{
    z-index: 2;
}
.contenido-mitad{
    margin: 0 0 50px 50px;
}
.contenido-mitad strong{
    font-size: 24px;
    font-weight: 800;
}
.debug .contenido-mitad{
    border:thin dashed red;
}
.caja-mitad{
    margin: 0px;
}

.caja-mitad .big-contenido{
    
    width: CALC(100% + 50px);
}
.caja-mitad .titulo-mitad{
    font-size: 24px;
    font-weight: 800;
    color: var(--naranjo);
}
.caja-mitad .big-contenido h2{
    font-size: 38px;
    line-height: 38px;
    font-weight: 800;
}
.caja-mitad .big-contenido h3{
    font-size: 30px;
    line-height: 30px;
    font-weight: 800;
}

.post-proyecto p{
    font-family: "Open Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
}
.post-proyecto p strong,
.post-proyecto p b{
    color:var(--naranjo);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.post-proyecto .wp-block-heading{
    color:var(--titulo);
    font-size: 48px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 60px;
}
.post-proyecto h5{
    font-size: 28px !Important;
    margin-top: 20px;
}
.post-proyecto h6{
    font-size: 20px !Important;
    margin-top: 20px;
}
.post-proyecto .wp-block-video{
    margin: 84px 0 50px;
}
.post-proyecto .wp-block-cover{
    margin-top: 100px;
}
.banner-proyecto{
    min-height: 70vh;
    background-position: center;
    background-size: cover;
}
.page-metodologia .banner-proyecto{
    margin-bottom: 100px;
}
.page-metodologia  h6{
    margin: 17px 0 61px;
}
.page-nosotros .banner-proyecto{
    margin-bottom: 100px;
}
.banner-blog{
    min-height: 85vh;
    background-position: center;
    background-size: cover;
    margin-bottom: 90px;
}
.img-cover{
    object-fit: cover;
    width: 100%;
}
.fotos-proyecto{
    margin: 36px 0 72px;
}
.fotos-proyecto > div:first-child img {
    padding-right: 18px;
    padding-left: 0;
}

.fotos-proyecto > div:last-child img {
    padding-left: 18px;
    padding-right: 0;
}
.bg-cover-min-height{
    min-height: 70vh;
    
}
.post .caja{
    background-color: var(--bg_post);
    padding: 0;
}

.compartir{
	background-color: var(--bg_post);
    padding: 32px;
    margin-bottom: 50px
}
.post .caja:nth-child(1){
    padding: 67px 0 0;
}
.post .caja h1,
.post .caja h2,
.post .caja h3,
.post .caja h4 {
    padding: 0 32px;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.post .caja p{
    padding: 15px 32px;
    font-family: "Open Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 0;
}
.entry-title{
    color:var(--titulo_post);
    font-family: Sen;
    font-size: 64px !important;
    font-style: normal;
    font-weight: 800 !important;
    line-height: normal;
    margin-bottom: 60px;
}
.blog .entry-title{
    color:var(--morado);
}
.post .caja .wp-block-image{
    text-align: center;
}
.post .caja .wp-block-image img{
    margin: auto;
    width: 100%;
    object-fit: cover;
}
.post .wp-caption-text{
    background-color: var(--blanco);
    margin: 0;
    color: #000;
    font-family: "Open Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    padding: 21px;
}
.img-blog{
  aspect-ratio: 363/196;
  object-fit: cover;
}
.permalink_post, .permalink_post:hover{
    color:var(--naranjo);
    font-family: Sen;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-decoration: none;
    padding: 26px 18px 0;
    margin-bottom: 18px;
    display: block;
}
.permalink_proyect, .permalink_proyect:hover{
      color:var(--naranjo);
    font-family: Sen;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-decoration: none;
    padding: 26px 44px 5px;
    display: block;
}
.proyect-card .categorias{
    padding: 0px 44px 10px;
    font-size: 14px;
}
.except{
    padding: 0 18px 14px;
    font-family: "Open Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

}
.except-desc{
    text-overflow: ellipsis;
    min-height: 80px;

}
.post-mini{
    display: flex;
    min-height: 280px;
    background-color: var(--negro);
}
.proyect-mini{
    display: flex;
    min-height: 150px;
    background-color: var(--negro);
}

.blog-caja{
    max-width: CALC(100% - 400px);
    margin: auto;
}
.post-blog ul{
    font-family: "Open Sans";
    font-size: 15px;
    margin: 0 15px 0 0;
}
.post-blog ul li{
    margin-bottom: 15px;
}
.post-blog .wp-block-heading{
    margin-top: 35px;
}
.post-blog .wp-block-embed iframe{
    padding: 0;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
}
.wp-block-embed-vimeo iframe, .wp-block-embed-vimeo .wp-block-embed__wrapper{
    padding: 0;
    margin: 0 auto !Important;
    aspect-ratio: 16 / 9;
    height: auto;
}
.blog-zone .row{
    --bs-gutter-x: 10px;

}
.blog-card, .proyect-card{
        margin-bottom: 36px;
}
.proyect-card{

}
.post-mini .text-end{
  text-align: right !important;
  padding: 0 18px 18px;
}

.blog{
    margin-bottom: 96px;
}
.page-nosotros{
    overflow-x: hidden;
}
.page-nosotros .wp-block-list {
    padding: 0 0 0 15px 0 ;

}

/* ============================================
   ESTILOS PARA GRUPOS DE PÁRRAFOS
   Funciona con las clases añadidas por tu JavaScript
   ============================================ */

/* Estilo para el PRIMER párrafo de cada grupo */
.caja.parrafo.primer-parrafo-grupo {
    padding-top: 90px !important;
}

/* Estilo para el ÚLTIMO párrafo de cada grupo */
.caja.parrafo.ultimo-parrafo-grupo {
    margin-bottom: 45px !important;
}

/* Opcional: Ajuste para el primer párrafo dentro del grupo */
.caja.parrafo.primer-parrafo-grupo p {
    margin-top: 0; /* Ajusta según necesites */
}

/* Opcional: Para que los párrafos intermedios no tengan márgenes extra */
.caja.parrafo:not(.primer-parrafo-grupo):not(.ultimo-parrafo-grupo) {
    margin-top: 0;
    margin-bottom: 0;
}


/*   VIDEO PLAYER */
figure{
    margin: 0;
}
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Relación 16:9 */
    background: #000;
    cursor: pointer;
}
.post-blog  .video-container{
    margin-top: 90px;
}
.wp-block-embed iframe{
    width: 100%;
    margin-top: 90px;
}
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.play-button svg {
    width: 200px;
    height: 200px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.play-button:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.1));
}


.video-thumbnail {
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover {
    opacity: 0.9;
}

.play-button {
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}


/* Estado cuando el video está reproduciéndose */
.video-container.playing .play-button {
    opacity: 0;
    visibility: hidden;
}
.clientes{
    color:var(--negro);
    background-color: var(--blanco);
    padding: 90px 0;
}
.clientes_data{
    margin-top: 82px;
}
.clientes_data img{
    max-width: 100px;
}
.equipo , .premios{
    margin-top: 50px;
    margin-bottom: 90px;
    font-family: "Open Sans";
}
.premios a{
    color: var(--blanco);;
    text-decoration: none;
}
.equipo h5{
    margin-top: 5px;
    font-size: 12px;
    line-height: 14px;
    font-weight:800;
    margin-bottom: 3px;
}
.equipo p, .premios p{
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.premios {
    margin-top: 50px;
    margin-bottom: 90px;
    font-family: "Open Sans";
}

.proyecto-p{
    font-size: 12px;
    line-height: 16px;
    font-weight: 800 ;
    margin-bottom: 0;
    margin-top: 15px;
}
.premio-img{
    object-fit: cover;
    aspect-ratio: 1/1;
}
.link_rrss{
    margin-bottom: 100px;
}
.link_rrss .iconbox, .block-editor .iconbox{
    background-color: var(--blanco);
    color: var(--negro);
    aspect-ratio: 1 / 1;
    width: 100px;
    height: 100px;
    display: inline-block;
    text-decoration: none;
    padding: 10px;
    border-radius: 20px;
    margin-right: 55px;
}
.block-editor .iconbox{
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.link_rrss .iconbox i{
    font-size: 80px;
    margin: auto;
}
.lista-proyectos{
    
}




.proyectos-bloque{
    margin: 30px 0;
}
.grilla-dense {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 300px;
    gap: 9px;
    margin: 0 auto 40px;
}

.proyecto-celda {
    position: relative;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.proyecto-celda img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.proyecto-ano{
    font-weight: 600;
}
.proyecto-celda .proyecto-content{
    color:var(--blanco);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    opacity: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 27px;
    width: CALC(100% - 54px);
    margin: 0 27px 27px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-filter: contrast(.958);
    filter: contrast(.958);
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    font-weight: 800;
}
.proyecto-content p{
    text-transform: capitalize;

}
.proyecto-celda .proyecto-content h3{
    /*color: var(--naranjo);*/
    color: var(--blanco);
    font-size: 24px;
    font-style: normal;
    font-weight: 800;

}
.proyecto-celda:hover .proyecto-content{
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* IMPORTANTE: Asegurar que hidden no se muestre */
.proyecto-celda.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Elementos full */
.proyecto-full {
    min-height: 409px;
}

/* Elementos mitad */
.proyecto-mitad {
    min-height: 200px;
}





/* Filtros */
/* Select personalizado */
.custom-select {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    
}

.select-selected {
    max-width: 250px;
    background-color: #000;
    padding: 5px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}
.custom-select .titulo{
    float: left;
    padding: 5px 0 0 0;
    margin-right: 10px;
}
.select-selected:hover {
    border-color: #333;
}

.select-selected.active {
    border-color: #333;
    border-radius: 8px 8px 0 0;
}

.select-selected svg {
    transition: transform 0.3s ease;
}

.select-selected.active svg {
    transform: rotate(180deg);
}

.select-items {
    transform: translateX(130px);
    max-width: 250px;
    position: absolute;
    background-color: #fff;
    border-top: none;
    border-radius: 0 0 8px 8px;
    width: 100%;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #000000;
}

.select-items.active {
    max-height: 300px;
    overflow-y: auto;
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background-color: #ccc;
}

.select-option.selected {
    background-color: #B7A900;
    color: #fff;
}

/* Select nativo oculto */
.hidden-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pasos{
    background-color: var(--bg_pasos);
    margin-bottom: 81px;
}
.post-blog .pasos{
    margin-bottom: 0;
}


.pasos .detalle{
    padding: 41px 21px 61px;
}
.pasos h2{
    color:var(--morado);
}
.detalle .col{
    margin-bottom: 61px;
}
.detalle .col:nth-child(4n+2),
.detalle .col:nth-child(4n+3) {
    border-left: 1px solid #fff;
}

.detalle .col:nth-child(4n+5),
.detalle .col:nth-child(4n+6) {
    border-left: 1px solid #fff;
}
.img-pasos{
    object-fit: cover;
    aspect-ratio: 553/641;
    width: 100%;
}

/* Para aplicar bordes a la columna 5 */

.pasos h3{
    font-size: 24px;
    font-weight: 800;
    padding: 11px 0 0 13px ;

}
.wp-block-post-content .pasos{
    background-color: #fff;

}
.post .mitades{
    background-color:var(--bg_post);
}
.mitades{
    padding: 70px 0;
    min-height: 609px;
}
.post-blog .mitades {
    padding: 70px 0 0; 
    min-height: auto;

}

.relacionados{
    margin-top: 32px;
}
.relacionados .entry-header{
    min-height: 80px;
}
.relacionados .contenido{
    margin: 10px 0 10px;
    min-height: 150px;
}
.social-share-section{
    float: right;
    width: 350px;
}
.social-share-section h4{
    transform: translateX(120px);

}
.share-buttons-grid{
    margin-top: 35px;
}
.share-button{
     color: var(--negro);
    background-color: var(--blanco);
    padding: 6px 6px;
    border-radius: 100%;
    width: 32px;
    height: 32px;
    display: inline-block;
    text-decoration: none;
}
.relacionados h3{
    font-weight: 800;
    color: var(--color4);
    margin-bottom: 20px;
    font-size: 24px;
}
.img-post-mini{
    aspect-ratio: 364/196;
    object-fit: cover;
    width: 100%;
}
.proyectos-relacionados{
    margin: 64px auto;
}
.proyectos-relacionados h2{
    font-size: 24px;
    font-weight:800 ;
    margin-bottom: 46px;
    color:var(--gris);
}
.slider-testimonios{
    margin-top: 150px;
    margin-bottom: 150px;
}
.slider-testimonios .permalink_proyect{
    padding: 0;
}
.slider-testimonios img{
        aspect-ratio: 364/196;
    object-fit: cover;
    width: 100%;
}
.slider-testimonios .contenido-slider{
    font-size: 16px;

    background-image: url("img/comillas_gris.svg");
    background-repeat: no-repeat;
    background-position: 10px 10px;
    padding: 30px 30px ;
    
    
}
.slider-testimonios h3{
    color: var(--naranjo);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0;
}
.slider-testimonios p{
    font-size: 15px !important;
}
.slider-testimonios .desc{
    margin-bottom: 27px;
}
.post-link h4 a{
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color:var(--naranjo) !important;

}
.testimonios{
    margin-top: 137px;
    margin-bottom: 137px; 
}
.testimonios h2{
    font-weight: 800;
    font-size: 46px;
    color:var(--titulo_post);
}
.testimonio-titulo h3{
    font-weight: 800;
    font-size: 24px;
}
.testimonio-titulo p{
    font-size: 14px !important;
}
.testimonio-imagen img{
    object-position: center;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
}

.testimonio-texto{
    /*background-image: url(img/comillas.svg);*/
    background-repeat: no-repeat;
    background-position: 90px 0px;
    padding: 20px 0 0 0;
    /* display: block; */
    /* height: 100%; */
    margin: -30px 0;
}

.lnk_bloque{
    font-weight: 800;
    text-align: right;
}
.lnk_bloque svg{
    float: right;
    margin-right: 34px;
}
.lnk_bloque a{
    font-size: 32px;
    line-height: 32px;
    color: var(--titulo_post);
    text-decoration: none;
    margin-left: 110px;
    margin-right: 34px
}
.premio{
    margin-top: 18px;
}
.premio img{
    max-height: 26px;
    margin-right: 15px;
}
.premio .titulo-premio{
    font-size: 13px;
    font-weight: 800;
}
.premio p{
       font-size: 13px;
}
.call{
    display: inline-block;
    margin: 7px 0 0;
}
.contenido-safe{
    min-height: 30vh;
    padding: 200px 0;
    text-align: center;
}
/*** CF7 **/

 
/* Contact Form 7 */
.wpcf7 form{
    width: 100%;
    margin-bottom: 104px;
    padding: 31px 27px ;
    background-color: var(--bg_post);
}
.wpcf7 label{
    width: 100%;
}
.wpcf7 input,
.wpcf7 textarea {
    background-color: transparent;
    box-shadow: none;
    border:1px solid var(--blanco);
    width: 100%;
    padding: 15px 23px;
    margin-top: 15px;
    min-height: 66px;
    color:var(--blanco);
}

.wpcf7 input::placeholder {
  color: var(--blanco);
}

.wpcf7 textarea::placeholder {
  color: var(--blanco);
  font-size: 15px;
}
.wpcf7 textarea {
    outline: none;
    resize: none;
    font-size: 12px;
    overflow: auto;
    max-height: 200px;
}

.wpcf7 input[type="submit"] {
    background-image: url(img/send.svg);
    background-repeat: no-repeat;
    background-position: CALC(100% - 20px) 10px;
    background-size: 15px;
    width: auto;
    background-color: var(--blanco);
    border: none;
    color: var(--negro);
    font-weight: 700;
    font-family: "Open Sans";
    padding: 6px 40px 6px 25px;
    min-height: initial;
    line-height: 10px;
    text-align: left;
    font-size: 11px;
    line-height: 20px !important;
    cursor: pointer;
    border-radius: 9px;
    float: right;
    display: inline-block;
}
    
    
    
    
    
    

.footer{
    background-color: var(--titulo);
    min-height: 470px;
    color: var(--negro) !important;
    padding-top: 50px;
}

.footer-logo{
    max-width: 270px;
    margin-bottom: 22px;
}
.footer .footer-address{
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 22px;
}
.footer .footer-address a{
    text-decoration-line: underline !Important;
    color:var(--negro);
}
.footer-social a{
    color: var(--negro);
    text-decoration: none;
    background-color: var(--blanco);
    padding:0 2px;
    height: 25px;
    width: 25px;
    margin-right: 13.75px;
    border-radius: 26px;
    text-align: center;
    display: inline-block;
    font-size: 18px;
}
.footer-social a i{
    margin: auto;
}
.footer-menu ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-menu li{
    margin-bottom: 13px;
}
.footer-menu a{
    color: var(--negro) !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}
.footer-menu .active a{
    color:var(--naranjo) !important;

}
.navbar-light .navbar-toggler{
    border-color: transparent;
}
.navbar-light button:focus:not(:focus-visible) {
    outline: 0;
    border: none;
    box-shadow: none;
}
.wrapper .is-style-mobile-only{
    display: none !important;
}


/* ===============================================
   GALERÍA GUTENBERG CORREGIDA
   =============================================== */

.galeria-wrapper figure{
    margin: 4px;
}

.bg-center .fondo{
    background-position: center !Important;
}

@media (max-width: 1024px) {
  
    .caja{
    max-width: CALC(100% - 240px);
    margin:0 120px;
    }
    .pre-caja{
    max-width: CALC(100% - 240px);
    margin: 57px 120px 100px;
    }
    .mitades .fondo{
    position: relative;
    left: 0;
    top:0;
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    }
}

@media only screen and (max-width: 710px) and (min-width: 320px) {
    /** MENU COLAPSADO **/
    .navbar-collapse{
     -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        -webkit-filter: contrast(.958);
        filter: contrast(.958);
        background-color: rgba(0, 0, 0, 0.5);
        padding: 30px 0;
        transform: translateY(10px);
        border-radius: 10px;
        width: CALC(100% + 20px);
        text-align: center;
    }
    .navbar-collapse .menu-item {
        margin: auto;
        
    }
    .navbar-collapse .menu-item a{
        text-align: center;
        font-size: 24px;
    }
    .navbar-collapse .menu-item:last-child {
        margin-right: auto;
    }
    .lnk-footer{
        margin-bottom: 10px;
    }
    .wrapper .videobanner {
        min-height: 100vh;
    }
    .wrapper .menu-item, .wrapper .menu-item:last-child{
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    .mitades{
        padding: 0;
    }
    .destacado h2 {
        margin-bottom: 120px;
    }
    .caja-mitad{
        padding: 70px 0;
    }
    .caja-mitad .big-contenido{
        width: 100%;
    }
    .contenido-mitad strong{
        display: block;
        margin-bottom: 45px ;
    }
    .contenido-mitad{
        margin-bottom: 70px !important;
    }
    .titulo-categoria{
        font-size: 12px;
    }
    .owl-carousel .owl-stage-outer{
        width: 100%;
    }

    .proyecto-celda .proyecto-content {
    padding: 10px ;
    width: CALC(100% - 20px);
    margin: 0 10px 27px;
    border-radius: 10px;
    }
    .proyecto-celda .proyecto-content h3 {
        font-size: 20px;
        font-weight: 800;
    }
    .icon-cat{
        object-fit: contain;
        height: 30px;
        width: 30px;
    }
    .banner-proyecto {
        min-height: 50vh;
        background-position: center;
        background-size: cover;
    }
    .pre-caja .entry-title, .site-nosotros h2, .site-page h2, .page-metodologia h2, .archive-proyectos h1 , .page-metodologia h1, .pre-caja h2{
        font-size: 40px !important;
        line-height: 45px;
        margin: 20px 0;
    }
    h2 br{
        display: none;
    }
    .entry-title {
        padding: 0 32px;
     font-size: 52px !important;
    }
    .post-proyecto .wp-block-heading{
        font-size: 42px !important;
        line-height: 40px;
    }
    .post-proyecto p {
        font-size: 16px;
    }
    .post-proyecto p strong, .post-proyecto p b {
        font-size: 16px;
    }
    .caja{
        max-width: CALC(100% - 50px);
        margin: 0 25px;
    }
    .page-contacto .caja{
        max-width: CALC(100% - 50px);
        margin: 0 25px;
    }
    .equipo .caja{
        padding: 0;
    }
    .equipo, .premios {
        padding: 0 10px;
    }
    .site-nosotros .wp-block-list{
         max-width: 100%;
        margin: 0 auto;
        padding: 0 0 0 15px;
    }
    .clientes .caja .row{
        margin: 0;
    }
    .site-page .caja{
        max-width: CALC(100% - 64px);
        margin: 0 32px;
    }
    .slider-testimonios{
        max-width: 100% !important;
    }
    .lnk_bloque {
        text-align: left;
        padding-left: 15px;
        padding-right: 15px;
    }
    .lnk_bloque a {
        margin-left:15px;
        margin-right: 15px;
        font-size: 24px;
        text-align: left;
    }
    .lnk_bloque svg {
        float: right;
        margin-right: 0;
        height: 50px;
        transform: translateY(-30px);
    }
    .slider-testimonios{
        max-width: CALC(100% - 30px);
        margin:0 15px 100px!important 
    }
    .slider-testimonios .contenido-slider{
        padding: 30px 25px 30px 53px;   
    }
    .pre-caja{
        max-width: CALC(100% - 64px);
        margin: 57px 32px 100px;
        padding: 0;
    }
    .fotos-proyecto img:first-child {
        padding-right: 0px;
        padding-bottom: 19px;
    }   
    .fotos-proyecto img:last-child {
       padding-left: 0px;
       padding-bottom: 18px;

    }
   .grilla-dense {
        grid-template-columns: 1fr 1fr !important; /* Mantener 2 columnas en mobile */
        grid-auto-rows: 300px !important;
        gap: 9px !important;
    }
    .play-button svg {
        width: 100px;
    }
    .link_rrss .iconbox, .block-editor .iconbox{
        margin:20px auto !important;
        float: none;
    }
    .link_rrss .iconbox, .block-editor .iconbox{
        margin-right:auto;
        margin-left:auto;
        margin-top:30px;
    }
    .proyecto-celda {
        height: 300px !important;
        min-height: 300px !important;
    }
    .fotos-proyecto > div:first-child img{
        padding-right: 0;
    }
    .fotos-proyecto > div:last-child img {
        padding-left: 0px;
    }
    
    /* En mobile, los elementos full son de ancho completo */
    .proyecto-full {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
    
    /* En mobile, los elementos mitad son de 50% del ancho */
    .proyecto-mitad {
        width: 100% !important;
    }
    
    /* Asegurar que las mitades se alineen correctamente */
    .proyecto-mitad:nth-child(odd) {
        justify-self: start !important;
    }
    
    .proyecto-mitad:nth-child(even) {
        justify-self: end !important;
    }
 
    .contenido-mitad{
        margin: 0;
    }
    .detalle .col:nth-child(4n+2), .detalle .col:nth-child(4n+3) ,.detalle .col:last-child{
        border-left: none;
        border-top:1px solid #fff;;
    }

    .blog .entry-title {
        padding: 0;
    }
    .post-blog .mitades {
        padding: 45px 0 0;
    }
    .primer-parrafo-grupo {
        padding-top: 45px !important;
    }

    .post-blog  .video-container {
        position: relative;
        width: CALC(100% - 60px);
        margin: auto;
        margin-top: 45px;
    }
    .wp-block-embed iframe{
    
        margin-top: 45px;
    }
    .relacionados{
        width: CALC(100% - 60px);
        margin-left: auto;
        margin-right: auto;
    }
	.footer{
		padding-bottom:50px;
	}
    .footer-logo{
        text-align: center;
        margin: auto;    
    }
    .footer-logo img{
        margin: 0 auto 22px;
    }
    .footer-address{
        text-align:center ;
    }
    .footer-social{
        text-align: center;
        margin: auto;
    }
    .footer-menu{
        margin-top: 26px;
        text-align: center;
    }
    .footer-social a {
        margin-left:7px;
        margin-right:7px;
    }
    .wp-block-spacer{
        max-height: 45px;
    }
    .wrapper .is-style-mobile-only{
        display: flex !Important;
    }
    .wrapper .is-style-desktop-only{
        display: none !important;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 2) {
    img {
        image-rendering: crisp-edges;
    }
}