:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1000px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    text-align: center;
    /* Centrar contenidos del encabezado */
}

.logo-container {
    margin-bottom: 1.5rem;
}

#mainLogo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ipc-note {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

/* Steps Progress */
.steps-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.steps-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.step-dot {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.3s ease;
    font-weight: bold;
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* Form Styles */
.form-section {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.form-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select option {
    background: #1e293b;
    color: #fff;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Math Visuals */
.formula-box {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    line-height: 1.6;
    border-left: 4px solid var(--primary);
    text-align: left;
}

.math-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
}

.fraction .num {
    border-bottom: 1px solid var(--accent);
    padding: 0 4px;
}

.fraction .den {
    padding: 0 4px;
}

/* Checkbox Groups */
.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.checkbox-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.checkbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.destinatarios {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
}

.destinatario-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.destinatario-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

button.primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

button.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.total-card {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.total-card h3 {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.total-card .amount {
    font-size: 3rem;
    font-weight: 800;
}

.result-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.result-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.result-val {
    font-weight: 700;
    color: var(--accent);
}