@charset "utf-8";

/**
 * =============================================================================
 * KS-Semilla - ks-rd-styles.css (Base for Responsive Design)
 * -----------------------------------------------------------------------------
 * @author     Guillermo Arturo Shikina Zapata
 * @since      2025
 * @copyright  KhamaleonLab 
 * @license    See LICENSE.md for details.
 * @version    1.0.0
 * update      20250626
 * -----------------------------------------------------------------------------
 * Mobile-first responsive layout for base templates.
 * This file contains essential layout styles for header, navigation, forms,
 * and footer, with responsive adjustments made in media queries.
 * ============================================================================= */


/* =============================================================================
 * Header Responsive Layout
 *
 * This section is built mobile-first. Default styles apply to mobile,
 * and media queries override them for larger screens.
 * ============================================================================= */

/* --- Mobile First (Default State) --- */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 0.1rem solid #E8E8E8;
    background: #FFFFFF;
    position: relative; /* Context for potential absolute positioning inside */
}

.site-logo img {
    max-height: 4rem; 
    width: auto;
    display: block;
}

.header-right-panel {
    display: flex;
    align-items: center;
}

/* On mobile, the desktop nav and lang switcher are hidden by default */
#desktop-main-nav,
#topbar-lang-switcher {
    display: none;
}

/* On mobile, only the hamburger menu icon is visible */
#mobile-menu-toggle-container {
    display: block;
}


/* =============================================================================
 * Mobile Navigation Panel (The slide-out menu)
 * ============================================================================= */
#mobile-menu-toggle-container button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit; /* Hereda el color del texto circundante */
}

.mobile-menu-panel {
    display: block; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 25rem; 
    max-width: 80%; 
    height: 100vh; 
    background-color: #333333; 
    z-index: 1100; 
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;     
    transform: translateX(-100%); 
    transition: transform 0.8s ease-in-out; 
}

.mobile-menu-panel.is-open {
    transform: translateX(0); 
}

.mobile-menu-panel a {
    display: block;
    padding: 1.2rem 0; 
    color: white; 
    text-decoration: none;
    font-size: 1.6rem; 
}

.mobile-menu-panel span {
    color: white; 
}

.mobile-menu-panel a:last-child {
    border-bottom: none;
}

/* Main Content & Footer Layout */
main {
    padding: 2rem;
}

.site-footer { 
    background: #222;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1.4rem;
}

.site-footer p { 
    margin-bottom: 0.5rem;
}

.site-footer p:last-of-type { 
    margin-bottom: 0;
}

#bottombar-lang-switcher { 
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1.5rem 0; 
    font-size: 1.4rem;  
}

.footer-navigation {
    text-align: center;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; 
}

.footer-links-list li {
    display: inline;
}

.footer-links-list a {
    text-decoration: none;
}

.footer-links-list a:hover {
    text-decoration: underline;
}

.footer-link-separator {
    margin: 0 1rem;
}


/* =============================================================================
 * RESPONSIVE BREAKPOINTS
 * ============================================================================= */

/* --- Tablet View (768px and up) --- */
@media (min-width: 768px) {    
    #mobile-menu-toggle-container {
        display: none;
    }

    /* Your key solution: give the right panel a defined width */
    .header-right-panel {
        width: 60%;
    }

    /* Show the desktop nav and lang switcher */
    #desktop-main-nav,
    #topbar-lang-switcher {
        display: flex;
        align-items: center;
    }

    /* Your layout logic, now robust and predictable */
    .header-right-panel.layout-monolingual {
        justify-content: flex-end; /* Pushes menu to the right */
    }
    .header-right-panel.layout-multilingual {
        justify-content: space-between; /* Balances menu and lang switcher */
    }

    #desktop-main-nav {
        gap: 2rem; /* Initial gap for tablet */
    }

    .contact-container {
        max-width: 70rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Desktop View (1024px and up) --- */
@media (min-width: 1024px) {
    .site-logo img {
        max-height: 6rem; 
    }
    .site-header {
        padding: 1.5rem 3rem;
    }
    #desktop-main-nav {
        gap: 3rem;
    }
    
    .contact-container {
        max-width: 80rem;
    }
}

/* --- Large Desktop View (1200px and up) --- */
@media (min-width: 1200px) {
    body {
        font-size: 1.8rem;
    }
    main.container-fluid,
    main.contact-container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .site-header {
        padding: 2rem 4rem;
    }
}

/* --- app/Helpers/UiHelper::safeHtml_renderPaginator --- */

.paginator {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.paginator__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.paginator__item {
    margin: 0;
}

.paginator__item:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.paginator__link {
    display: block;
    padding: 1rem 1.5rem;
    min-width: 4.5rem; /* Minimum width for each button */
    text-align: center;
    text-decoration: none;
    color: #007647;
    background-color: #FFFFFF;
    transition: background-color 0.2s;
}

.paginator__item:not(.paginator__item--disabled):not(.paginator__item--active) .paginator__link:hover {
    background-color: #f8f9fa;
}

.paginator__item--active .paginator__link {
    background-color: #007647;
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.paginator__item--disabled .paginator__link {
    color: #aaa;
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* For the ellipsis ("...") */
.paginator__item--disabled .paginator__link:not(:hover) {
    background-color: #FFFFFF;
}
