* { box-sizing: border-box; }
img, .imgfixed { max-width: 100%; height: auto; display: block; }

.thrColElsHdr #container1, .thrColElsHdr #container {
    width: 100% !important; max-width: 960px !important; margin: 0 auto !important; padding: 0 10px !important;
}
.thrColElsHdr #header, .thrColElsHdr #espacio_logo, .thrColElsHdr #banner, .thrColElsHdr #banner1 {
    width: 100% !important; height: auto !important; float: none !important;
}

.menu-toggle { display: none; width: 100%; background: #000; color: #9cc656; border: 1px solid #9cc656; padding: 12px; font-size: 16px; font-weight: bold; border-radius: 6px; cursor: pointer; margin: 8px 0; }
ul#MenuBar1 { display: flex; flex-wrap: wrap; list-style: none !important; margin: 8px 0 !important; padding: 0 !important; background: #000; border-radius: 8px; }
ul#MenuBar1 > li { position: relative; flex: 1 1 auto; text-align: center; }
ul#MenuBar1 > li > a { display: block; padding: 12px; color: #fff !important; text-decoration: none !important; font-size: 14px; }
ul#MenuBar1 > li > a:hover { background: #9cc656; color: #000 !important; }
ul#MenuBar1 ul.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #1b1b1b; list-style: none !important; padding: 0; margin: 0; z-index: 9999; text-align: left; }
ul#MenuBar1 li:hover > ul.submenu, ul#MenuBar1 li.sub-abierto > ul.submenu { display: block; }
ul#MenuBar1 ul.submenu li a { display: block; padding: 10px 15px; color: #fff !important; text-decoration: none !important; border-bottom: 1px solid #333; }
ul#MenuBar1 ul.submenu li a:hover { background: #FF9900; color: #000 !important; }

.thrColElsHdr #principal1, .thrColElsHdr #principal3 { display: flex; flex-wrap: wrap; gap: 15px; background: transparent !important; margin-top: 12px; }
.thrColElsHdr #principal1 > section:first-child { flex: 2 1 320px; }
.thrColElsHdr #principal1 > section:last-child { flex: 1 1 240px; }
.thrColElsHdr #titulo, .thrColElsHdr #oferta, .thrColElsHdr #imagen_oferta, .thrColElsHdr #principal2, .caja-inferior {
    width: 100% !important; height: auto !important; float: none !important; padding: 15px !important; border-radius: 10px;
}
.caja-inferior { flex: 1 1 300px; background: #fff !important; color: #333 !important; }
#mitexto6, #mitexto7 { width: 100% !important; height: auto !important; max-height: 260px; overflow-y: auto; }
#avioneta, #sitelock_shield_logo { display: none !important; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    ul#MenuBar1 { display: none; flex-direction: column; }
    ul#MenuBar1.abierto { display: flex; }
    ul#MenuBar1 ul.submenu { position: static; width: 100%; background: #2a2a2a; }
}

