/* 
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 */


/* =========================================
   HACIENDA BALVANERA — SINGLE BLOG
   ========================================= */

.hb-blog-single {
    --hb-navy: #122B36;
    --hb-cream: #FAF8F4;
    --hb-text: #53656D;
    --hb-accent: #965A43;

    font-family: Helvetica, Arial, sans-serif;
    color: var(--hb-navy);
}

/* HERO DEL ARTÍCULO */

.hb-blog-single .hb-article-hero {
    background: var(--hb-navy);
    color: #FFFFFF;
}

.hb-blog-single .hb-article-hero-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 80px 40px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.hb-blog-single .hb-article-category {
    display: block;
    margin-bottom: 22px;

    color: #CDA38A;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hb-blog-single .hb-article-intro h1 {
    margin: 0 0 24px;

    color: #FFFFFF;
    font-size: clamp(36px, 3.5vw, 58px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hb-blog-single .hb-article-excerpt {
    max-width: 560px;
    margin: 0;

    color: #D0DADC;
    font-size: 17px;
    line-height: 1.75;
}

.hb-blog-single .hb-article-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

/* CONTENIDO DEL ARTÍCULO */

.hb-blog-single .hb-article-body {
    background: var(--hb-cream);
    padding: 90px 24px 110px;
}

.hb-blog-single .hb-article-content {
    width: min(780px, 100%);
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.85;
    color: var(--hb-text);
}

.hb-blog-single .hb-article-content h2 {
    margin: 52px 0 20px;
    color: var(--hb-navy);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 300;
    line-height: 1.25;
}

.hb-blog-single .hb-article-content h3 {
    margin: 36px 0 16px;
    color: var(--hb-navy);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
}

.hb-blog-single .hb-article-content p {
    margin: 0 0 24px;
}

.hb-blog-single .hb-article-content ul,
.hb-blog-single .hb-article-content ol {
    margin: 20px 0 30px;
    padding-left: 25px;
}

.hb-blog-single .hb-article-content li {
    margin-bottom: 12px;
}

.hb-blog-single .hb-article-content img {
    max-width: 100%;
    height: auto;
}

.hb-blog-single .hb-article-content figure {
    margin: 42px auto;
}

.hb-blog-single .hb-article-content figcaption {
    margin-top: 10px;
    color: #76848A;
    font-size: 12px;
    text-align: center;
}

/* ENLACES */

.hb-blog-single .hb-article-content a {
    color: var(--hb-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* CTA FINAL */

.hb-blog-single .hb-article-cta {
    background: var(--hb-cream);
    padding: 0 24px 100px;
}

.hb-blog-single .hb-article-cta-inner {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 65px 35px;

    background: var(--hb-navy);
    color: #FFFFFF;
    text-align: center;
    border-radius: 8px;
}

.hb-blog-single .hb-article-cta-inner span {
    color: #CDA38A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hb-blog-single .hb-article-cta-inner h2 {
    margin: 18px 0;

    color: #FFFFFF;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 300;
    line-height: 1.2;
}

.hb-blog-single .hb-article-cta-inner p {
    margin: 0 0 28px;
    color: #D0DADC;
    font-size: 16px;
}

.hb-blog-single .hb-article-cta-inner a {
    display: inline-block;
    padding: 14px 28px;

    background: #FFFFFF;
    color: var(--hb-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hb-blog-single .hb-article-cta-inner a:hover {
    background: #EAE6E0;
}

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */

@media (max-width: 1024px) {

    .hb-blog-single .hb-article-hero-inner {
        gap: 36px;
        padding: 65px 32px;
    }

    .hb-blog-single .hb-article-body {
        padding: 70px 32px 90px;
    }
}

/* =========================================
   RESPONSIVE — MÓVIL
   ========================================= */

@media (max-width: 767px) {

    .hb-blog-single .hb-article-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
        padding: 48px 22px;
    }

    .hb-blog-single .hb-article-intro h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hb-blog-single .hb-article-excerpt {
        font-size: 15px;
    }

    .hb-blog-single .hb-article-body {
        padding: 55px 22px 70px;
    }

    .hb-blog-single .hb-article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .hb-blog-single .hb-article-content h2 {
        font-size: 29px;
    }

    .hb-blog-single .hb-article-cta {
        padding: 0 15px 65px;
    }

    .hb-blog-single .hb-article-cta-inner {
        padding: 45px 24px;
    }
}

/* ESTILOS HOME */


/* ==========================================
   HACIENDA BALVANERA — BLOG ARCHIVE
   ========================================== */

.hb-blog-archive {
    --hb-navy: #122B36;
    --hb-cream: #FAF8F4;
    --hb-text: #53656D;
    --hb-accent: #965A43;

    color: var(--hb-navy);
    font-family: Helvetica, Arial, sans-serif;
}

/* HERO */

.hb-blog-archive-hero {
    background: var(--hb-navy);
    color: #FFFFFF;
    padding: 100px 24px;
}

.hb-blog-archive-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hb-blog-eyebrow {
    color: #CDA38A;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hb-blog-archive-hero h1 {
    color: #FFFFFF;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    margin: 25px 0;
}

.hb-blog-archive-hero p {
    max-width: 560px;
    color: #D0DADC;
    font-size: 17px;
    line-height: 1.7;
}

/* LISTADO */

.hb-blog-listing {
    background: var(--hb-cream);
    padding: 90px 24px 110px;
}

.hb-blog-listing-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hb-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 30px;
}

/* TARJETAS */

.hb-post-card {
    min-width: 0;
}

.hb-post-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E5E2DB;
}

.hb-post-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hb-post-card-image:hover img {
    transform: scale(1.04);
}

.hb-post-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E2DB;
}

.hb-post-card-content {
    padding-top: 23px;
}

.hb-post-card-category {
    color: var(--hb-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hb-post-card h2 {
    margin: 14px 0;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.25;
}

.hb-post-card h2 a {
    color: var(--hb-navy);
    text-decoration: none;
}

.hb-post-card-content p {
    color: var(--hb-text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hb-post-read-more {
    color: var(--hb-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--hb-navy);
    padding-bottom: 5px;
}

/* PAGINACIÓN */

.hb-blog-pagination {
    margin-top: 75px;
    text-align: center;
}

.hb-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hb-blog-pagination .page-numbers {
    padding: 10px 15px;
    color: var(--hb-navy);
    text-decoration: none;
}

.hb-blog-pagination .current {
    background: var(--hb-navy);
    color: #FFFFFF;
}

.hb-blog-empty {
    text-align: center;
    padding: 50px 20px;
}

/* TABLET */

@media (max-width: 1024px) {
    .hb-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-blog-archive-hero {
        padding: 75px 32px;
    }
}

/* MÓVIL */

@media (max-width: 767px) {
    .hb-blog-archive-hero {
        padding: 65px 22px;
    }

    .hb-blog-listing {
        padding: 55px 22px 75px;
    }

    .hb-post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .hb-post-card h2 {
        font-size: 25px;
    }
}

/* BACK BTN */

/* =========================================
   REGRESAR AL BLOG
   ========================================= */

.hb-blog-single .hb-article-back {
    background: #FAF8F4;
    padding: 0 24px 60px;
}

.hb-blog-single .hb-article-back a {
    display: flex;
    align-items: center;
    gap: 12px;

    width: min(780px, 100%);
    margin: 0 auto;
    padding-top: 24px;

    border-top: 1px solid #DDD9D4;

    color: #122B36;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

.hb-blog-single .hb-article-back a:hover {
    color: #965A43;
}

.hb-blog-single .hb-article-back span {
    font-size: 22px;
    transition: transform .2s ease;
}

.hb-blog-single .hb-article-back a:hover span {
    transform: translateX(-5px);
}

@media (max-width: 767px) {
    .hb-blog-single .hb-article-back {
        padding: 0 22px 45px;
    }
}


/* Selector bilingüe - Hacienda Balvanera */

.hb-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;

    border: 1px solid #DBDBD6;
    border-radius: 50px;
    background: #FAF8F4;

    white-space: nowrap;
}

.hb-lang-switcher a,
.hb-lang-switcher span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    min-height: 34px;
    padding: 6px 10px;

    border-radius: 50px;
    color: #102630;
    background: transparent;

    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
}

.hb-lang-switcher a.is-active {
    background: #102630;
    color: #FFFFFF;
}

.hb-lang-switcher a:hover:not(.is-active) {
    background: #EAE8E3;
}

.hb-lang-switcher .is-unavailable {
    opacity: 0.4;
}


/* Menús según idioma - Hacienda Balvanera */

/* Ocultar español por defecto */
.hb-menu-es {
    display: none !important;
}

/* Mostrar español cuando Polylang esté en ES */
html[lang^="es"] .hb-menu-en {
    display: none !important;
}

html[lang^="es"] .hb-menu-es {
    display: block !important;
}


/* =====================================
   BOTONES DEL HEADER POR IDIOMA
   ===================================== */

/* Inglés: mostrar EN y ocultar ES */
.hb-btn-es {
    display: none !important;
}

/* Español: ocultar EN y mostrar ES */
html[lang^="es"] .hb-btn-en {
    display: none !important;
}

html[lang^="es"] .hb-btn-es {
    display: block !important;
}


/* Navegación superior de artículos */

.hb-blog-single .hb-article-back-top {
    background: #FAF8F4;
    padding: 36px 24px 0;
}

.hb-blog-single .hb-article-back-top a {
    padding-top: 0;
    padding-bottom: 22px;
    border-top: none;
    border-bottom: 1px solid #DDD9D4;
}

@media (max-width: 767px) {
    .hb-blog-single .hb-article-back-top {
        padding: 28px 22px 0;
    }
}