/*
 * =============================================================
 * E-FISCAL SALES SITE — Componente: Por Qué EFISCAL (Why Section)
 * Componentes: assets/css/components/why-section.css
 * Referencia: .clinerules › css-structure-enforcement
 * =============================================================
 */

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why__text h2 {
    margin-bottom: var(--space-md);
}

.why__text > p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
}

.why__points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why__point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--color-bg-subtle);
    padding: 1.2rem;
    border-radius: var(--radius-md);
}

.why__point-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-indigo));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why__point-icon i {
    color: #ffffff;
    font-size: .9rem;
}

.why__point-title {
    display: block;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: .2rem;
    font-size: .95rem;
}

.why__point-desc {
    color: var(--color-text-muted);
    font-size: .88rem;
}

/* Why Slider */
.why-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 480px; /* Tamaño fijo ideal */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: var(--color-bg-subtle, #f8fafc);
    box-shadow: var(--shadow-lg);
}

.why-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    border-radius: 24px;
}

.why-slide.active { 
    opacity: 1; 
    visibility: visible;
}

.why-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.why-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

.why-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.why-prev { left: 15px; }
.why-next { right: 15px; }

.why-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.why-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.why-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .why-layout { grid-template-columns: 1fr; }
    .why-slider { max-width: 100%; height: 300px; }
}
