/* ============================================================ */
/* CALCULADORA DE RECURSOS — SHYRO                              */
/* Sobrescribe estilos del styles.css global                    */
/* Rediseño profesional gaming hosting.                         */
/* ============================================================ */

/* Base */
* {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6, p, span, a, li, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.calc-main {
    position: relative;
    z-index: 1;
    padding-top: clamp(100px, 12vw, 140px);
    padding-bottom: clamp(60px, 8vw, 80px);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.3s ease;
    width: 100%;
}

/* Fondo personalizado con overlay negro translúcido */
.calc-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../assets/hero/calculadora-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
}

.calc-main::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 50% 45%, transparent 0%, rgba(0,0,0,0.35) 100%),
        linear-gradient(
            to bottom,
            rgba(10, 10, 12, 0.85) 0%,
            rgba(10, 10, 12, 0.75) 50%,
            rgba(10, 10, 12, 0.92) 100%
        );
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

html[data-theme="light"] .calc-main::after {
    background:
        radial-gradient(ellipse 65% 50% at 50% 45%, transparent 0%, rgba(255,255,255,0.3) 100%),
        linear-gradient(
            to bottom,
            rgba(245, 246, 248, 0.88) 0%,
            rgba(245, 246, 248, 0.78) 50%,
            rgba(245, 246, 248, 0.94) 100%
        );
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.calc-hero {
    text-align: center;
    padding: 20px 0 50px;
    position: relative;
}

.calc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 30px -10px rgba(0, 229, 255, 0.4);
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    flex-wrap: wrap;
    justify-content: center;
}

html[data-theme="light"] .calc-hero-badge {
    border-color: rgba(0, 144, 168, 0.35);
    background: rgba(0, 144, 168, 0.08);
}

.calc-hero-title {
    font-size: clamp(1.6rem, 5vw + 0.5rem, 3rem);
    font-weight: 900;
    letter-spacing: clamp(-1.8px, -0.3vw, -0.5px);
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #B8B8C8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
    max-width: 100%;
}
html[data-theme="light"] .calc-hero-title {
    background: linear-gradient(180deg, #0d0d12 0%, #3a3a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
}

.calc-hero-sub {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.05rem);
    max-width: 680px;
    margin: 0 auto;
    text-wrap: balance;
    line-height: 1.6;
}

.calc-section { padding: 20px 0; }

/* ============================================ */
/* FORM                                         */
/* ============================================ */
.calc-form {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 60%),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 32px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 20px -8px rgba(0, 0, 0, 0.4),
        0 0 60px -30px rgba(0, 229, 255, 0.35);
    position: relative;
    width: 100%;
}

.calc-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    pointer-events: none;
}

html[data-theme="light"] .calc-form {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.015) 0%, rgba(0,0,0,0) 60%),
        var(--bg-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 20px -8px rgba(0, 0, 0, 0.10),
        0 0 60px -30px rgba(0, 144, 168, 0.25);
}

.calc-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(0.9rem, 1.2vw + 0.4rem, 1rem);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.4;
}

.calc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #00F0FF 0%, #00B8CC 45%, #0095AA 100%);
    color: #000;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 12px -4px rgba(0, 229, 255, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .calc-step-num {
    color: #ffffff;
    background: linear-gradient(180deg, #00C2DA 0%, #0095AA 50%, #007a8c 100%);
}