#mitexto6 .item-proyecto {
    color: #222222 !important;
    margin-bottom: 12px;
    line-height: 1.4;
}
#mitexto6 .item-proyecto strong {
    color: #000000 !important;
    font-size: 14px;
}
#mitexto6 .item-proyecto a {
    display: inline-block !important;
    margin-top: 4px;
    color: #5D8619 !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.bloque-intro {
    width: 100%;
    flex: 1 1 100% !important;
}
.zona-inferior-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    align-items: stretch;
}
.columna-foto {
    flex: 1 1 320px;
}
.columna-foto #oferta,
.columna-foto #imagen_oferta,
.columna-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.columna-cajas {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.columna-cajas #principal3 {
    flex-direction: column !important;
    margin-top: 0 !important;
}
#mitexto6 .item-proyecto {
    color: #222222 !important;
    margin-bottom: 10px;
}
#mitexto6 .item-proyecto strong {
    color: #000000 !important;
}
#mitexto6 .item-proyecto a,
#mitexto7 a {
    display: inline-block !important;
    color: #5D8619 !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.zona-inferior-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
}
.columna-foto {
    flex: 0 0 43% !important;
    max-width: 43% !important;
}
.columna-cajas {
    flex: 0 0 55% !important;
    max-width: 55% !important;
}
@media (max-width: 768px) {
    .columna-foto, .columna-cajas {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.columna-foto, .columna-cajas {
    flex: 1 1 48% !important;
    max-width: 49% !important;
}
.columna-foto #oferta {
    background: #FF9900 !important;
    padding: 12px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}
.columna-foto #imagen_oferta {
    padding: 0 !important;
    height: 100% !important;
}
.columna-foto #imagen_oferta img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.columna-cajas #principal3 {
    height: 100% !important;
    justify-content: space-between !important;
}
@media (max-width: 768px) {
    .columna-foto, .columna-cajas {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* 1. Quitar el marco naranja de la foto */
.columna-foto #oferta {
    background: transparent !important;
    padding: 0 !important;
}

/* 2. Menú estilo botones individuales separados */
ul#MenuBar1 {
    background: transparent !important;
    gap: 6px !important;
}
ul#MenuBar1 > li > a {
    background: #000000 !important;
    border-radius: 6px !important;
    border: 1px solid #333333 !important;
    padding: 9px 12px !important;
}
ul#MenuBar1 > li > a:hover {
    background: #9cc656 !important;
    color: #000000 !important;
    border-color: #9cc656 !important;
}

/* 3. Foto más compacta (36%) y Contacto más recogido */
.columna-foto {
    flex: 0 0 36% !important;
    max-width: 36% !important;
}
.columna-cajas {
    flex: 0 0 62% !important;
    max-width: 62% !important;
}
#recomendados.caja-inferior {
    max-width: 320px !important;
    align-self: flex-start !important;
}
@media (max-width: 768px) {
    .columna-foto, .columna-cajas, #recomendados.caja-inferior {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Anchos iguales al 49% en ambas columnas */
.columna-foto, .columna-cajas {
    flex: 1 1 48% !important;
    max-width: 49% !important;
}

/* Contacto ocupando todo su ancho (49%) pero más bajo y compacto */
#recomendados.caja-inferior {
    max-width: 100% !important;
    width: 100% !important;
    padding: 8px 15px !important;
}
#recomendados h3 {
    margin-bottom: 4px !important;
    padding-bottom: 3px !important;
    font-size: 15px !important;
}
#mitexto7 {
    padding: 4px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}
#mitexto7 p {
    margin: 0 !important;
}
#mitexto7 .redes-sociales {
    margin-top: 0 !important;
}

/* Reducir un cuarto la altura de Proyectos y de la foto para que cuadren */
#mitexto6 {
    max-height: 135px !important;
}
.columna-foto #oferta,
.columna-foto #imagen_oferta,
.columna-foto #imagen_oferta img {
    max-height: 280px !important;
    object-position: top center !important;
}

@media (max-width: 768px) {
    .columna-foto, .columna-cajas {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .columna-foto #oferta,
    .columna-foto #imagen_oferta,
    .columna-foto #imagen_oferta img {
        max-height: none !important;
    }
}

/* Devolver altura cómoda a Últimos Proyectos */
#mitexto6 {
    max-height: 175px !important;
}

/* Hacer Contacto realmente bajo quitando cualquier min-height fijo */
#recomendados,
#recomendados.caja-inferior {
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 15px !important;
}
#recomendados h3 {
    margin: 0 0 4px 0 !important;
    padding-bottom: 3px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}
#mitexto7 {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 2px 0 !important;
    overflow: visible !important;
}

