/* ===== CALCULADORA DE ISR - MÉXICO 2025 ===== */

/* Hero Section */
.isr-hero {
    background: linear-gradient(135deg, #046bd2 0%, #045cb4 100%);
    color: white;
    padding: 80px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.isr-hero::after {
    display: none !important;
}

.isr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.isr-hero .container {
    position: relative;
    z-index: 1;
}

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

.isr-hero h1 i {
    margin-right: 15px;
    color: #4ade80;
}

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

/* Calculadora Section */
.calculadora-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

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

/* Cards */
.calculadora-card,
.resultados-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculadora-card:hover,
.resultados-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.calculadora-card h2,
.resultados-card h2 {
    font-size: 1.8rem;
    color: #046bd2;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculadora-intro {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Styles */
.isr-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #046bd2;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #046bd2;
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #64748b;
}

.form-hint {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #046bd2;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.info-box i {
    color: #046bd2;
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-box strong {
    color: #046bd2;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: #046bd2;
    color: white;
}

.btn-primary:hover {
    background: #045cb4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.3);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-accent {
    background: #22c55e;
    color: white;
}

.btn-accent:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-calcular,
.btn-limpiar {
    width: 100%;
    margin-top: 10px;
}

/* Resultados */
.resultados-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.resultados-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

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

.resultados-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Resultado Principal */
.resultado-principal {
    background: linear-gradient(135deg, #046bd2 0%, #0284c7 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.resultado-principal .label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.resultado-principal .monto {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.resultado-principal .descripcion {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 10px;
}

/* Desglose */
.desglose-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e2e8f0;
}

.desglose-box h3 {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desglose-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.desglose-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #046bd2;
    padding-top: 15px;
    margin-top: 5px;
    border-top: 2px solid #cbd5e1;
}

.desglose-item .label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desglose-item .valor {
    font-weight: 600;
    color: #334155;
}

.desglose-item .valor.positivo {
    color: #22c55e;
}

.desglose-item .valor.negativo {
    color: #ef4444;
}

/* Gráficos */
.grafico-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.grafico-container h3 {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 15px;
    text-align: center;
}

.grafico-container canvas {
    max-height: 300px;
}

/* Información Legal Section */
.info-legal-section {
    padding: 60px 20px;
    background: white;
}

.info-legal-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.info-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #046bd2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #046bd2, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.info-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.info-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.info-card ul li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 8px;
}

.info-card strong {
    color: #046bd2;
}

/* Ejemplos Section */
.ejemplos-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.ejemplos-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.ejemplo-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ejemplo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.ejemplo-card h3 {
    font-size: 1.3rem;
    color: #046bd2;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.calculo-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    width: 35px;
    height: 35px;
    background: #046bd2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #334155;
    display: block;
    margin-bottom: 5px;
}

.step-content p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.resultado-ejemplo {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
}

.resultado-ejemplo i {
    font-size: 1.5rem;
}

/* FAQ Section */
.faq-isr-section {
    padding: 60px 20px;
    background: white;
}

.faq-isr-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

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

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

.faq-question.active {
    background: #046bd2;
    color: white;
}

.faq-question i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.faq-answer.active {
    max-height: 2000px;
    padding: 20px 25px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.faq-answer li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #046bd2;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

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

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

/* Disclaimer Section */
.disclaimer-section {
    padding: 40px 20px;
    background: #fef3c7;
}

.disclaimer-box {
    background: white;
    border-left: 4px solid #fbbf24;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.disclaimer-box i {
    font-size: 2rem;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 5px;
}

.disclaimer-box p {
    color: #78716c;
    line-height: 1.7;
    margin: 0;
}

.disclaimer-box strong {
    color: #292524;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #046bd2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #045cb4;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .calculadora-grid {
        grid-template-columns: 1fr;
    }

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

    .isr-hero h1 {
        font-size: 2rem;
    }

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

    .resultado-principal .monto {
        font-size: 2.5rem;
    }

    .faq-isr-section h2,
    .info-legal-section h2,
    .ejemplos-section h2 {
        font-size: 1.8rem;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .calculadora-card,
    .resultados-card {
        padding: 25px;
    }

    .resultado-principal .monto {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
