/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


html {
  scroll-behavior: smooth;
}

/* CSS BLOG */

/* === Badge ÚLTIMA PUBLICACIÓN === */
.badge-ultima-pub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
    color: #1a1a1a;
    text-transform: uppercase;
}

/* === Badge de categoría === */
.badge-categoria {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
    padding: 2px 7px;
    border: 1px solid;          /* el color lo inyecta el shortcode inline */
    border-radius: 2px;
    background: transparent;
    text-transform: uppercase;
}

/* SELECTOR DE IDIOMAS */

/* === GTranslate selector custom === */

/* === GTranslate selector custom === */

/* Wrapper principal */
.gtranslate_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
}

/* Ocultar el widget de Google Translate y su banner */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
#google_translate_element2 {
    display: none !important;
}
body {
    top: 0 !important;
}

/* Por defecto, ocultar todos los enlaces de idioma */
.gtranslate_wrapper a.glink {
    display: none;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
}

/* Mostrar solo el idioma activo */
.gtranslate_wrapper a.glink.gt-current-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

/* Chevron del idioma activo */
.gtranslate_wrapper a.glink.gt-current-lang::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

/* Chevron rotado cuando el dropdown está abierto */
.gtranslate_wrapper.is-open a.glink.gt-current-lang::after {
    transform: rotate(-135deg) translateY(2px);
}

/* Dropdown abierto - sin fondo, alineado bajo el idioma activo */
.gtranslate_wrapper.is-open a.glink:not(.gt-current-lang) {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    color: inherit;
    z-index: 1000;
}

/* Hover sobre los idiomas del dropdown */
.gtranslate_wrapper.is-open a.glink:not(.gt-current-lang):hover {
    opacity: 0.6;
    background: transparent;
}

/* === Variante gt-light (header oscuro, texto claro) === */
.gt-light .gtranslate_wrapper a.glink,
.gt-light .gtranslate_wrapper a.glink.gt-current-lang,
.gt-light .gtranslate_wrapper.is-open a.glink:not(.gt-current-lang) {
    color: #ffffff !important;
}

.gt-light .gtranslate_wrapper a.glink.gt-current-lang::after {
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

/* === Variante gt-dark (header claro, texto oscuro) === */
.gt-dark .gtranslate_wrapper a.glink,
.gt-dark .gtranslate_wrapper a.glink.gt-current-lang,
.gt-dark .gtranslate_wrapper.is-open a.glink:not(.gt-current-lang) {
    color: #1a1a1a;
}

.gt-dark .gtranslate_wrapper a.glink.gt-current-lang::after {
    border-right-color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}





/* ===== Logo header — fade según scroll ===== */
.logo-header-home {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* no clicable mientras está invisible */
}

body.header-scrolled .logo-header-home {
    opacity: 1;
    pointer-events: auto;
}





/* ===== Leer más con despliegue suave ===== */
.texto-leer-mas .texto-contenido {
    max-height: 7.5em;            /* ~5 líneas visibles cerrado */
    overflow: hidden;
    transition: max-height 1.2s ease;
}

.texto-leer-mas.abierto .texto-contenido {
    max-height: 80em;             /* ajusta si tu texto se corta o sobra mucho */
}

/* Móvil: más altura porque caben menos palabras por línea */
@media (max-width: 767px) {
    .texto-leer-mas .texto-contenido {
        max-height: 12em;
    }
}