/* Estirar la foto de la izquierda para que cubra exactamente hasta el borde inferior de Contacto */
.zona-inferior-grid {
    align-items: stretch !important;
}
.columna-foto {
    display: flex !important;
}
.columna-foto #oferta,
.columna-foto #imagen_oferta,
.columna-foto #imagen_oferta img {
    max-height: none !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
}

.columna-cajas #principal3 {
    height: auto !important;
    justify-content: flex-start !important;
}
.columna-foto #oferta,
.columna-foto #imagen_oferta,
.columna-foto #imagen_oferta img {
    max-height: 315px !important;
}
@media (max-width: 768px) {
    .columna-foto #oferta,
    .columna-foto #imagen_oferta,
    .columna-foto #imagen_oferta img {
        max-height: none !important;
    }
}

.thrColElsHdr #recomendados,
.thrColElsHdr #recomendados.caja-inferior,
.thrColElsHdr #mitexto7 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
}

.columna-foto #oferta,
.columna-foto #imagen_oferta,
.columna-foto #imagen_oferta img {
    max-height: 315px !important;
    height: 315px !important;
}

@media (max-width: 768px) {
    .columna-foto #oferta,
    .columna-foto #imagen_oferta,
    .columna-foto #imagen_oferta img {
        max-height: none !important;
        height: auto !important;
    }
}

.columna-foto #oferta,
.columna-foto #imagen_oferta,
.columna-foto #imagen_oferta img {
    max-height: 338px !important;
    height: 338px !important;
}

/* Eliminar cualquier altura fija heredada en Contacto */
body.thrColElsHdr #container #principal3 #recomendados,
body.thrColElsHdr #container #principal3 #recomendados #mitexto7 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 10px !important;
}

/* Hacer que la foto iguale exactamente la altura de la columna derecha */
.zona-inferior-grid {
    align-items: stretch !important;
}
body.thrColElsHdr .columna-foto {
    display: flex !important;
}
body.thrColElsHdr .columna-foto #oferta,
body.thrColElsHdr .columna-foto #imagen_oferta,
body.thrColElsHdr .columna-foto #imagen_oferta img {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
}

#contacto-box {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 15px !important;
    background: #ffffff !important;
    color: #333333 !important;
    border-radius: 10px !important;
}
#contacto-box h3 {
    margin: 0 0 6px 0 !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #9cc656 !important;
    text-align: center !important;
    font-size: 15px !important;
}
body.thrColElsHdr .columna-foto #oferta,
body.thrColElsHdr .columna-foto #imagen_oferta,
body.thrColElsHdr .columna-foto #imagen_oferta img {
    height: 305px !important;
    max-height: 305px !important;
}
@media (max-width: 768px) {
    body.thrColElsHdr .columna-foto #oferta,
    body.thrColElsHdr .columna-foto #imagen_oferta,
    body.thrColElsHdr .columna-foto #imagen_oferta img {
        height: auto !important;
        max-height: none !important;
    }
}

/* Anular el alto fijo de #mitexto7 en basico.css / comun.css */
html body.thrColElsHdr #mitexto7 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
}

/* Hacer que la foto de la izquierda cubra exactamente la altura de Proyectos + Contacto */
html body.thrColElsHdr .zona-inferior-grid {
    align-items: stretch !important;
}
html body.thrColElsHdr .columna-foto {
    display: flex !important;
}
html body.thrColElsHdr .columna-foto #oferta,
html body.thrColElsHdr .columna-foto #imagen_oferta,
html body.thrColElsHdr .columna-foto #imagen_oferta img {
    height: 100% !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* 1. Título de Últimos Proyectos en verde exacto igual que Contacto */
html body.thrColElsHdr #container #servicios h3,
html body.thrColElsHdr #container #contacto-box h3 {
    color: #9cc656 !important;
    text-align: center !important;
}

