:root {
    /* Nueva Paleta de Colores Estricta */
    --color-green: #99B898;
    --color-peach: #FECEA8;
    --color-coral: #FF847C;
    --color-red: #E84A5F;
    --color-dark: #2A363B;
    
    /* Variables de UI */
    --bg-main: var(--color-dark);
    --card-bg: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --input-bg: #f9fafb;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    z-index: 1000;
    background: #ffffff;
    color: #111827;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 2px solid var(--color-coral);
    transform: translateY(-220%);
    transition: transform 0.2s ease;
    font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.navbar-burger:focus-visible,
.stepper-btn:focus-visible {
    outline: 3px solid var(--color-peach);
    outline-offset: 2px;
}

/* --- NAVEGACION --- */
.navbar {
    background-color: transparent !important;
    padding: 1rem 0;
}
.navbar-item {
    color: #ffffff !important;
    font-weight: 700;
}
.navbar-brand .navbar-item {
    font-size: 1.5rem;
    color: var(--color-peach) !important;
}
.navbar-item,
.navbar-brand .navbar-item {
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-end .navbar-item:hover,
.navbar-brand .navbar-item:hover {
    background-color: rgba(254, 206, 168, 0.16) !important;
    color: var(--color-peach) !important;
}
.navbar-burger {
    color: var(--color-peach) !important;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-burger:hover {
    background-color: rgba(254, 206, 168, 0.16) !important;
}
@media (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(42, 54, 59, 0.97) !important;
        border: 1px solid rgba(254, 206, 168, 0.2);
        border-radius: 14px;
        margin-top: 0.5rem;
        padding: 0.35rem;
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
    }
    .navbar-menu .navbar-item {
        color: #ffffff !important;
    }
    .navbar-menu .navbar-item:hover {
        background-color: rgba(254, 206, 168, 0.16) !important;
        color: var(--color-peach) !important;
    }
}

/* --- HOME HERO & CARDS (PREMIUM FINTECH STYLE) --- */
#home-view {
    position: relative;
}
.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.glow-1 { top: -10%; left: 10%; width: 400px; height: 400px; background: var(--color-coral); }
.glow-2 { bottom: 20%; right: 5%; width: 500px; height: 500px; background: var(--color-green); }

.trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(254, 206, 168, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-peach);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(254, 206, 168, 0.2);
    font-weight: 600;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -1px;
}
.home-title span {
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-subtitle {
    color: #d1d5db;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.home-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
}
.home-card.card-sueldo:hover { border-color: var(--color-red); box-shadow: 0 20px 40px rgba(232, 74, 95, 0.15); }
.home-card.card-mp:hover { border-color: var(--color-peach); box-shadow: 0 20px 40px rgba(254, 206, 168, 0.15); }
.home-card.card-moto:hover { border-color: var(--color-green); box-shadow: 0 20px 40px rgba(153, 184, 152, 0.15); }

.home-card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}
.home-card:hover .home-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.home-card h2 {
    color: #ffffff !important;
    font-weight: 700;
}
.home-card p {
    color: #e5e7eb !important;
    flex-grow: 1;
}
.home-card .button {
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-card {
    border: none !important;
    border-radius: 12px !important;
}

.btn-card-red {
    background-color: #b4233a !important;
    color: #ffffff !important;
}

.btn-card-peach {
    background-color: #f59e0b !important;
    color: #111827 !important;
}

.btn-card-green {
    background-color: #2f7a53 !important;
    color: #ffffff !important;
}

.btn-card-coral {
    background-color: #c2413a !important;
    color: #ffffff !important;
}

.btn-card .fa-arrow-right {
    color: currentColor;
}
.home-card:hover .button {
    transform: translateY(-2px);
    filter: brightness(0.97);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .home-title { font-size: 2.5rem; }
    .home-card { padding: 2rem 1.5rem; }
}

/* --- LAYOUT CALCULADORAS --- */
.calc-view { display: none; }
.back-btn {
    color: var(--color-peach);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
    background: transparent;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}
.back-btn:hover { opacity: 0.8; color: var(--color-peach); }

.panel-container {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (min-width: 769px) {
    .panel-container { flex-direction: row; }
}

/* Panel Izquierdo: Configuracion */
.panel-config {
    padding: 2.5rem;
    flex: 1;
    border-right: 1px solid var(--border-color);
}
.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-dark);
}
.panel-header i {
    color: var(--color-coral);
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Panel Derecho: Recibo */
.panel-receipt {
    padding: 2.5rem;
    width: 100%;
    background-color: #fafafa;
    color: var(--color-dark);
}
@media (min-width: 769px) {
    .panel-receipt { width: 400px; }
}

/* --- ESTILOS DE FORMULARIO (Igual a la imagen) --- */
.custom-field {
    margin-bottom: 1.75rem;
}
.custom-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}
.custom-sublabel {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.3rem;
    margin-bottom: 0.5rem;
}

