:root {
    --color-primary: #16A34A;
    --color-primary-dark: #15803D;
    --color-primary-light: #c4edd2;

    --color-secondary: #1E3A8A;

    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;

    --color-text: #0F172A;
    --color-text-muted: #475569;

    --color-border: #E5E7EB;

    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;

    color: var(--color-text);
    background: var(--color-bg);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 3000;

    background: rgba(255, 255, 255, .88);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, .4);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    transition: all .35s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;

    padding: .5rem 1.5rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;

    text-decoration: none;
}

.nav-logo {
    width: 60px;
    height: auto;
}

.logo-link h1 {
    font-size: 1.6rem;
    line-height: 1;

    font-weight: 800;

    color: var(--color-secondary);

    transition:
        color .35s ease,
        transform .35s ease,
        text-shadow .35s ease;
}

.logo-link:hover h1 {
    color: #22C55E;

    transform: translateY(-2px) scale(1.03);

    text-shadow: 0 0 14px rgba(34, 197, 94, .35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    list-style: none;
}

.nav-links a {
    position: relative;

    text-decoration: none;

    color: var(--color-text);

    font-weight: 500;

    padding: .45rem .2rem;

    transition:
        color .35s ease,
        transform .35s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0%;
    height: 2px;

    border-radius: 10px;

    background: linear-gradient(90deg, #22C55E, #16A34A);

    transition: width .35s ease;
}

.nav-links a:hover {
    color: #16A34A;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;

    flex-direction: column;
    justify-content: space-between;

    width: 28px;
    height: 20px;

    border: none;
    background: none;

    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;

    border-radius: 2px;

    background: var(--color-text);

    transition: .3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.calculator-page {
    min-height: 100vh;
    padding-top: 90px;
}

.container {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 25px 20px 80px;
}

.progress-container {
    width: 100%;
    height: 10px;

    background: #E5E7EB;

    border-radius: 999px;

    overflow: hidden;

    margin-bottom: 22px;
}

.progress-bar {
    width: 20%;
    height: 100%;

    background: linear-gradient(90deg, #22C55E, #16A34A);

    transition: .35s ease;
}

.step {
    display: none;
    animation: fade .35s ease;
}

.step.active {
    display: block;
}

@keyframes fade {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    width: 100%;

    background: var(--color-white);

    border-radius: 18px;

    padding: 32px;

    border: 1px solid var(--color-border);

    box-shadow: var(--shadow-md);
}

.hero-card {
    text-align: center;
    padding: 38px 32px;
}

.hero-card h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);

    color: var(--color-secondary);

    margin-bottom: 12px;
}

.hero-card p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.step-number {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: .95rem;
    font-weight: 700;
}

.step-text {
    margin-bottom: 18px;
    color: var(--color-text-muted);
}

.benefits {
    list-style: none;
    margin-bottom: 28px;
}

.benefits li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

label {
    display: flex;
    flex-direction: column;

    gap: 8px;

    font-size: .92rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;

    padding: .85rem 1rem;

    border-radius: 12px;

    border: 1px solid var(--color-border);

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition: .25s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);

    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

#inputMeses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));

    gap: 14px;
}

.tipo-recibo {
    margin-bottom: 22px;
}

.btn,
.btn-secondary,
.btn-outline {
    width: 100%;

    border: none;
    cursor: pointer;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.btn {
    position: relative;
    overflow: hidden;

    padding: .85rem 1.4rem;

    border-radius: var(--radius-sm);

    background: linear-gradient(135deg, #16A34A, #15803D);

    color: #fff;

    box-shadow: 0 6px 18px rgba(22, 163, 74, .22);
}

.btn::before {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    background: rgba(255, 255, 255, .22);

    transform: skewX(-25deg);

    transition: left .55s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #22C55E, #16A34A);

    transform: translateY(-3px) scale(1.02);

    box-shadow: 0 14px 28px rgba(22, 163, 74, .35);
}

.btn:hover::before {
    left: 140%;
}

.btn-secondary {
    padding: .85rem 1.4rem;

    border-radius: 12px;

    background: #E5E7EB;
    color: #111827;
}

.btn-outline {
    padding: .85rem 1.4rem;

    border-radius: 12px;

    background: white;

    border: 2px solid var(--color-primary);

    color: var(--color-primary);
}

.buttons-row {
    display: flex;
    gap: 15px;

    margin-top: 24px;
}

.resultado-card {
    text-align: center;
}

.resultado-main {
    display: flex;
    justify-content: center;

    margin: 28px 0;
}

.resultado-paneles {
    width: 170px;
    height: 170px;

    border-radius: 50%;

    background: linear-gradient(135deg, #16A34A, #15803D);

    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.resultado-paneles span {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.resultado-paneles small {
    font-size: 1rem;
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    margin-top: 25px;
}

.resultado-item {
    background: #F8FAFC;

    border-radius: 16px;

    padding: 22px;
}

.resultado-item strong {
    display: block;

    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 1.8rem;
}

.detalles {
    display: none;
    margin-top: 22px;
}

#toggleDetalles {
    margin-top: 24px;
}

.detalles {
    display: none;
    margin-top: 24px;
}

.detalles.show {
    display: block;
}

.cotizacion-box {
    margin-top: 50px;

    padding: 32px;

    border-radius: 20px;

    background: #F8FAFC;
}

.cotizacion-box .btn {
    margin-top: 15px;
}

.cotizacion-box p {
    margin-top: 7px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;

    overflow: hidden;

    border-radius: 14px;
}

th,
td {
    padding: 14px;

    text-align: left;

    border-bottom: 1px solid #E5E7EB;
}

th {
    background: var(--color-primary);
    color: white;
}

td {
    background: white;
}

#modalContacto {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .55);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 9999;
}

.modalContent {
    width: 100%;
    max-width: 520px;

    background: white;

    border-radius: 24px;

    padding: 32px;

    position: relative;
}

#cerrarModal {
    position: absolute;

    top: 14px;
    right: 18px;

    font-size: 2rem;

    cursor: pointer;
}

#mensajeExito {
    display: none;

    margin-top: 16px;

    text-align: center;

    color: var(--color-primary);

    font-weight: 700;
}

.footer {
    background-color: #020617;

    color: #CBD5E1;

    padding: 1rem;

    text-align: center;
}

.footer p {
    color: #CBD5E1;
    font-size: .9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;

    list-style: none;

    margin-bottom: 15px;
}

.social-icon a {
    color: #CBD5E1;
    font-size: 30px;

    transition: .3s;
}

.social-icon a:hover {
    color: var(--color-primary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}