/**
Theme Name: Casesa Child
Author: Infoal
Author URI: https://infoal.com/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casesa-child
Template: astra
*/

.ast-builder-menu-1 .main-header-bar-navigation {
    background: #017978;
    border-radius: 50px;
    padding: 0px 20px;
}

.ast-desktop .ast-menu-hover-style-underline>.menu-item>.menu-link:before,
.ast-desktop .ast-menu-hover-style-overline>.menu-item>.menu-link:before {
    height: 3px;
}

.ast-builder-button-wrap .ast-custom-button-link {
    display: inline-block;
    transition: all 0.3s ease;
    animation: inout 2s ease infinite;
    border-radius: 50px;
    background-color: var(--hv-accent-gold) !important;
    border: none !important;
    font-weight: 700 !important;
}

@keyframes inout {
    0% {
        box-shadow: 0 0 0 0px rgba(197, 252, 0, 0.4);
    }

    to {
        box-shadow: 0 0 0 15px rgba(238, 157, 1, 0);
    }
}

.ast-builder-button-wrap .ast-custom-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 252, 0, 0.3);
}

body.archive .ast-archive-description {
    border-bottom: none;
    padding: 0;
}

.archive .ast-article-post .ast-article-inner {
    padding: 0;

}

.archive .entry-title {
    padding: 0px 20px;
    margin-bottom: 20px;
}

/* =============================================================================
   Premium Language Switcher Styling
   ============================================================================= */
.hv-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: initial;
}

/* Desktop Trigger */
.hv-lang-current {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 12px;
    background: rgba(16, 53, 88, 0.05);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hv-lang-switcher:hover .hv-lang-current {
    background: #fff;
    border-color: var(--hv-accent-gold);
    box-shadow: 0 4px 12px rgba(16, 53, 88, 0.08);
}

.hv-lang-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.hv-lang-arrow {
    font-size: 10px;
    color: var(--hv-primary-blue);
    transition: transform 0.3s ease;
}

.hv-lang-switcher:hover .hv-lang-arrow {
    transform: rotate(180deg);
    color: var(--hv-accent-gold);
}

/* Dropdown Container (Desktop) */
.hv-lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    padding: 10px 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(16, 53, 88, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid rgba(16, 53, 88, 0.05);
}

.hv-lang-switcher:hover .hv-lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hv-lang-list li {
    margin: 0;
    padding: 0;
}

.hv-lang-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--hv-primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hv-lang-list li:hover a {
    background: rgba(238, 157, 1, 0.1);
    color: var(--hv-accent-gold);
}

.hv-lang-list li.active a {
    color: var(--hv-accent-gold);
    background: rgba(238, 157, 1, 0.05);
}

/* Flags styling */
.hv-flag-wrap img {
    width: 20px !important;
    height: auto !important;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Arrow pointer for the dropdown (Desktop only) */
.hv-lang-list::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(16, 53, 88, 0.05);
    border-top: 1px solid rgba(16, 53, 88, 0.05);
}

.img-home4 {
    display: block !important;
    width: 100% !important;
}


.grecaptcha-badge {
    display: none !important;
}

/* MOBILE VIEW: Horizontal row, no dropdown */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .hv-lang-list {
        position: static;
        display: flex;
        gap: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 10px 0;
        margin: 0;
        min-width: auto;
        border: none;
        backdrop-filter: none;
        flex-wrap: wrap;
    }

    .hv-lang-list::before {
        display: none;
    }

    .hv-lang-list li a {
        padding: 6px 14px;
        gap: 8px;
        text-transform: uppercase;
        font-size: 0.85rem;
        background: #ffffff;
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(16, 53, 88, 0.08);
        border: 1px solid rgba(16, 53, 88, 0.05);
        font-weight: 700;
        color: var(--hv-primary-blue);
    }

    .hv-lang-list li.active a {
        background: #fff;
        border-color: var(--hv-accent-gold);
        color: var(--hv-accent-gold);
    }

    .hv-lang-list li:hover a {
        background: #fff;
    }

    .img-home4 {
        width: 50% !important;
    }
}

/* =============================================================================
   Casesa Custom Catalog Grid Styling
   ============================================================================= */
.casesa-catalogos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.casesa-catalogo-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.casesa-catalogo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #017978;
}

.casesa-catalogo-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.casesa-catalogo-cover-wrapper {
    position: relative;
    padding-top: 130%;
    /* Proporción de la imagen */
    overflow: hidden;
    background: #f5f5f5;
}

.casesa-catalogo-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.casesa-catalogo-item:hover .casesa-catalogo-cover {
    transform: scale(1.05);
}

.casesa-catalogo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 121, 120, 0.85);
    /* Verde semitransparente premium */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.casesa-catalogo-item:hover .casesa-catalogo-overlay {
    opacity: 1;
}

.casesa-catalogo-overlay-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    transform: translateY(15px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.casesa-catalogo-item:hover .casesa-catalogo-overlay-content {
    transform: translateY(0);
}

.casesa-catalogo-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    align-items: flex-start;
}

.casesa-catalogo-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #103558;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-align: left;
}

.casesa-catalogo-item:hover .casesa-catalogo-title {
    color: #017978;
}

.casesa-catalogo-btn {
    display: inline-flex;
    align-items: center;
    background: #e6f2f2;
    color: #017978;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.casesa-catalogo-item:hover .casesa-catalogo-btn {
    background: #017978;
    color: #fff;
}

/* Grid Adaptable a Dispositivos Móviles */
@media (max-width: 1024px) {
    .casesa-catalogos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .casesa-catalogos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .casesa-catalogos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Prevenir deformación de imágenes destacadas y de fallback en los posts */
.fallback-post-image,
.wp-post-image,
.ast-article-post img,
.elementor-posts-container img,
.elementor-post__thumbnail img {
    object-fit: cover !important;
}