/* 2. Contacto compacto arriba sin estirarse y foto ajustada a la altura resultante */
html body.thrColElsHdr .zona-inferior-grid {
    align-items: flex-start !important;
}
html body.thrColElsHdr .columna-cajas #principal3 {
    justify-content: flex-start !important;
    height: auto !important;
}
html body.thrColElsHdr #contacto-box {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 15px !important;
}
html body.thrColElsHdr .columna-foto #oferta,
html body.thrColElsHdr .columna-foto #imagen_oferta,
html body.thrColElsHdr .columna-foto #imagen_oferta img {
    height: 315px !important;
    max-height: 315px !important;
}
@media (max-width: 768px) {
    html body.thrColElsHdr .columna-foto #oferta,
    html body.thrColElsHdr .columna-foto #imagen_oferta,
    html body.thrColElsHdr .columna-foto #imagen_oferta img {
        height: auto !important;
        max-height: none !important;
    }
}

/* 1. Imágenes de cabecera alternantes ocupando todo el ancho */
html body.thrColElsHdr #banner img,
html body.thrColElsHdr #banner1 img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* 2. Foto inferior cubriendo exactamente hasta el borde de Contacto */
html body.thrColElsHdr .zona-inferior-grid {
    align-items: stretch !important;
}
html body.thrColElsHdr .columna-foto {
    display: flex !important;
}
html body.thrColElsHdr .columna-foto #oferta,
html body.thrColElsHdr .columna-foto #imagen_oferta,
html body.thrColElsHdr .columna-foto #imagen_oferta img {
    height: 100% !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* Hacer que el iframe del currículum (y cualquier otro) iguale el ancho de la cabecera */
html body.thrColElsHdr iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    display: block !important;
    margin: 10px auto !important;
}

html body.thrColElsHdr iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    display: block !important;
    margin: 10px auto !important;
}