/* Inputs de texto/numero */
.custom-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.custom-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}
.custom-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    background-color: var(--card-bg);
    transition: all 0.2s;
    outline: none;
    -moz-appearance: textfield;
}
.custom-input:focus {
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(255, 132, 124, 0.15);
}
.select.is-fullwidth,
.select.is-fullwidth select.custom-input {
    width: 100%;
}
.custom-input-wrapper .select.is-fullwidth {
    width: 100%;
}
.select select.custom-input {
    border: 1px solid var(--border-color) !important;
    padding-right: 2.5rem;
    color: var(--color-dark) !important;
    background-color: var(--card-bg) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.select select.custom-input option {
    color: var(--color-dark);
    background-color: var(--card-bg);
}
.select select.custom-input:focus {
    border-color: var(--color-coral) !important;
    box-shadow: 0 0 0 3px rgba(255, 132, 124, 0.15) !important;
}
.select::after {
    border-color: var(--color-coral) !important;
}
.custom-input::-webkit-outer-spin-button,
.custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Toggle Switch alineado perfectamente */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toggle-text {
    display: flex;
    flex-direction: column;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}
.slider:before {
    position: absolute; content: "";
    height: 20px; width: 20px; left: 4px; bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--color-green); }
input:checked + .slider:before { transform: translateX(22px); }

/* Input Stepper (+ / -) */
.stepper-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
}
.stepper-btn {
    background: transparent;
    border: none;
    color: var(--color-coral);
    font-size: 1.2rem;
    font-weight: 600;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.stepper-btn:hover { background: rgba(255, 132, 124, 0.1); }
.stepper-input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-dark);
    outline: none;
    -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Boton Principal */
.btn-calc {
    width: 100%;
    background-color: var(--color-red);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
}
.btn-calc:hover { background-color: #d13d51; }
.btn-calc:hover {
    border-radius: 12px;
}
.btn-calc:active { transform: scale(0.98); }
.btn-calc i { margin-right: 8px; }

/* --- ESTILOS DEL RECIBO --- */
.receipt-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.receipt-row.is-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}
.receipt-row.is-deduction {
    color: var(--color-red);
}
.receipt-row.is-addition {
    color: var(--color-coral);
}
.receipt-row span:last-child {
    font-weight: 700;
}

/* Caja Verde de Resultado Final */
.result-box-green {
    background-color: var(--color-green);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(153, 184, 152, 0.3);
}
.result-box-green::after {
    content: '\f0d6';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 6rem;
    color: rgba(255,255,255,0.1);
    pointer-events: none;
}
.result-box-green .result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}
.result-box-green .result-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

/* --- ACCORDION & VALIDATION STYLES --- */
.faq-question {
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}
.faq-question-text {
    display: flex;
    align-items: center;
}
.faq-question-text i {
    color: var(--color-peach);
    margin-right: 12px;
    font-size: 1.3rem;
}
.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--color-coral);
    font-size: 1rem;
}
.faq-box.is-active .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-green);
}
.faq-answer {
    display: none;
    padding-top: 1.2rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    line-height: 1.7;
}

/* Validation Classes */
.custom-input.is-invalid {
    border-color: var(--color-red) !important;
    box-shadow: 0 0 0 3px rgba(232, 74, 95, 0.15) !important;
}
.error-message {
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.4rem;
    display: block;
    animation: fadeIn 0.3s;
}

.panel-receipt .content-list {
    margin-top: 0.5rem;
    margin-left: 1.1rem;
    color: var(--color-dark);
}

.panel-receipt .content-list li {
    color: var(--color-dark);
    margin-bottom: 0.35rem;
}

.custom-input[aria-invalid="true"],
.stepper-input[aria-invalid="true"] {
    border-color: var(--color-red) !important;
    box-shadow: 0 0 0 3px rgba(232, 74, 95, 0.15) !important;
}

/* --- SEO & MONETIZATION STYLES (PREMIUM DARK) --- */
.seo-container {
    max-width: 900px;
    margin: 0 auto;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.05rem;
}
.seo-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.seo-subtitle {
    color: var(--color-peach);
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}
.seo-text-block {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-coral);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.seo-text-block p,
.seo-text-block li,
.seo-text-block strong {
    color: #f8fafc;
}
.seo-text-block:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.ad-placeholder {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    color: #6b7280;
    padding: 2.5rem 1rem;
    text-align: center;
    border-radius: 16px;
    margin: 3rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.ad-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #9ca3af;
}
.faq-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.faq-box:hover, .faq-box.is-active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

footer {
    margin-top: auto;
    padding: 3rem 0 2rem;
    color: #e5e7eb;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-columns {
    margin-bottom: 1.5rem !important;
    align-items: flex-start;
}

.footer-col {
    text-align: left;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-text,
.footer-disclaimer {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:visited {
    color: #ffffff;
}

.footer-links a:hover {
    color: var(--color-peach);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
}
.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom strong {
    color: #ffffff;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-textarea {
    width: 100%;
    min-height: 140px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    background-color: var(--card-bg);
    resize: vertical;
    outline: none;
    transition: all 0.2s;
}

.contact-textarea:focus {
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(255, 132, 124, 0.15);
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1.5rem;
    }
    .footer-col,
    .footer-columns .column {
        text-align: center;
    }
    .footer-columns {
        row-gap: 1.25rem;
        margin-bottom: 1rem !important;
    }
    .footer-bottom {
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
