/* ==========================================================================
   calculadora.css — Standalone Pricing Calculator Page
   Self-contained (this page loads no other stylesheet), variables mirror
   the same tokens defined in style.css / precios.css.
   ========================================================================== */

:root {
    --color-violet: #6B5CE7;
    --color-teal: #00C9A7;
    --color-navy: #2D2B55;
    --color-bg: #FFFFFF;
    --color-card: #FFFFFF;
    --color-text: #1C1C28;
    --color-text-mid: #4A4A5C;
    --color-text-muted: #6B6B7F;
    --gradient-primary: linear-gradient(135deg, #6B5CE7 0%, #00C9A7 100%);
    --gradient-deep: linear-gradient(135deg, #2D2B55 0%, #6B5CE7 50%, #00C9A7 100%);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --radius-card: 20px;
    --radius-btn: 10px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --container-max: 1200px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-display);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 760px;
}

/* ===========================
   Navbar (simplified, standalone)
   =========================== */
.calc-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--color-card);
    border-bottom: 1px solid var(--border-subtle);
}

.calc-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.calc-logo-img {
    height: 36px;
    width: auto;
}

.calc-logo span {
    background: var(--gradient-deep);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
}

.lang-option {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: background var(--transition), color var(--transition);
}

.lang-option.active {
    background: var(--color-violet);
    color: #FFFFFF;
}

/* ===========================
   Hero
   =========================== */
.calc-hero {
    padding: 64px 0 24px;
    text-align: center;
}

.calc-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-navy);
    max-width: 720px;
    margin: 0 auto 12px;
    line-height: 1.25;
}

.calc-subtitle {
    color: var(--color-text-mid);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ===========================
   Form
   =========================== */
.calc-body {
    padding: 24px 0 96px;
}

.calc-q {
    border: none;
    margin: 36px 0 0;
}

.calc-q legend {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 16px;
}

.calc-q-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 8px;
    /* Solid violet + white = 4.87:1, passes AA for this 13.6px bold digit;
       the previous violet-on-violet-tint combo measured 4.16:1 and failed. */
    background: var(--color-violet);
    color: #FFFFFF;
    font-size: 0.85rem;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.calc-options--stack {
    grid-template-columns: 1fr;
}

.calc-option {
    display: block;
    cursor: pointer;
}

.calc-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.calc-option-label {
    font-weight: 600;
    color: var(--color-navy);
}

.calc-option-hint {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.calc-option > .calc-option-label,
.calc-option-body {
    display: block;
    padding: 14px 18px;
    border: 2px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--color-card);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.calc-option:hover > .calc-option-label,
.calc-option:hover .calc-option-body {
    border-color: rgba(107, 92, 231, 0.4);
}

.calc-option input:checked + .calc-option-label,
.calc-option input:checked + .calc-option-body {
    border-color: var(--color-violet);
    background: rgba(107, 92, 231, 0.06);
    box-shadow: var(--shadow-sm);
}

.calc-option input:focus-visible + .calc-option-label,
.calc-option input:focus-visible + .calc-option-body {
    outline: 3px solid rgba(107, 92, 231, 0.5);
    outline-offset: 2px;
}

/* ===========================
   Micro panel
   =========================== */
.calc-micro {
    margin-top: 28px;
    background: rgba(0, 201, 167, 0.07);
    border-left: 4px solid var(--color-teal);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 24px 28px;
}

.calc-micro p {
    color: var(--color-text);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(107, 92, 231, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(107, 92, 231, 0.45);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-violet);
    border: 2px solid var(--color-violet);
}

.btn-secondary:hover {
    background: rgba(107, 92, 231, 0.08);
}

.calc-submit-row {
    margin-top: 36px;
    text-align: center;
}

.calc-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===========================
   Result
   =========================== */
.calc-result {
    margin-top: 48px;
    scroll-margin-top: 24px;
}

.calc-result-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.calc-result-profile {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.calc-estimate {
    background: var(--color-card);
    border: 1px solid rgba(107, 92, 231, 0.25);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.calc-estimate-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.calc-estimate-price {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-violet);
    line-height: 1.1;
}

.calc-estimate-price .unit {
    font-size: 1.1rem;
}

/* ===========================
   Early Bird price block
   =========================== */
.calc-eb-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    /* #005945 on this teal tint = 7.4:1, passes AAA. */
    background: rgba(0, 201, 167, 0.14);
    color: #005945;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.calc-estimate-price--eb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 2px;
}

.calc-price-label {
    flex-basis: 100%;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.calc-price-label--eb {
    margin-top: 4px;
}

.calc-price-full {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-color: currentColor;
}

.calc-price-discounted {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-violet);
    line-height: 1.1;
}

.calc-estimate-eb-after {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 10px;
}

.calc-estimate-range {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.calc-estimate-duration {
    color: var(--color-text-mid);
    font-size: 0.95rem;
    margin-top: 10px;
    font-weight: 600;
}

.calc-estimate-note {
    color: var(--color-text-mid);
    font-size: 0.88rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.calc-estimate--partner {
    border-style: dashed;
    border-color: rgba(0, 201, 167, 0.5);
}

/* Separates the one-off project cards from the two recurring options */
.calc-result-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 28px 0 4px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.calc-eb-note {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-top: 10px;
}

.calc-disclaimer {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-style: italic;
    margin: 24px 0 28px;
}

/* ===========================
   Error state
   =========================== */
.calc-error {
    margin-top: 40px;
    text-align: center;
}

.calc-error p {
    color: var(--color-text-mid);
    margin-bottom: 20px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .calc-hero h1 {
        font-size: 1.6rem;
    }

    .calc-options {
        grid-template-columns: 1fr;
    }

    .calc-ctas .btn {
        width: 100%;
    }
}