/* Hacer que los formularios de contacto e información sean 100% adaptativos */
html body.thrColElsHdr form table,
html body.thrColElsHdr form tbody,
html body.thrColElsHdr form tr,
html body.thrColElsHdr form td {
    display: block !important;
    width: 100% !important;
}
html body.thrColElsHdr form td:first-child {
    font-weight: bold;
    margin-top: 8px;
}
html body.thrColElsHdr form input[type="text"],
html body.thrColElsHdr form select,
html body.thrColElsHdr form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    border-radius: 5px !important;
    border: 1px solid #333333 !important;
    box-sizing: border-box !important;
}
html body.thrColElsHdr form input[type="submit"],
html body.thrColElsHdr form input[type="reset"],
html body.thrColElsHdr form input[type="button"] {
    padding: 8px 16px !important;
    margin-right: 6px !important;
    margin-top: 8px !important;
    background: #000000 !important;
    color: #9cc656 !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

html body.thrColElsHdr .g-recaptcha iframe {
    width: 304px !important;
    max-width: 100% !important;
    height: 78px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Rejilla y tarjetas modernas para Blog proyectos (noticias.php) */
.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 10px;
}
.tarjeta-proyecto {
    background: #ffffff !important;
    color: #222222 !important;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid #FF9900;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tarjeta-proyecto:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.tarjeta-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}
.badge-cat {
    background: #9cc656;
    color: #000000;
    font-weight: bold;
    padding: 3px 9px;
    border-radius: 12px;
}
.fecha-cat {
    color: #666666;
}
.tarjeta-proyecto h3 {
    margin: 0 0 8px 0 !important;
    color: #000000 !important;
    font-size: 17px !important;
    line-height: 1.3;
}
.tarjeta-resumen {
    color: #444444 !important;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 14px 0 !important;
    flex-grow: 1;
}
.btn-leer {
    align-self: flex-start;
    display: inline-block;
    padding: 7px 14px;
    background: #000000 !important;
    color: #9cc656 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 13px;
    border-radius: 6px;
}
.btn-leer:hover {
    background: #9cc656 !important;
    color: #000000 !important;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 10px;
}
.tarjeta-proyecto {
    background: #ffffff !important;
    color: #222222 !important;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid #FF9900;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tarjeta-proyecto:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.tarjeta-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}
.badge-cat {
    background: #9cc656;
    color: #000000;
    font-weight: bold;
    padding: 3px 9px;
    border-radius: 12px;
}
.fecha-cat {
    color: #666666;
}
.tarjeta-proyecto h3 {
    margin: 0 0 8px 0 !important;
    color: #000000 !important;
    font-size: 17px !important;
    line-height: 1.3;
}
.tarjeta-resumen {
    color: #444444 !important;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 14px 0 !important;
    flex-grow: 1;
}
.btn-leer {
    align-self: flex-start;
    display: inline-block;
    padding: 7px 14px;
    background: #000000 !important;
    color: #9cc656 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 13px;
    border-radius: 6px;
}
.btn-leer:hover {
    background: #9cc656 !important;
    color: #000000 !important;
}

html body.thrColElsHdr #principal2 .entrada-detalle {
    background: #ffffff !important;
    color: #222222 !important;
    border-radius: 10px !important;
    padding: 24px !important;
    border-top: 5px solid #FF9900 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    margin-bottom: 16px !important;
}
html body.thrColElsHdr #principal2 .entrada-detalle em {
    display: inline-block !important;
    font-style: normal !important;
    background: #9cc656 !important;
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
}
html body.thrColElsHdr #principal2 .entrada-detalle h3 {
    color: #000000 !important;
    font-size: 22px !important;
    margin: 6px 0 8px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #9cc656 !important;
}
html body.thrColElsHdr #principal2 .entrada-detalle > p {
    color: #666666 !important;
    font-size: 13px !important;
    margin: 0 0 14px 0 !important;
}
html body.thrColElsHdr #principal2 .entrada-detalle h5 {
    color: #1b1b1b !important;
    font-size: 15px !important;
    font-weight: bold !important;
    background: #f4f8ec !important;
    border-left: 4px solid #9cc656 !important;
    padding: 10px 14px !important;
    border-radius: 0 6px 6px 0 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.5 !important;
}
html body.thrColElsHdr #principal2 .entrada-detalle .cuerpo-texto {
    color: #333333 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    text-align: justify !important;
}
html body.thrColElsHdr #principal2 .btn-volver {
    display: inline-block !important;
    padding: 9px 16px !important;
    background: #000000 !important;
    color: #9cc656 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}
html body.thrColElsHdr #principal2 .btn-volver:hover {
    background: #9cc656 !important;
    color: #000000 !important;
}

