@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 picture,
.site-logo img {
    max-height: 5rem;
    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: 28rem; 
    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 */
.contact-container {
    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) --- */
/* Hemos modificado a 1024 para usar también el menu hamburguesa en tablets */
@media (min-width: 1024px) {
    #mobile-menu-toggle-container {
        display: none;
    }

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

    /* 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;
        padding: 2rem; /*  No es necesario el padding a partir de tablets */
    }
}

/* --- Desktop View (1024px and up) --- */
@media (min-width: 1024px) {
    .site-header {
        padding: 1rem 3rem;
    }
    #desktop-main-nav {
        gap: 3rem;
    }
    main.container-fluid,
    main.contact-container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .contact-container {
        max-width: 80rem;
    }
}

/* --- Large Desktop View (1200px and up) --- */
@media (min-width: 1200px) {
    body {
        font-size: 1.8rem;
    }    
    .site-header {
        padding: 1rem 4rem;
    }
}

/* ==========================================================================
   [KS-SEMILLA RAW] - DOCUMENT COMPONENT (BEM / OOCSS)
   Mobile First Approach (Base 1rem = 10px)
   ========================================================================== */

/* 1. Main Responsive Layout (Mobile Base) */
.ks-doc-layout {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem; /* Maximize space on mobile */
    padding-right: 1.5rem;
}

/* 2. Header Elements */
.ks-doc__header {
    margin-bottom: 2rem;
}

.ks-doc__title {
    font-size: 2.4rem; /* Tighter for mobile screens */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ks-doc__meta {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* 3. Sections and Subtitles */
.ks-doc__section {
    margin-bottom: 3rem;
}

.ks-doc__subtitle {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.ks-doc__subtitle--small {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* 4. Text and Lists */
.ks-doc__text {
    font-size: 1.6rem; /* Standard readable text across all devices */
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ks-doc__list {
    margin-left: 2rem;
    font-size: 1.6rem;
    line-height: 1.8;
}

.ks-doc__list li {
    margin-bottom: 1rem;
}

/* 5. Panels (Information boxes, alerts, steps) */
.ks-doc__panel {
    border-radius: 0.8rem;
    padding: 1.5rem; /* Tighter padding to save space on mobile */
    margin-bottom: 3rem;
    border: 0.1rem solid transparent;
}

.ks-doc__panel--danger {
    border-color: #E32636;
    background-color: transparent; 
}

.ks-doc__panel--danger .ks-doc__subtitle {
    color: #E32636;
}

.ks-doc__panel--danger .ks-doc__text {
    color: #AF101D;
}

.ks-doc__panel--muted {
    background-color: #f8f9fa;
    border-color: #aaaaaa;
}

/* 6. Inline Code / Technical Terms */
.ks-doc__code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em; 
    color: #333333;
    background-color: #E8E8E8;
    border: 0.1rem dashed #AAAAAA;
    border-radius: 0.4rem; 
    padding: 0.2rem 0.6rem; 
    word-break: break-word; 
}

/* 7. Contact / Action Links */
.ks-doc__sub-section a {
    text-decoration: none;
}

.ks-doc__contact-link {
    display: flex;
    align-items: center;
    border-radius: 0.8rem;
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 0.1rem solid transparent;    
}

.ks-doc__contact-link i {
    font-size: 3.6rem; 
    margin-right: 1.5rem;    
}

/* Specific modifier for WhatsApp */
.ks-doc__contact-link--whatsapp {
    border-color: #25d366; 
    color: #25d366;
    background-color: rgba(37, 211, 102, 0.05); 
}

.ks-doc__contact-link--whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

/*  MEDIA QUERIES (Tablet & Desktop Enhancements)  */

/* Tablet (e.g., >= 768px / 76.8rem) */
@media (min-width: 768px) {
    .ks-doc__title {
        font-size: 2.8rem;
    }

    .ks-doc__subtitle {
        font-size: 2.2rem;
    }
    
    .ks-doc__panel {
        padding: 2rem; /* Give panels more breathing room */
    }
}

/* Desktop (e.g., >= 1200px / 120rem) */
@media (min-width: 1200px) {
    .ks-doc-layout {
        padding-top: 4rem;
        padding-bottom: 4rem;
        max-width: 80rem; /* Constrain width only on large screens for readability */
    }

    .ks-doc__header {
        margin-bottom: 4rem;
    }

    .ks-doc__title {
        font-size: 3.2rem;
    }

    .ks-doc__meta {
        font-size: 1.6rem;
    }

    .ks-doc__section {
        margin-bottom: 4rem;
    }

    .ks-doc__subtitle {
        font-size: 2.4rem;
        margin-bottom: 2rem;
    }

    .ks-doc__subtitle--small {
        font-size: 1.8rem;
    }

    .ks-doc__panel {
        margin-bottom: 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;
}

/* =============================================================================
 * MOBILE MENU SCROLL LOCK & STABILITY
 * ============================================================================= */

/* 1. Body lock (KEEP) */
body.menu-is-open {
    overflow: hidden;
    height: 100vh; 
}

/* 2. Header behavior when opening the menu (ADD) */
/* This forces the header to stay stuck at the top (top: 0), ignoring page scroll */
.site-header.header-is-open {
    position: fixed;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 1001; /* Important: Higher than the menu (999) */
}

/* =============================================================================
 * --- Modern Toast Notification --- 
 * ============================================================================= */
.ks-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); 
    background-color: #323232; /* Dark gray */
    color: #fff;
    padding: 15px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ks-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ks-toast--success { background-color: #28a745; } /* Green success */
.ks-toast--error { background-color: #dc3545; }   /* Red error */