/* ===== CALCULADORA DE AGUINALDO - MÉXICO ===== */

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

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

.aguinaldo-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;
}

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

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

.aguinaldo-hero h1 i {
    margin-right: 15px;
    color: #FFD700;
}

.aguinaldo-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 */
.aguinaldo-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: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #046bd2;
    width: 20px;
}

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

.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-hint {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

/* 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: linear-gradient(135deg, #046bd2 0%, #045cb4 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #045cb4 0%, #044a96 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 107, 210, 0.3);
}

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

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1e293b;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

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

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

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

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

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

.resultado-principal .monto {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.resultado-principal .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.detalles-calculo {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #046bd2;
}

.detalles-calculo h3 {
    color: #046bd2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.detalle-item:last-child {
    border-bottom: none;
}

.detalle-label {
    color: #64748b;
    font-weight: 500;
}

.detalle-value {
    color: #334155;
    font-weight: 700;
}

.resultado-nota {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.resultado-nota i {
    color: #ff9800;
    font-size: 1.3rem;
    margin-top: 2px;
}

.resultado-nota p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

.info-legal-section h2 i {
    color: #046bd2;
}

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

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border-top: 4px solid #046bd2;
    transition: all 0.3s ease;
}

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

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

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

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

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

.info-card ul {
    margin-left: 20px;
    color: #334155;
    line-height: 1.8;
}

.info-card ul li {
    margin-bottom: 8px;
}

.formula-box {
    background: white;
    border: 2px dashed #046bd2;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* Ejemplos Section */
.ejemplos-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f5fa 0%, #e6f0fa 100%);
}

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

.ejemplos-section h2 i {
    color: #046bd2;
}

.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: all 0.3s ease;
}

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

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

.ejemplo-content p {
    color: #334155;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

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

.step-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #046bd2 0%, #045cb4 100%);
    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: #1e293b;
    display: block;
    margin-bottom: 5px;
}

.step-content p {
    color: #64748b;
    margin: 0;
}

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

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

.info-note {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.info-note i {
    color: #0284c7;
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-note p {
    margin: 0;
    color: #0c4a6e;
}

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

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

.faq-aguinaldo-section h2 i {
    color: #046bd2;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.faq-question:hover {
    background: rgba(4, 107, 210, 0.05);
}

.faq-question i {
    color: #046bd2;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

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

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

.faq-answer.active {
    max-height: 1000px;
    padding: 0 25px 25px;
}

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

.faq-answer ul {
    margin-left: 20px;
    color: #334155;
    line-height: 1.7;
}

.faq-answer ul li {
    margin-bottom: 8px;
}

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

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

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

/* Gráficos Container */
.graficos-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.grafico-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.grafico-card:hover {
    border-color: #046bd2;
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.1);
}

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

.grafico-wrapper {
    position: relative;
    height: 250px;
    margin-bottom: 15px;
}

.grafico-wrapper canvas {
    max-height: 100%;
}

.grafico-description {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.grafico-description strong {
    color: #046bd2;
    font-weight: 700;
}

/* Gráfico que ocupa todo el ancho */
.grafico-full {
    grid-column: 1 / -1;
}

.grafico-full .grafico-wrapper {
    height: 300px;
}

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

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

    .graficos-container {
        grid-template-columns: 1fr;
    }

    .grafico-full {
        grid-column: 1;
    }

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

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

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

    .grafico-wrapper {
        height: 220px;
    }

    .grafico-full .grafico-wrapper {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .aguinaldo-hero {
        padding: 60px 20px;
    }

    .aguinaldo-hero h1 {
        font-size: 1.7rem;
    }

    .calculadora-card,
    .resultados-card {
        padding: 25px;
    }

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

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

    .grafico-card {
        padding: 20px;
    }

    .grafico-card h3 {
        font-size: 1rem;
    }

    .grafico-wrapper {
        height: 200px;
    }

    .grafico-full .grafico-wrapper {
        height: 250px;
    }
}