body.portada-moderna {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background: linear-gradient(135deg, #161b13 0%, #242d1e 50%, #141414 100%) !important;
    color: #1f2937 !important;
}
body.portada-moderna #container { max-width: 1020px !important; padding: 16px !important; }
body.portada-moderna #espacio_logo { background: #ffffff !important; border-radius: 12px !important; padding: 12px 18px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important; }
body.portada-moderna #banner img, body.portada-moderna #banner1 img { border-radius: 12px !important; box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important; }
.main-moderno { display: flex; flex-direction: column; gap: 20px; margin-top: 14px; }
.hero-intro { background: linear-gradient(135deg, #9cc656 0%, #7ea83b 100%); color: #111827; padding: 26px 24px; border-radius: 14px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.hero-badge { display: inline-block; background: #111827; color: #9cc656; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.hero-intro h1 { margin: 0 0 8px 0 !important; font-size: 26px !important; font-weight: 800 !important; color: #000000 !important; }
.hero-intro p { margin: 0 auto !important; max-width: 720px; font-size: 15.5px !important; line-height: 1.5 !important; color: #141c0d !important; }
.grid-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card-area { background: #ffffff; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 6px 18px rgba(0,0,0,0.2); border-top: 5px solid #9cc656; transition: transform 0.2s ease; }
.card-area.area-tur { border-top-color: #FF9900; }
.card-area:hover { transform: translateY(-3px); }
.area-icono { font-size: 28px; margin-bottom: 10px; }
.card-area h2 { margin: 0 0 10px 0 !important; font-size: 20px !important; color: #111827 !important; }
.card-area p { margin: 0 0 18px 0 !important; font-size: 14.5px !important; line-height: 1.6 !important; color: #4b5563 !important; text-align: left !important; }
.btn-area { align-self: flex-start; display: inline-block; padding: 9px 16px; background: #111827 !important; color: #9cc656 !important; font-weight: 700; font-size: 13.5px; text-decoration: none !important; border-radius: 8px; }
.card-area.area-tur .btn-area { color: #FF9900 !important; }
.zona-inferior-moderna { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start; }
.col-proyectos-mod, .contacto-card-mod { background: #ffffff; border-radius: 14px; padding: 20px; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.cabecera-bloque { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #9cc656; padding-bottom: 10px; margin-bottom: 14px; }
.cabecera-bloque h3, .contacto-card-mod h3 { margin: 0 !important; font-size: 18px !important; color: #111827 !important; }
.ver-todos { color: #5D8619 !important; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.lista-proyectos-mod { max-height: 360px !important; overflow-y: auto !important; background: #f9fafb !important; padding: 12px !important; border-radius: 10px !important; border: 1px solid #e5e7eb; }
.lista-proyectos-mod .item-proyecto { background: #ffffff; padding: 12px; border-radius: 8px; margin-bottom: 10px !important; border-left: 4px solid #9cc656; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.col-lateral-mod { display: flex; flex-direction: column; gap: 18px; }
.foto-card-mod img { width: 100%; height: 220px; object-fit: cover; object-position: top center; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.contacto-card-mod h3 { border-bottom: 2px solid #FF9900; padding-bottom: 8px; margin-bottom: 12px !important; }
.mail-linea { margin: 0 0 12px 0 !important; font-size: 14.5px; color: #374151 !important; }
.mail-linea a { color: #5D8619 !important; font-weight: 700; }
.btn-contacto-mod { display: block; text-align: center; padding: 10px; background: #9cc656 !important; color: #000000 !important; font-weight: 800; border-radius: 8px; text-decoration: none !important; margin-bottom: 14px; }
.contacto-card-mod .redes-sociales { justify-content: center; gap: 14px; }
@media (max-width: 768px) {
    .zona-inferior-moderna { grid-template-columns: 1fr; }
    .hero-intro h1 { font-size: 21px !important; }
}

body.portada-moderna #espacio_logo {
    background: #000000 !important;
    border: 1px solid #2c3525 !important;
}
body.portada-moderna .zona-inferior-moderna {
    align-items: stretch !important;
}
body.portada-moderna .col-proyectos-mod {
    display: flex !important;
    flex-direction: column !important;
}
body.portada-moderna .lista-proyectos-mod {
    flex: 1 1 auto !important;
    max-height: 340px !important;
}
body.portada-moderna .col-lateral-mod {
    justify-content: space-between !important;
}
body.portada-moderna .foto-card-mod img {
    height: 195px !important;
}

/* 1. Fondo claro suave para que destaquen el logo negro y los botones del menú */
html body.portada-moderna {
    background: linear-gradient(135deg, #e8ede4 0%, #f5f7f3 50%, #e4e9e0 100%) !important;
}
html body.portada-moderna #footer,
html body.portada-moderna #footer p,
html body.portada-moderna #footer a {
    background: #111827 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}

/* 2. Igualar la anchura (50% / 50%) de las columnas inferiores con las tarjetas de arriba */
html body.portada-moderna .zona-inferior-moderna {
    grid-template-columns: 1fr 1fr !important;
}

/* 3. Mostrar varios proyectos aprovechando todo el recuadro sin espacio vacío */
html body.portada-moderna #mitexto6.lista-proyectos-mod {
    height: 360px !important;
    max-height: 360px !important;
    overflow-y: auto !important;
}
html body.portada-moderna #mitexto6.lista-proyectos-mod .item-proyecto {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
}

/* 4. Iconos de redes sociales en fila horizontal en Contacto */
html body.portada-moderna .contacto-card-mod .redes-sociales {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
}
html body.portada-moderna .contacto-card-mod .redes-sociales a {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    html body.portada-moderna .zona-inferior-moderna {
        grid-template-columns: 1fr !important;
    }
    html body.portada-moderna #mitexto6.lista-proyectos-mod {
        height: 280px !important;
        max-height: 280px !important;
    }
}

html body.portada-moderna .col-lateral-mod {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    height: 100% !important;
}
html body.portada-moderna .foto-card-mod {
    flex: 1 1 auto !important;
    display: flex !important;
}
html body.portada-moderna .foto-card-mod img {
    height: 100% !important;
    min-height: 235px !important;
    max-height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
}
html body.portada-moderna .contacto-card-mod {
    flex: 0 0 auto !important;
    padding: 16px 20px !important;
}

/* === UNIFICAR ESTILO MODERNO EN TODAS LAS PÁGINAS INTERIORES === */
html body.thrColElsHdr {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background: linear-gradient(135deg, #e8ede4 0%, #f5f7f3 50%, #e4e9e0 100%) !important;
    color: #1f2937 !important;
}
html body.thrColElsHdr #container {
    max-width: 1020px !important;
    padding: 16px !important;
}
html body.thrColElsHdr #espacio_logo {
    background: #000000 !important;
    border: 1px solid #2c3525 !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
}
html body.thrColElsHdr #banner img,
html body.thrColElsHdr #banner1 img {
    width: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}
html body.thrColElsHdr #principal1 #titulo {
    background: linear-gradient(135deg, #9cc656 0%, #86b340 100%) !important;
    color: #111827 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
    border: none !important;
}
html body.thrColElsHdr #principal1 #titulo h1 {
    color: #000000 !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
}
html body.thrColElsHdr #principal1 #titulo p {
    color: #141c0d !important;
}
html body.thrColElsHdr #principal2 {
    background: transparent !important;
    padding: 10px 0 !important;
}
html body.thrColElsHdr #footer,
html body.thrColElsHdr #footer p,
html body.thrColElsHdr #footer a {
    background: #111827 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}

/* Arreglar solapamiento del pie de página en pantallas móviles */
html body.thrColElsHdr #footer {
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 15px !important;
    margin-top: 16px !important;
    text-align: center !important;
}
html body.thrColElsHdr #footer p.txtoferp {
    height: auto !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    display: block !important;
}
html body.thrColElsHdr #footer a.txtoferp {
    display: inline-block !important;
    padding: 2px 6px !important;
}

.tarjeta-pagina-fija {
    background: #ffffff !important;
    color: #222222 !important;
    border-radius: 14px !important;
    padding: 26px !important;
    border-top: 5px solid #FF9900 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
    margin-top: 12px !important;
}
.tarjeta-pagina-fija h2 {
    margin: 0 0 10px 0 !important;
    font-size: 22px !important;
    color: #111827 !important;
}
.subtitulo-fija {
    background: #f4f8ec !important;
    border-left: 4px solid #9cc656 !important;
    padding: 10px 14px !important;
    border-radius: 0 8px 8px 0 !important;
    font-weight: bold !important;
    color: #1f2937 !important;
    margin: 0 0 18px 0 !important;
}
.cuerpo-fija {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    margin-bottom: 22px !important;
}
.cta-fija {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

/* Evitar salto vertical al alternar imágenes del banner */
#banner img, #banner1 img {
    aspect-ratio: 1000 / 280;
    object-fit: cover;
    width: 100% !important;
}

#banner img, #banner1 img {
    aspect-ratio: 1000 / 280;
    object-fit: cover;
    width: 100% !important;
}
