/**
 * Estilos para Auditor de Recibo de Nómina 2025
 */

/* =====================================================
   HERO SECTION
   ===================================================== */
.auditor-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.auditor-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.auditor-hero h1 i {
    margin-right: 10px;
    color: #fbbf24;
}

.auditor-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 20px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-badges .badge i {
    color: #22c55e;
}

.hero-badges .badge.powered-by {
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.hero-badges .badge.powered-by i {
    color: #c4b5fd;
}

/* =====================================================
   AUDITOR SECTION
   ===================================================== */
.auditor-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.auditor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .auditor-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   FORMULARIO CARD
   ===================================================== */
.auditor-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auditor-card h2 {
    font-size: 1.5rem;
    color: #1e3a5f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auditor-card h2 i {
    color: #8b5cf6;
}

.auditor-intro {
    color: #64748b;
    margin-bottom: 25px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 i {
    color: #8b5cf6;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #64748b;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

/* Botones */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-auditar {
    flex: 1;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-auditar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-limpiar {
    padding: 14px 20px;
    font-size: 1rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-limpiar:hover {
    background: #e2e8f0;
}

/* =====================================================
   RESULTADOS CARD
   ===================================================== */
.resultados-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.resultados-card h2 {
    font-size: 1.5rem;
    color: #1e3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resultados-card h2 i {
    color: #8b5cf6;
}

.resultados-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.resultados-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.resultados-empty p {
    font-size: 1.1rem;
}

/* Estado General */
.resultado-estado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.estado-ok {
    background: #dcfce7;
    color: #166534;
}

.estado-warning {
    background: #fef3c7;
    color: #92400e;
}

.estado-error {
    background: #fee2e2;
    color: #991b1b;
}

.resultado-estado i {
    font-size: 1.4rem;
}

/* Resumen */
.resultado-resumen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.resumen-item {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.resumen-item.has-issues {
    background: #fef3c7;
}

.resumen-numero {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
}

.resumen-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* Comparativa */
.resultado-comparativa {
    margin-bottom: 25px;
}

.resultado-comparativa h3,
.resultado-desglose h3 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resultado-comparativa h3 i,
.resultado-desglose h3 i {
    color: #8b5cf6;
}

.comparativa-tabla {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.comparativa-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.comparativa-row:last-child {
    border-bottom: none;
}

.comparativa-row.header {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.comparativa-row span {
    text-align: right;
}

.comparativa-row span:first-child {
    text-align: left;
    font-weight: 500;
}

.diferencia-alta {
    color: #dc2626 !important;
    font-weight: 600;
}

/* Desglose */
.resultado-desglose {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
}

.desglose-seccion {
    margin-bottom: 20px;
}

.desglose-seccion:last-child {
    margin-bottom: 0;
}

.desglose-seccion h4 {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.desglose-seccion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.desglose-seccion li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.desglose-seccion li strong {
    color: #1e3a5f;
}

/* =====================================================
   ALERTAS SECTION
   ===================================================== */
.alertas-section {
    padding: 60px 20px;
    background: white;
}

.alertas-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3a5f;
    margin-bottom: 30px;
}

.alertas-section h2 i {
    color: #fbbf24;
    margin-right: 10px;
}

.alertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.alerta-card {
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid;
}

.alerta-error {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.alerta-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.alerta-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.alerta-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.alerta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.alerta-header i {
    font-size: 1.2rem;
}

.alerta-error .alerta-header i { color: #dc2626; }
.alerta-warning .alerta-header i { color: #f59e0b; }
.alerta-info .alerta-header i { color: #3b82f6; }
.alerta-success .alerta-header i { color: #22c55e; }

.alerta-categoria {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}

.alerta-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.alerta-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.alerta-detalle {
    font-weight: 500;
    color: #374151 !important;
}

.alerta-recomendacion {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    font-size: 0.9rem !important;
    color: #64748b !important;
}

.alerta-recomendacion i {
    color: #fbbf24;
    margin-top: 2px;
}

/* =====================================================
   INFO LEGAL SECTION
   ===================================================== */
.info-legal-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.info-legal-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3a5f;
    margin-bottom: 40px;
}

.info-legal-section h2 i {
    color: #8b5cf6;
    margin-right: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.info-icon i {
    font-size: 1.4rem;
    color: white;
}

.info-card h3 {
    font-size: 1.15rem;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.info-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-card ul {
    padding-left: 20px;
    margin: 0;
}

.info-card li {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* =====================================================
   GUIA SECTION
   ===================================================== */
.guia-section {
    padding: 60px 20px;
    background: white;
}

.guia-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3a5f;
    margin-bottom: 40px;
}

.guia-section h2 i {
    color: #fbbf24;
    margin-right: 10px;
}

.guia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .guia-grid {
        grid-template-columns: 1fr;
    }
}

.guia-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    border: 2px solid;
}

.guia-ok {
    border-color: #22c55e;
    background: #f0fdf4;
}

.guia-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.guia-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.guia-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.guia-ok .guia-icon i { color: #22c55e; }
.guia-warning .guia-icon i { color: #f59e0b; }
.guia-error .guia-icon i { color: #dc2626; }

.guia-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3a5f;
}

.guia-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Disclaimer Box */
.disclaimer-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-icon i {
    font-size: 1.5rem;
    color: white;
}

.disclaimer-content h4 {
    font-size: 1.1rem;
    color: #92400e;
    margin-bottom: 10px;
}

.disclaimer-content p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.disclaimer-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .disclaimer-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-auditor-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.faq-auditor-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3a5f;
    margin-bottom: 40px;
}

.faq-auditor-section h2 i {
    color: #8b5cf6;
    margin-right: 10px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #1e3a5f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question i {
    color: #8b5cf6;
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
    margin: 0;
}

.faq-answer li {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fbbf24;
    color: #1e3a5f;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-accent:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .auditor-hero h1 {
        font-size: 1.8rem;
    }

    .auditor-hero p {
        font-size: 1rem;
    }

    .auditor-card,
    .resultados-card {
        padding: 20px;
    }

    .comparativa-row {
        font-size: 0.85rem;
        padding: 10px;
    }

    .resultado-resumen {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .alertas-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   OTRAS HERRAMIENTAS SECTION
   ===================================================== */
.otras-herramientas-section {
    padding: 60px 20px;
    background: #f1f5f9;
}

.otras-herramientas-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.otras-herramientas-section h2 i {
    color: #8b5cf6;
    margin-right: 10px;
}

.otras-herramientas-section > .container > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.herramientas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.herramienta-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #1e3a5f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.herramienta-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.herramienta-link i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #8b5cf6;
}

.herramienta-link span {
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
}

/* Colores por herramienta */
.herramienta-link.isr i { color: #3b82f6; }
.herramienta-link.imss i { color: #10b981; }
.herramienta-link.aguinaldo i { color: #f59e0b; }
.herramienta-link.finiquito i { color: #ef4444; }
.herramienta-link.ptu i { color: #8b5cf6; }
.herramienta-link.prima i { color: #06b6d4; }
.herramienta-link.sdi i { color: #f97316; }

/* =====================================================
   COMPARTIR SECTION
   ===================================================== */
.compartir-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.compartir-section h3 {
    font-size: 1.4rem;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.compartir-section h3 i {
    color: #ef4444;
    margin-right: 8px;
}

.compartir-section p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 1rem;
}

.compartir-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.compartir-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    color: white;
}

.compartir-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.compartir-btn.facebook {
    background: #1877f2;
}

.compartir-btn.twitter {
    background: #000000;
}

.compartir-btn.whatsapp {
    background: #25d366;
}

.compartir-btn.linkedin {
    background: #0a66c2;
}

.compartir-btn.email {
    background: #64748b;
}

@media (max-width: 600px) {
    .herramientas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compartir-buttons {
        flex-direction: column;
        align-items: center;
    }

    .compartir-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
