/* =================================================================aya
   AuditCore - Estilos Generales y Componentes
   Rosiel Chacón | Consultoría DBA - SQL Developer
   ================================================================ */

:root {
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #334155;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* Clases de Utilidad y Marca */
.brand-color {
    color: var(--primary-color);
}

.highlight {
    color: var(--primary-color);
}

/* =================================================================
   1. SECCIÓN HERO
   ================================================================ */
.hero-section {
    padding: 100px 20px 70px 20px;
    background-color: var(--bg-white);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 540px;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-main);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 500;
}

.check-icon {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.hero-mockup-wrapper {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-window {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    position: relative;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 14px 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
}

.mockup-filename {
    margin-left: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
}

.mockup-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    display: block;
}

/* =================================================================
   2. SECCIÓN DE MÓDULOS / CAPACIDADES
   ================================================================ */
.modules-section {
    padding: 90px 20px 50px 20px;
    background-color: var(--bg-light);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.modules-stack {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.module-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.module-row.reverse {
    flex-direction: row-reverse;
}

.module-text {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.module-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.module-title {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.module-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.module-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.card-preview {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 480px;
}

/* =================================================================
   3. SECCIÓN DE FAQ (ACORDEÓN)
   ================================================================ */
.faq-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* =================================================================
   4. SECCIÓN DE PRECIOS Y PLANES
   ================================================================ */
.pricing-section {
    padding: 70px 20px 90px 20px;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 4px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li.disabled {
    color: #94a3b8;
}

.pricing-btn-secondary {
    display: block;
    text-align: center;
    background: var(--border-color);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.pricing-btn-secondary:hover {
    background: #cbd5e1;
}

.pricing-btn-primary {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.pricing-btn-primary:hover {
    background: #1d4ed8;
}

/* =================================================================
   5. DISEÑO RESPONSIVO (MEDIA QUERIES)
   Rosiel Chacón | Consultoría DBA - SQL Developer
   ================================================================ */

/* ----- Pantallas Medianas (Laptops pequeñas y Tablets horizontales) ----- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .module-title {
        font-size: 2rem;
    }
    .hero-section, .modules-section, .faq-section, .pricing-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .hero-container, .module-row {
        gap: 40px;
    }
}

/* ----- Pantallas Pequeñas (Tablets verticales y Celulares grandes) ----- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
    }
    
    .module-row, .module-row.reverse {
        flex-direction: column; /* Fuerza a que texto e imagen se apilen */
    }

    .hero-content, .hero-mockup-wrapper, 
    .module-text, .module-visual {
        max-width: 100%; /* Ocupan todo el ancho disponible */
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Centramos el contenido principal en móviles para mejor estética */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-checklist {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr; /* Una sola columna para los precios */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ----- Pantallas Extra Pequeñas (Celulares estándar) ----- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .module-title {
        font-size: 1.75rem;
    }

    .hero-section, .modules-section, .faq-section, .pricing-section {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hacemos que los botones ocupen todo el ancho para que sean fáciles de tocar */
    .btn-primary, 
    .pricing-btn-primary, 
    .pricing-btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .faq-question {
        font-size: 1.05rem;
    }
}

/* Estilos para el contenedor de 3 paneles */
.triple-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    background: #0f172a; /* Fondo oscuro elegante */
}

@media (min-width: 768px) {
    .triple-panel-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas medianas/grandes */
    }
}

.panel-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #1e293b;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.panel-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.panel-caption {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}