/* ==========================================================================
   Adhequim Hero Banner Stylesheet
   ========================================================================== */

/* Wrapper Principal */
.adhequim-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 780px;
    background-color: #080c1c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

/* Contenedor de Diapositivas (Slideshow) */
.adhequim-hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.adhequim-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out, filter 1.2s ease;
}

/* Diapositiva Activa */
.adhequim-hero-slide.adhequim-active {
    opacity: 1;
    z-index: 2;
}

/* Animación Ken Burns (Zoom y Movimiento Suave) */
.adhequim-hero-slides.adhequim-hero-kenburns .adhequim-hero-slide.adhequim-active {
    animation: adhequim-kenburns var(--adhequim-kb-duration, 10s) ease-in-out infinite alternate;
}

@keyframes adhequim-kenburns {
    0% {
        transform: scale(1.02) translate(0, 0);
    }
    100% {
        transform: scale(1.10) translate(-0.8%, -0.8%);
    }
}

/* Superposición de Gradiente Radial */
.adhequim-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 20, 42, 0.75) 0%, rgba(8, 12, 28, 0.95) 100%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.8s ease, opacity 0.8s ease;
}

/* Transición del Contenedor de Diapositivas al pasar el Cursor (Efecto Parallax 3D) */
.adhequim-hero-wrapper:hover .adhequim-hero-slides {
    transform: scale(1.04);
}

/* Cambios en el filtro de la diapositiva en hover */
.adhequim-hero-wrapper:hover .adhequim-hero-slide {
    filter: saturate(1.08) brightness(1.04);
}

/* El gradiente se oscurece en los bordes y aclara en el centro */
.adhequim-hero-wrapper:hover .adhequim-hero-overlay {
    background: radial-gradient(circle, rgba(10, 20, 42, 0.65) 0%, rgba(8, 12, 28, 0.98) 100%);
}

/* Contenedor del Contenido Central */
.adhequim-hero-container {
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 100px 24px 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    z-index: 3;
}

/* Contenedor del Badge Superior */
.adhequim-badge-wrapper {
    margin-bottom: 24px;
}

/* Badge Superior (Estilo Píldora con Transparencia) */
.adhequim-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Título Principal */
.adhequim-title {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 20px 0;
    max-width: 950px;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

/* Descripción / Subtítulo */
.adhequim-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px 0;
    max-width: 780px;
    text-wrap: balance;
}

/* Grupo de Botones */
.adhequim-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones Base */
.adhequim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.adhequim-btn span {
    line-height: 1;
}

/* Iconos de Botón */
.adhequim-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.adhequim-btn-icon i,
.adhequim-btn-icon svg {
    font-size: 13px;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Botón Principal (Azul) */
.adhequim-btn-primary {
    background-color: #1d4ed8;
    color: #ffffff !important;
    border: 1px solid #1d4ed8;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.adhequim-btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.adhequim-btn-primary:hover .adhequim-btn-icon {
    transform: translateX(4px);
}

/* Botón Secundario (Oscuro) */
.adhequim-btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.adhequim-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.adhequim-btn-secondary:hover .adhequim-btn-icon {
    transform: translateX(3px);
}

/* ==========================================================================
   Barra de Características (Pie de Banner)
   ========================================================================== */
.adhequim-features-bar {
    position: relative;
    width: 100%;
    background-color: #060a17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 24px;
    z-index: 3;
}

.adhequim-features-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Elemento de Característica */
.adhequim-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Círculo del Icono */
.adhequim-feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background-color: rgba(59, 130, 246, 0.08);
    border-radius: 50%;
}

.adhequim-feature-icon-wrapper i,
.adhequim-feature-icon-wrapper svg {
    color: #3b82f6;
    fill: #3b82f6;
    font-size: 15px;
    width: 1em;
    height: 1em;
}

/* Contenido de la Característica */
.adhequim-feature-content {
    text-align: left;
}

.adhequim-feature-title {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.adhequim-feature-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .adhequim-title {
        font-size: 42px;
    }
    
    .adhequim-features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .adhequim-hero-wrapper {
        min-height: auto;
    }
    
    .adhequim-hero-container {
        padding: 70px 20px 50px 20px;
    }
    
    .adhequim-title {
        font-size: 32px;
        line-height: 1.25;
    }
    
    .adhequim-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .adhequim-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .adhequim-btn {
        width: 100%;
        padding: 13px 24px;
    }
    
    .adhequim-features-bar {
        padding: 35px 20px;
    }
    
    .adhequim-features-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .adhequim-feature-item {
        align-items: center;
    }

    /* Estilos del carrusel en móvil */
    .adhequim-features-bar.adhequim-features-mobile-carousel {
        padding: 24px 0 24px 20px;
        overflow: hidden;
    }
    
    .adhequim-features-bar.adhequim-features-mobile-carousel .adhequim-features-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-right: 20px;
        padding-bottom: 12px;
        grid-template-columns: none;
        scrollbar-width: none;
    }
    
    .adhequim-features-bar.adhequim-features-mobile-carousel .adhequim-features-container::-webkit-scrollbar {
        display: none;
    }
    
    .adhequim-features-bar.adhequim-features-mobile-carousel .adhequim-feature-item {
        flex: 0 0 260px;
        scroll-snap-align: start;
        background-color: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 16px 20px;
        border-radius: 12px;
        align-items: flex-start;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Efectos Animados Avanzados (Entrada, Canvas de Partículas e Insignia)
   ========================================================================== */

/* Estilos del Canvas de Partículas */
.adhequim-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Sobre el overlay, bajo el contenido */
    pointer-events: none;
}

/* Animación de Entrada Escalonada (Fade-up) */
@keyframes adhequim-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adhequim-badge-wrapper,
.adhequim-title,
.adhequim-desc,
.adhequim-btn-group,
.adhequim-features-bar {
    opacity: 0;
    animation: adhequim-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.adhequim-badge-wrapper {
    animation-delay: 0.15s;
}

.adhequim-title {
    animation-delay: 0.35s;
}

.adhequim-desc {
    animation-delay: 0.55s;
}

.adhequim-btn-group {
    animation-delay: 0.75s;
}

.adhequim-features-bar {
    animation-delay: 0.95s;
}

/* Animación de Insignia Superior (Pulse Glow y Shimmer) */
.adhequim-badge {
    position: relative;
    overflow: hidden;
    animation: adhequim-pulse-glow 2.5s infinite ease-in-out;
}

/* Brillo metálico (Shimmer) que cruza de izquierda a derecha */
.adhequim-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: adhequim-shimmer 5s infinite ease-in-out;
}

@keyframes adhequim-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    }
}

@keyframes adhequim-shimmer {
    0% {
        left: -150%;
    }
    30% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}
