/* -----------------------------------------------------------------
   1. CONTROL DE DISEÑO (LAYOUT)
   ----------------------------------------------------------------- */
.ahb-layout-boxed { max-width: 1140px; margin: 0 auto 60px auto !important; }
.ahb-layout-full { max-width: 100%; margin: 0 0 60px 0 !important; }
.ahb-layout-full .ahb-slide { background-size: cover; }
.ahb-layout-boxed .ahb-slide { background-size: contain; }

/* -----------------------------------------------------------------
   2. CONTENEDORES BASE
   ----------------------------------------------------------------- */
.ahb-container { width: 100%; position: relative; background-color: transparent; overflow: visible !important; }
.ahb-slides-mask { width: 100%; height: 416px; overflow: hidden; position: relative; background-color: #f9f9f9; }
.ahb-slides-track { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.ahb-slide { flex: 0 0 100%; width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; position: relative; }
.ahb-background-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

.ahb-mobile-card { display: none; }

/* -----------------------------------------------------------------
   3. TEXTOS SUPERPUESTOS (PC) - ¡NUEVO!
   ----------------------------------------------------------------- */
.ahb-pc-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; /* Centrado vertical */
    padding-left: 8%; /* Margen a la izquierda para que respire */
    z-index: 5; pointer-events: none; /* Deja pasar clicks al enlace del fondo */
}
.ahb-pc-content-box {
    width: 100%; max-width: 450px; 
    pointer-events: auto; /* Reactiva los clicks solo para el texto/botón */
}
.ahb-pc-title { font-size: 2.8rem; color: var(--ahb-primary); font-weight: 800; margin: 0 0 10px 0; line-height: 1.1; }
.ahb-pc-desc { font-size: 1.2rem; color: #444444; margin: 0 0 25px 0; line-height: 1.4; font-weight: 500; }
.ahb-pc-btn { 
    display: inline-block; background-color: var(--ahb-primary); color: #ffffff !important; 
    padding: 12px 35px; border-radius: 4px; text-transform: uppercase; text-decoration: none; 
    font-weight: bold; font-size: 1rem; transition: opacity 0.3s;
}
.ahb-pc-btn:hover { opacity: 0.85; }

/* -----------------------------------------------------------------
   4. FLECHAS DE NAVEGACIÓN LATERALES
   ----------------------------------------------------------------- */
.ahb-arrow { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; background: rgba(255, 255, 255, 0.8) !important; color: #555555 !important; border: none !important; width: 45px !important; height: 45px !important; font-size: 18px !important; cursor: pointer !important; z-index: 10 !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: all 0.3s ease !important; border-radius: 0 !important; outline: none !important; }
.ahb-arrow:hover { background: rgba(255, 255, 255, 1) !important; color: var(--ahb-primary) !important; }
.ahb-arrow-prev { left: 0 !important; }
.ahb-arrow-next { right: 0 !important; }

/* -----------------------------------------------------------------
   5. PESTAÑAS INFERIORES (PC)
   ----------------------------------------------------------------- */
.ahb-carousel-nav { display: flex; justify-content: center; width: 100%; max-width: 1000px; margin: 0 auto; z-index: 999 !important; position: relative; margin-top: -25px !important; background-color: transparent !important; box-shadow: none !important; }
.ahb-nav-btn { flex: 0 1 auto; background: #ffffff !important; border: none !important; border-right: 1px solid #e0e0e0 !important; border-bottom: 4px solid transparent !important; padding: 16px 25px !important; font-size: 0.8rem !important; font-weight: 700 !important; color: #555555 !important; cursor: pointer !important; text-transform: uppercase !important; transition: all 0.3s ease !important; border-radius: 0 !important; white-space: nowrap !important; outline: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; }
.ahb-nav-btn:last-child { border-right: none !important; }
.ahb-nav-btn:hover { background-color: #f8f9fa !important; color: #000000 !important; }
.ahb-nav-btn.active { background-color: #ffffff !important; color: var(--ahb-primary) !important; border-bottom: 4px solid var(--ahb-primary) !important; }

/* -----------------------------------------------------------------
   6. MAGIA RESPONSIVA (MÓVIL)
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
    .ahb-container { margin-bottom: 20px !important; }
    .ahb-slides-mask { height: auto !important; background-color: #ffffff; }
    .ahb-slides-track { height: auto !important; }
    
    .ahb-slide { height: auto !important; background-size: 100% auto !important; background-position: top center !important; background-color: #ffffff; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; padding-top: 26% !important; }

    /* Ocultamos los elementos nativos de PC */
    .ahb-carousel-nav { display: none !important; }
    .ahb-pc-overlay { display: none !important; } /* Ocultamos los textos de PC en móvil */
    
    .ahb-arrow { top: 13% !important; transform: translateY(-50%) !important; width: 35px !important; height: 35px !important; font-size: 14px !important; }

    .ahb-mobile-card { display: flex !important; flex-direction: column !important; position: relative !important; background: #ffffff !important; padding: 25px 15px !important; text-align: center; pointer-events: auto; z-index: 5; margin-top: 0 !important; }
    
    .ahb-mob-title { font-size: 1.8rem !important; color: var(--ahb-primary) !important; font-weight: 800 !important; margin: 0 0 5px 0 !important; line-height: 1.2 !important; }
    .ahb-mob-desc { font-size: 1.1rem !important; color: var(--ahb-primary) !important; margin: 0 0 20px 0 !important; font-weight: 400 !important; }
    .ahb-mob-btn { display: inline-block !important; width: auto !important; align-self: center !important; background-color: var(--ahb-primary) !important; color: #ffffff !important; border-radius: 4px !important; padding: 12px 35px !important; font-size: 1.1rem !important; text-transform: uppercase !important; text-decoration: none !important; font-weight: bold !important; margin-top: 10px !important; }
}