/*
 Theme Name:   AHC
 Theme URI:    http://alianzahispanochina.org
 Description:  Alianza Hispano-China
 Author:       Mario Montesinos
 Author URI:   http://alianzahispanochina.org
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  ahc
*/



/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////// GLOBAL
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


* {
  font-family: 'Lato', Sans-Serif !important;
  font-size: 15px;
}
body{
    background: white;
}
p{
    font-size: 15px;
}


h1.wp-block-post-title {
    text-align: center;
    font-size: 30px;
}
main#wp--skip-link--target {
    margin-top: 0 !important;
}



/**** MENU ***/
.wp-block-navigation.items-justified-right {
    flex: auto;
}
.polylang_langswitcher{
    display:inline-flex;
    padding-left:5px;
    list-style:none;
}
.polylang_langswitcher li{
    padding-right: 10px;
}


.menu-en {

display: none; /* mantiene el diseño intacto */

position: absolute; /* lo elimina del flujo para móviles */

}

.menu-es {

display: none;

position: absolute;

}

.menu-zh {

display: none;

position: absolute;

}




/* Mostrar el menú en inglés en las páginas en inglés */

html:lang(en) .menu-en {

display: block;

position: relative;

}

/* Mostrar el menú en español en las páginas en español */

html:lang(es) .menu-es {

display: block;

position: relative;

}


/* Mostrar el menú en chino  */

html:lang(zh) .menu-zh {

display: block;

position: relative;

}







/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////// CONTACTO
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


.wp-block-contact-form-7-contact-form-selector {
    max-width: 400px;
    width: 100% !important;
}

form.wpcf7-form input, form.wpcf7-form textarea{
    padding: 10px;
    width: 100%;
    text-align: center;
    border: 0;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}





/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////// INICIO - NOTICIAS
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


.ahc-ultimas-entradas {
    text-align: center;
    width: 100%;
    max-width: 100%;
}
.ahc-entrada-imagen img {
    margin: 0 auto;
}




/* Cada entrada: imagen + texto en horizontal */
.ahc-entrada-item {
    display: inline-table;
    margin: 10px;
    text-align: center;
    max-width: 300px;
    width: 100%;
    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.2);
}
.ahc-entrada-item:hover{
    cursor: pointer;
    transform: scale(1.05);
}

.ahc-entrada-enlace {
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Columna de la imagen */
.ahc-entrada-imagen {
    max-height: 180px;
    height: 100%;
    max-width: 300px;
    width: 100%;
}

.ahc-entrada-imagen img {
    display: block;
    max-height: 180px;
    height: 100%;
    max-width: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.wp-block-group.has-accent-4-color.has-text-color.has-link-color.has-small-font-size.is-layout-flex.wp-container-core-group-is-layout-4efaea1e.wp-block-group-is-layout-flex {
    display: none;
}

/* Placeholder si no hay imagen destacada */
.ahc-entrada-imagen-placeholder {
    width: 140px;
    height: 90px;
    border-radius: 6px;
    background: #ddd;
    margin-bottom: 8px;
}


.ahc-entrada-titulo {
    font-size: 1.1rem;
    margin: 0;
    padding: 2px;
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    font-size: 14px;
    margin: 0 10px 10px 10px;
    text-decoration: none !important;
}

p.ahc-entrada-fecha {
    font-size: 11px;
    margin: 0;
    background: #515151;
    color: white;
    text-align: center !important;
}


/* Hover suave */
.ahc-entrada-enlace:hover .ahc-entrada-titulo {
    text-decoration: underline;
}




.textoprincipal{
    text-align: justify;
    margin-bottom: 40px;
}
p{
    text-align: justify;
}
aside#contacto {
    padding-top: 0px !important;
    padding-bottom: 0 !important;
}
footer.carousel-slider__post-meta {
    display: none !important;
}
.carousel-slider__post {
    border: 0 !important;
    box-shadow: none !important;
}
.carousel-slider__post h2 {
    font-size: 16px !important;
    text-align: center;
    text-decoration: none !important;
}
.carousel-slider__post a {
    text-decoration: none !important;
}
.carousel-slider__post h2:hover {
    color: #FFD500 !important;
}
a.carousel-slider__post-image {
    border-radius: 4px !important;
}
.carousel-slider__post-excerpt {
    display: none !important;
}






ul.wp-block-latest-posts__list.wp-block-latest-posts {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}
ul.wp-block-latest-posts__list.wp-block-latest-posts li {
    display: inline-table;
    margin: 20px;
    text-align: center;
    max-width: 170px;
    width: 100%;
}

figure.wp-block-post-featured-image {
    text-align: center;
    max-height: 300px;
}
.wp-block-post-featured-image :where(img) {
    width: 100%;
    max-width: 500px;
    max-height: 300px;
    height: 100%;
    margin: 0 auto !important;
    text-align: center;
}


/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////// FOOTER
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


.logofooter {
    max-width: 400px;
    width: 100%;
}

footer .is-layout-flex {
    display: block;
    text-align: center;
}
footer div {
    padding: 5px !important;
}




.footer-en {

display: none; /* mantiene el diseño intacto */

position: absolute; /* lo elimina del flujo para móviles */

}

.footer-es {

display: none;

position: absolute;

}

.footer-zh {

display: none;

position: absolute;

}


/* Mostrar el menú en inglés en las páginas en inglés */

html:lang(en) .footer-en {

display: block;

position: relative;

}

/* Mostrar el menú en español en las páginas en español */

html:lang(es) .footer-es {

display: block;

position: relative;

}


/* Mostrar el menú en chino  */

html:lang(zh) .footer-zh {

display: block;

position: relative;

}