/* ============================================ */
/* RANGE                                        */
/* ============================================ */
.calc-players-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.calc-range {
    flex: 1;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .calc-range {
    background: rgba(0, 0, 0, 0.10);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.calc-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #00F0FF 0%, #0095AA 100%);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

html[data-theme="light"] .calc-range::-webkit-slider-thumb {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 12px rgba(0, 144, 168, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.8),
        0 3px 10px rgba(0, 0, 0, 0.5);
}

.calc-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: linear-gradient(180deg, #00F0FF 0%, #0095AA 100%);
    cursor: pointer;
    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .calc-range::-moz-range-thumb {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 12px rgba(0, 144, 168, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.calc-players-value {
    min-width: 130px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.calc-players-value strong {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-right: 4px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}
html[data-theme="light"] .calc-players-value strong {
    filter: drop-shadow(0 0 8px rgba(0, 144, 168, 0.35));
}

/* ============================================ */
/* OPTIONS (radios personalizados)              */
/* ============================================ */
.calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: clamp(0.82rem, 1vw + 0.4rem, 0.9rem);
    color: var(--text-secondary);
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
}

html[data-theme="light"] .calc-option {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calc-option:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--text-primary);
    background: rgba(0, 229, 255, 0.04);
    transform: translateY(-1px);
}

html[data-theme="light"] .calc-option:hover {
    border-color: rgba(0, 144, 168, 0.4);
    background: rgba(0, 144, 168, 0.05);
}

.calc-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-option-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.calc-option input:checked ~ .calc-option-text {
    color: var(--primary-color);
    font-weight: 600;
}

.calc-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 229, 255, 0.08);
    color: var(--text-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 20px rgba(0, 229, 255, 0.20),
        0 4px 12px -4px rgba(0, 229, 255, 0.35);
}

html[data-theme="light"] .calc-option:has(input:checked) {
    background: rgba(0, 144, 168, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 20px rgba(0, 144, 168, 0.20),
        0 4px 12px -4px rgba(0, 144, 168, 0.25);
}

/* ============================================ */
/* SELECT                                       */
/* ============================================ */
.calc-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.3s ease, box-shadow 0.25s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .calc-select {
    background-color: rgba(0, 0, 0, 0.02);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calc-select:hover {
    border-color: rgba(0, 229, 255, 0.35);
}
html[data-theme="light"] .calc-select:hover {
    border-color: rgba(0, 144, 168, 0.35);
}

.calc-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 3px rgba(0, 229, 255, 0.15),
        0 0 20px -6px rgba(0, 229, 255, 0.5);
}

html[data-theme="light"] .calc-select:focus {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 144, 168, 0.15),
        0 0 20px -6px rgba(0, 144, 168, 0.4);
}

.calc-select option {
    background: #0f0f14;
    color: #ffffff;
}

html[data-theme="light"] .calc-select option {
    background: #ffffff;
    color: #0d0d12;
}

/* Estado vacío del select */
.calc-select[data-empty="true"] {
    color: var(--text-secondary);
    opacity: 0.75;
}

.calc-select[data-empty="true"]:focus {
    opacity: 1;
}

.calc-select:not([data-empty="true"]) {
    color: var(--text-primary);
    opacity: 1;
}

/* ============================================ */
/* SUBMIT                                       */
/* ============================================ */
.calc-submit {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    background: linear-gradient(180deg, #00F0FF 0%, #00B8CC 45%, #0095AA 100%);
    color: #000;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset,
        0 8px 24px -8px rgba(0, 229, 255, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

html[data-theme="light"] .calc-submit {
    color: #ffffff;
    background: linear-gradient(180deg, #00C2DA 0%, #0095AA 50%, #007a8c 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset,
        0 8px 24px -8px rgba(0, 144, 168, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ============================================ */
/* PREGUNTA 7 — NETWORK (dinámica)              */
/* ============================================ */
.calc-step-network[hidden] {
    display: none !important;
}

.calc-options-network {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-options-network .calc-option {
    min-width: 56px;
    justify-content: center;
    padding: 12px 18px;
    font-weight: 700;
}

/* ============================================ */
/* RESULT                                       */
/* ============================================ */
.calc-result {
    max-width: 780px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: calcFadeIn 0.5s ease;
    width: 100%;
}

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-result-header { text-align: center; }

.calc-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #00F0FF 0%, #0095AA 100%);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 8px 24px -8px rgba(0, 229, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

html[data-theme="light"] .calc-result-badge {
    color: #ffffff;
}

.calc-result-title {
    font-size: clamp(1.4rem, 3vw + 0.5rem, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A8A8B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
    overflow-wrap: break-word;
    text-wrap: balance;
}
html[data-theme="light"] .calc-result-title {
    background: linear-gradient(180deg, #0d0d12 0%, #5a5a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.calc-result-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
    text-wrap: balance;
}

.calc-result-card {
    background:
        linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, rgba(0, 229, 255, 0) 55%),
        var(--bg-card);
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 229, 255, 0.15),
        0 20px 60px -20px rgba(0, 229, 255, 0.45),
        0 0 80px -30px rgba(0, 229, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calc-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.8), transparent);
    pointer-events: none;
}

html[data-theme="light"] .calc-result-card {
    background:
        linear-gradient(180deg, rgba(0, 144, 168, 0.05) 0%, rgba(0, 144, 168, 0) 55%),
        var(--bg-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(0, 144, 168, 0.2),
        0 20px 60px -20px rgba(0, 144, 168, 0.3),
        0 0 80px -30px rgba(0, 144, 168, 0.35);
}

.calc-result-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.calc-result-plan-name {
    font-size: clamp(1.3rem, 3vw + 0.5rem, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
    overflow-wrap: break-word;
}

.calc-result-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.calc-result-amount {
    font-size: clamp(1.6rem, 5vw + 0.5rem, 2.4rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #B0B0C0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.35));
    overflow-wrap: anywhere;
    word-break: break-word;
}
html[data-theme="light"] .calc-result-amount {
    background: linear-gradient(180deg, #0d0d12 0%, #5a5a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.calc-result-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================ */
/* TABLE                                        */
/* ============================================ */
.calc-result-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.25s ease, padding 0.25s ease;
}

.calc-result-row:hover:not(.calc-result-row-head) {
    background: rgba(0, 229, 255, 0.04);
    padding-left: 10px;
}

html[data-theme="light"] .calc-result-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .calc-result-row:hover:not(.calc-result-row-head) {
    background: rgba(0, 144, 168, 0.04);
}

.calc-result-row:last-child { border-bottom: none; }

.calc-result-row-head {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.calc-result-row > span:first-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.calc-plan {
    color: var(--primary-color);
    font-weight: 800;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
    overflow-wrap: anywhere;
    word-break: break-word;
}
html[data-theme="light"] .calc-plan {
    filter: drop-shadow(0 0 6px rgba(0, 144, 168, 0.35));
}

/* ============================================ */
/* FEATURES                                     */
/* ============================================ */
.calc-result-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.calc-result-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.calc-result-features li i {
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}
html[data-theme="light"] .calc-result-features li i {
    filter: drop-shadow(0 0 6px rgba(0, 144, 168, 0.4));
}

.calc-buy {
    justify-content: center;
    background: linear-gradient(180deg, #00F0FF 0%, #00B8CC 45%, #0095AA 100%);
    color: #000;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset,
        0 8px 24px -8px rgba(0, 229, 255, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.25);
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}
html[data-theme="light"] .calc-buy {
    color: #ffffff;
    background: linear-gradient(180deg, #00C2DA 0%, #0095AA 50%, #007a8c 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset,
        0 8px 24px -8px rgba(0, 144, 168, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.12);
}

.calc-result-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.calc-reset {
    align-self: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(127, 127, 127, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}
.calc-reset:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 24px -6px rgba(0, 229, 255, 0.4);
}

/* ============================================ */
/* [hidden] debe ganar siempre                  */
/* ============================================ */
.calc-form[hidden],
.calc-result[hidden],
.calc-step-network[hidden] {
    display: none !important;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

/* --- 768px: móviles grandes --- */
@media (max-width: 768px) {
    .calc-main {
        padding-top: clamp(90px, 11vw, 110px);
        padding-bottom: 60px;
    }

    .calc-hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        letter-spacing: -1px;
    }
    .calc-hero-sub { font-size: 0.95rem; }

    .calc-form { padding: 26px 20px; }

    .calc-players-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .calc-players-value { text-align: left; }

    .calc-result-card { padding: 26px 20px; }
    .calc-result-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .calc-result-plan-name { font-size: clamp(1.2rem, 5vw, 1.5rem); }
    .calc-result-amount { font-size: clamp(1.4rem, 6vw, 2rem); }

    .calc-result-row {
        gap: 8px;
        font-size: 0.82rem;
        padding: 10px 4px;
    }

    .calc-result-row-head { font-size: 0.68rem; }
}

/* --- 480px: móviles pequeños --- */
@media (max-width: 480px) {
    .calc-hero-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
        letter-spacing: -0.5px;
    }
    .calc-step-num { width: 24px; height: 24px; font-size: 0.75rem; }
    .calc-option { padding: 10px 14px; font-size: 0.85rem; }
    .calc-result-row {
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 0.82rem;
    }
    .calc-result-row > span:first-child {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .calc-result-row .calc-plan { font-size: 1rem; }
    .calc-options-network .calc-option { min-width: 48px; padding: 10px 14px; }
    .calc-reset { width: 100%; }
}

/* ============================================ */
/* TOAST — Notificación custom (reemplaza alert) */
/* ============================================ */
.calc-toast-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: calc(100vw - 24px);
}

.calc-toast-container.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.calc-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 229, 255, 0.15);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 420px;
    animation: toastIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="light"] .calc-toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 144, 168, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 20px rgba(0, 144, 168, 0.15);
}

.calc-toast i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.calc-toast span {
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paso faltante: se marca con un borde cyan suave */
.calc-step.calc-step-error {
    animation: stepShake 0.4s ease;
}

.calc-step.calc-step-error .calc-label > span:not(.calc-step-num) {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

@keyframes stepShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* Responsive toast */
@media (max-width: 480px) {
    .calc-toast-container {
        top: 80px;
        left: 12px;
        right: 12px;
        transform: none;
        max-width: none;
        width: auto;
    }
    .calc-toast-container.visible {
        transform: none;
    }
    .calc-toast {
        max-width: 100%;
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}

/* ============================================ */
/* CORRECCIÓN DE OFFSET POR TOPBAR              */
/* ============================================ */
body {
    padding-top: 38px;
}

.navbar {
    top: 38px !important;
}

.scroll-indicator {
    top: calc(38px + 50%) !important;
    transform: translateY(-50%) !important;
}

.mobile-menu {
    top: calc(38px + 80px);
}

@media (max-width: 768px) {
    body { padding-top: 36px; }
    .navbar { top: 36px !important; }
    .scroll-indicator { top: calc(36px + 50%) !important; }
    .mobile-menu { top: calc(36px + 80px); }
}

@media (max-width: 480px) {
    body { padding-top: 34px; }
    .navbar { top: 34px !important; }
    .scroll-indicator { top: calc(34px + 50%) !important; }
    .mobile-menu { top: calc(34px + 70px); }
}

/* ============================================ */
/* FIX: el fondo fixed de .calc-main tapaba el  */
/* footer porque no tenía stacking context.     */
/* Le damos al footer position: relative y      */
/* z-index mayor que el fondo.                  */
/* ============================================ */
.footer {
    position: relative;
    z-index: 2;
}

/* ============================================ */
/* REDUCED MOTION (accesibilidad)               */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .calc-result { animation: none; }
    .calc-step.calc-step-error { animation: none; }
    .calc-toast { animation: none; }
}

/* ============================================ */
/* FOCUS VISIBLE (accesibilidad)                */
/* ============================================ */
.calc-option:focus-within,
.calc-select:focus-visible,
.calc-submit:focus-visible,
.calc-reset:focus-visible,
.calc-buy:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}