/* ==========================================================
   RTO TIERRA DEL FUEGO - styles.css
   Mobile-first, compatible con inicio.html y script.js
   PALETA: Teal institucional (#0e5a6b)
   ========================================================== */


/* ===== VARIABLES Y RESET ===== */
:root {
    --primary: #0e5a6b;
    --primary-dark: #0a4352;
    --primary-light: #e6f2f4;
    --success: #2f7d32;
    --success-light: #e5f3e6;
    --error: #b42318;
    --error-light: #fdecea;
    --warning: #d97706;
    --warning-dark: #92400e;
    --warning-light: #fef6e7;
    --text-main: #16262b;
    --text-muted: #4a5a60;
    --text-light: #6b7a80;
    --bg-body: #f3f6f7;
    --bg-card: #ffffff;
    --border-color: #d3dcdf;
    --border-light: #e4eaec;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(11, 42, 51, 0.08);
    --shadow-lg: 0 8px 25px rgba(11, 42, 51, 0.12);
    --touch-size: 48px;
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}


body {
    font-family: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}


img,
iframe {
    max-width: 100%;
}


button,
input,
select {
    font-family: inherit;
}


:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}


/* ===== HEADER / NAVBAR ===== */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}


.navbar {
    padding: 0.75rem 0;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}


.logo i {
    font-size: 1.5rem;
}


.logo-img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 100%;
}


@media (max-width: 599px) {
    .logo-img {
        height: 72px;
    }
}


.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}


.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    transition: color 0.3s;
}


.nav-links a:hover {
    color: var(--primary);
}


/* ===== MENÚ HAMBURGUESA ===== */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 101;
}


.hamburger span {
    width: 24px;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}


.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}


.hamburger.active span:nth-child(2) {
    opacity: 0;
}


.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.nav-overlay.active {
    display: block;
    opacity: 1;
}


.nav-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 4.5rem;
    padding-bottom: env(safe-area-inset-bottom);
}


.nav-sidebar.active {
    right: 0;
}


.close-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-left: auto;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}


.close-menu:hover {
    color: var(--primary);
}


.nav-sidebar .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}


.nav-sidebar .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}


.nav-sidebar .nav-links a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}


.nav-sidebar .nav-links a:active {
    background-color: var(--primary-light);
}


/* ===== MOSTRAR HAMBURGUESA EN MÓVIL ===== */
@media (max-width: 599px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}


/* ===== NAVEGACIÓN EN TABLET+ / DESKTOP ===== */
@media (min-width: 600px) {
    .hamburger,
    .nav-overlay,
    .close-menu {
        display: none !important;
    }

    /* El sidebar deja de ser un panel fijo y se integra en el navbar */
    .nav-sidebar {
        display: block !important;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        transition: none;
    }

    .nav-sidebar .nav-links {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }

    .nav-sidebar .nav-links a {
        display: inline-block;
        padding: 0.5rem 0.25rem;
        border-bottom: none;
    }

    .nav-sidebar .nav-links a:hover {
        background-color: transparent;
        color: var(--primary);
    }
}


/* ===== CONTENEDOR PRINCIPAL ===== */
.main-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    width: 100%;
}


/* ===== INDICADOR DE PASOS ===== */
.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}


.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    min-width: 0;
}


.step-item.active {
    opacity: 1;
}


.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}


.step-item.active .step-number {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}


.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
    max-width: 70px;
    transition: color 0.3s ease;
}


.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}


.step-connector {
    flex: 0 0 24px;
    height: 2px;
    margin-top: 19px;
    background-color: var(--border-light);
    transition: background-color 0.3s ease;
}


/* El conector se pinta si el paso siguiente está activo */
.step-connector:has(+ .step-item.active) {
    background-color: var(--primary);
}


/* ===== TARJETA PRINCIPAL ===== */
.card-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
}


/* ===== PASOS DEL FORMULARIO ===== */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}


.form-step.active {
    display: block;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.form-step h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}


.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}


/* ===== GRUPOS DE FORMULARIO ===== */
.form-section {
    margin-bottom: 1.5rem;
}


.form-section h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.6rem;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    min-width: 0;
}


.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}


/* Inputs: 16px evita el zoom automático en iOS */
.text-input,
.select-input {
    width: 100%;
    min-height: var(--touch-size);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-main);
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.text-input::placeholder {
    color: #8a979c;
}


.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 90, 107, 0.2);
}


/* Date/time en iOS y Android */
input[type="date"].text-input,
input[type="time"].text-input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    text-align: left;
}


.select-input {
    -webkit-appearance: none;
    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='%2316262b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    text-overflow: ellipsis;
}


/* ===== INFO DE SEDE ===== */
.sede-info-hidden {
    display: none;
}


.sede-info-hidden.active {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--primary-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}


.sede-map-container {
    margin-bottom: 1rem;
}


.sede-map-container iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 8px;
}


.sede-details h4 {
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 1.05rem;
}


.sede-details p {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}


.sede-horarios {
    margin-top: 0.75rem;
}


.sede-horarios h5 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}


/* ===== TARIFA INFO ===== */
.tarifa-info {
    background-color: #f1f7f8;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}


.tarifa-monto {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.3rem 0;
}


.tarifa-nota {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}


/* ===== RESUMEN ===== */
.resumen-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}


.resumen-section {
    background-color: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    min-width: 0;
}


.resumen-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    border: none;
    padding: 0;
}


.resumen-section p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    color: var(--text-main);
}


.resumen-section strong {
    color: var(--text-main);
}


.tarifa-section {
    text-align: center;
    background-color: var(--warning-light);
    border-left-color: var(--warning-dark);
}


.monto-grande {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--warning-dark);
    margin: 0.3rem 0;
}


.monto-nota {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ===== FORMULARIO DE PAGO ===== */
.payment-form {
    margin: 0;
}


.payment-logos {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}


.payment-logos > div {
    flex-wrap: wrap;
    gap: 14px !important;
    margin: 0 !important;
}


.payment-logos img {
    height: auto;
    max-height: 32px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s;
}


.payment-logos img:hover {
    filter: grayscale(0%);
}


.payment-input-group {
    margin-bottom: 1rem;
    position: relative;
}


.payment-input-group input,
.payment-input-group select {
    width: 100%;
    min-height: var(--touch-size);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-main);
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.payment-input-group select {
    -webkit-appearance: none;
    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='%2316262b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
}


.payment-input-group input:focus,
.payment-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 90, 107, 0.2);
}


.payment-input-group.has-logo input {
    padding-right: 72px;
}


.card-logo-container {
    position: absolute;
    right: 10px;
    top: 24px;
    transform: translateY(-50%);
    width: 52px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


.card-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.expiry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}


.error {
    display: none;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
    line-height: 1.4;
}


.error.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}


/* ===== INPUTS DATE/TIME ESPECÍFICOS ===== */
input[type="date"],
input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
}


input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 2px;
    opacity: 0.6;
    filter: invert(0.8);
}


input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


input[type="date"]::-webkit-outer-spin-button,
input[type="date"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-outer-spin-button,
input[type="time"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Firefox */
input[type="date"],
input[type="time"] {
    color-scheme: light;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}


.terms-checkbox input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}


.terms-checkbox label {
    cursor: pointer;
    user-select: none;
    color: var(--text-main);
}


.terms-note {
    background-color: var(--warning-light);
    border: 1px solid #f2d49b;
    border-left: 4px solid var(--warning-dark);
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 1.25rem 0;
}


/* ===== BOTONES ===== */
.btn-primary,
.btn-secondary {
    width: 100%;
    min-height: var(--touch-size);
    padding: 0.8rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s, box-shadow 0.25s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    -webkit-tap-highlight-color: transparent;
}


.btn-primary {
    background-color: var(--primary);
    color: #fff;
}


.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(14, 90, 107, 0.3);
}


.btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}


.btn-primary:disabled {
    background-color: #c4cdd0;
    cursor: not-allowed;
    opacity: 0.8;
}


.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-top: 0.75rem;
}


.btn-secondary:hover {
    background-color: var(--bg-body);
    border-color: var(--primary);
    color: var(--primary);
}


.button-group {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 1.5rem;
}


.button-group .btn-secondary {
    margin-top: 0;
}


/* ===== RESULTADO (ÉXITO / ERROR) ===== */
.result-container {
    display: none;
    text-align: center;
}


.result-container:not(.hidden) {
    display: block;
}


.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}


.icon-circle.success {
    background: linear-gradient(135deg, var(--success), #1b5e20);
}


.icon-circle.error {
    background: linear-gradient(135deg, var(--error), #7a1a12);
}


#step-4 h2 {
    margin: 0.75rem 0 0.4rem;
    color: var(--text-main);
}


.result-message {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}


.confirmation-box,
.error-box {
    background-color: var(--primary-light);
    border: 1px solid #c5dde2;
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1.25rem 0;
    text-align: left;
}


.error-box {
    background-color: var(--error-light);
    border-color: #f1c0bb;
}


.confirmation-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(14, 90, 107, 0.15);
}


.error-box .confirmation-row {
    border-bottom: 1px solid rgba(180, 35, 24, 0.15);
}


.confirmation-row:last-child {
    border-bottom: none;
}


.confirmation-row .label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}


.confirmation-row .value {
    font-weight: 600;
    color: var(--text-main);
    overflow-wrap: anywhere;
}


.confirmation-row .monto {
    font-size: 1.2rem;
    color: var(--primary);
}


.appointment-box {
    background-color: #f1f7f8;
    margin-top: 1.5rem;
}


.appointment-box h4 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    border: none;
}


/* ===== SECCIÓN DE TARIFAS ===== */
.tarifas-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-lg);
}


.tarifas-section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}


.tarifas-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}


.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}


.tarifa-card {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}


.tarifa-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}


.tarifa-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
    border: none;
}


.tarifa-precio {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.3rem 0;
}


.tarifa-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}


.tarifas-nota {
    background-color: var(--warning-light);
    border: 1px solid #f2d49b;
    border-left: 4px solid var(--warning-dark);
    padding: 0.85rem;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* ===== FOOTER ===== */
footer {
    background-color: #0b2a33;
    color: #fff;
    margin-top: auto;
    padding: 2rem 1rem calc(1rem + env(safe-area-inset-bottom));
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}


.footer-col h4 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: #fff;
}


.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}


.footer-col ul {
    list-style: none;
}


.footer-col ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    overflow-wrap: anywhere;
}


.footer-col a {
    color: #fff;
    text-decoration: none;
}


/* ===== LOGOS EN FOOTER ===== */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}


.footer-logo {
    display: block;
    max-width: 110px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    /* Fondo blanco para que los logos se vean bien sobre el footer oscuro.
       Si tus logos ya se ven bien, borra estas 3 líneas. */
    padding: 6px 10px;
    border-radius: 6px;
}


.footer-logo:hover {
    opacity: 1;
}


.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.8;
}


.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 16px;
}


.footer-flag-link {
    display: block;
    flex-shrink: 0;
    margin-left: auto;   /* la empuja a la derecha */
    line-height: 0;      /* evita espacio extra debajo de la imagen */
}


.footer-flag {
    display: block;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease;
}


.footer-flag-link:hover .footer-flag,
.footer-flag-link:focus-visible .footer-flag {
    opacity: 0.85;
}


.footer-flag-link:focus-visible {
    outline: 2px solid #5cc0d4;
    outline-offset: 2px;
}


/* Logos en móvil */
@media (max-width: 599px) {
    .footer-logos {
        gap: 1rem;
        justify-content: flex-start;
    }

    .footer-logo {
        max-width: 90px;
    }
}


/* Logos en tablet y desktop */
@media (min-width: 600px) {
    .footer-logos {
        gap: 2rem;
    }

    .footer-logo {
        max-width: 120px;
    }
}


/* ==========================================================
   TABLET (600px en adelante)
   ========================================================== */
@media (min-width: 600px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .main-container {
        padding: 2rem 1.5rem;
    }

    .card-container,
    .tarifas-section {
        padding: 2rem;
    }

    .steps-indicator {
        gap: 0.75rem;
    }

    .step-number {
        width: 46px;
        height: 46px;
    }

    .step-label {
        font-size: 0.85rem;
        max-width: 100px;
    }

    .step-connector {
        flex-basis: 48px;
        margin-top: 22px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .form-group {
        min-width: 0;
    }

    .form-step h2 {
        font-size: 1.7rem;
    }

    .sede-map-container iframe {
        height: 280px;
    }

    .resumen-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .tarifa-section {
        grid-column: 1 / -1;
    }

    .button-group {
        flex-direction: row;
        gap: 1rem;
    }

    .confirmation-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .confirmation-row .value {
        text-align: right;
    }

    .tarifas-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
    }

    .tarifas-nota {
        text-align: center;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }

    /* Hover solo donde existe puntero */
    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .tarifa-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}


/* ==========================================================
   DESKTOP (1024px en adelante)
   ========================================================== */
@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .main-container {
        padding: 3rem 2rem;
    }

    .card-container,
    .tarifas-section {
        padding: 2.5rem;
    }

    .steps-indicator {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .step-label {
        font-size: 0.9rem;
        max-width: none;
    }

    .step-connector {
        flex-basis: 60px;
        margin-top: 24px;
    }

    .form-step h2 {
        font-size: 1.9rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .form-section h4 {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .form-group {
        min-width: 0;
        overflow: hidden;
    }

    .text-input,
    .select-input {
        width: 100%;
    }

    input[type="date"].text-input,
    input[type="time"].text-input {
        width: 100%;
    }

    .text-input,
    .select-input,
    .payment-input-group input,
    .payment-input-group select {
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
    }

    .sede-map-container iframe {
        height: 320px;
    }

    .resumen-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tarifa-section {
        grid-column: 1 / -1;
    }

    .button-group {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .button-group .btn-secondary {
        margin-top: 0;
    }

    .confirmation-row {
        padding: 0.8rem 0;
    }

    .tarifas-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .tarifa-card {
        padding: 1.5rem 1rem;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}


/* ==========================================================
   PANTALLAS GRANDES (1440px+)
   ========================================================== */
@media (min-width: 1440px) {
    .card-container,
    .tarifas-section,
    .footer-container,
    .footer-bottom {
        max-width: 1200px;
    }

    .form-step h2 {
        font-size: 2rem;
    }
}


/* ==========================================================
   LANDSCAPE EN MÓVILES
   ========================================================== */
@media (max-height: 600px) and (orientation: landscape) {
    header {
        padding: 0.5rem 0;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .main-container {
        padding: 1rem;
    }

    .card-container {
        padding: 1rem;
    }

    .form-step h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        margin-bottom: 1rem;
    }

    .form-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .steps-indicator {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }

    .step-connector {
        flex-basis: 20px;
        margin-top: 18px;
    }
}


/* ==========================================================
   ACCESIBILIDAD - Modo oscuro (si el usuario lo prefiere)
   ========================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #5cc0d4;
        --primary-dark: #3fa6bb;
        --primary-light: #12303a;
        --success: #6fcf74;
        --success-light: #14301a;
        --error: #ff7b72;
        --error-light: #3a1a1f;
        --warning: #fbbf24;
        --warning-dark: #f59e0b;
        --text-main: #eaf1f3;
        --text-muted: #c1cdd1;
        --text-light: #94a4a9;
        --bg-body: #0a1417;
        --bg-card: #11202a;
        --border-color: #25383f;
        --border-light: #2f444c;
    }

    /* ===== INPUTS Y SELECTORES ===== */
    .text-input,
    .select-input,
    .payment-input-group input,
    .payment-input-group select {
        background-color: #1a2b33;
        color: #eaf1f3;
        border-color: #35505a;
    }

    .text-input:focus,
    .select-input:focus,
    .payment-input-group input:focus,
    .payment-input-group select:focus {
        border-color: #5cc0d4;
        box-shadow: 0 0 0 3px rgba(92, 192, 212, 0.2);
    }

    .text-input::placeholder {
        color: #6f8187;
    }

    /* ===== SELECTORES CON ICONOS ===== */
    .select-input,
    .payment-input-group select {
        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='%23eaf1f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    }

    /* ===== DATE Y TIME PICKERS ===== */
    input[type="date"],
    input[type="time"] {
        background-color: #1a2b33;
        color: #eaf1f3;
    }

    input[type="date"]::-webkit-calendar-picker-indicator,
    input[type="time"]::-webkit-calendar-picker-indicator {
        filter: invert(1) brightness(0.9);
        opacity: 0.8;
    }

    input[type="date"]::-webkit-calendar-picker-indicator:hover,
    input[type="time"]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }

    /* ===== BOTONES ===== */
    /* Texto oscuro: el blanco sobre el teal claro no tiene buen contraste */
    .btn-primary {
        color: #06222a;
    }

    .btn-primary:disabled {
        background-color: #2a3b42;
        color: #7d9097;
    }

    .btn-secondary {
        border-color: #35505a;
        color: #c1cdd1;
    }

    .btn-secondary:hover {
        background-color: #162a32;
        border-color: #5cc0d4;
        color: #5cc0d4;
    }

    /* ===== SECCIONES DE RESUMEN ===== */
    .resumen-section {
        background-color: #12303a;
        border-left-color: #5cc0d4;
    }

    .resumen-section p {
        color: #e3ecef;
    }

    .resumen-section h4 {
        color: #5cc0d4;
    }

    /* ===== CAJAS DE CONFIRMACIÓN ===== */
    .confirmation-box {
        background-color: #12303a;
        border-color: #2a5663;
    }

    .confirmation-box .label {
        color: #a6dbe6;
    }

    .confirmation-box .value {
        color: #eaf1f3;
    }

    .error-box {
        background-color: #3a1a1f;
        border-color: #6b2e32;
    }

    .error-box .label {
        color: #ff9ca3;
    }

    .error-box .value {
        color: #ffc4ca;
    }

    /* ===== TARJETAS DE TARIFA ===== */
    .tarifa-card {
        background: linear-gradient(135deg, #12303a, #1a2b33);
        border-color: #35505a;
    }

    .tarifa-card h4 {
        color: #eaf1f3;
    }

    .tarifa-precio {
        color: #5cc0d4;
    }

    .tarifa-desc {
        color: #a9b8bd;
    }

    /* ===== SECCIÓN DE TARIFAS ===== */
    .tarifas-section {
        background-color: #11202a;
        border: 1px solid #25383f;
    }

    .tarifas-section h3 {
        color: #eaf1f3;
    }

    .tarifas-subtitle {
        color: #a9b8bd;
    }

    .tarifas-nota {
        background-color: #2d2414;
        border: 1px solid #5a4a28;
        border-left: 4px solid #fbbf24;
        color: #f3d76b;
    }

    .tarifas-nota strong {
        color: #fbbf24;
    }

    /* ===== SECCIÓN DE TARIFA (DENTRO DEL RESUMEN) ===== */
    .tarifa-section {
        background-color: #2d2414;
        border-left-color: #fbbf24;
    }

    .tarifa-section h4 {
        color: #fbbf24;
    }

    .monto-grande {
        color: #fbbf24;
    }

    /* ===== TÉRMINOS Y NOTAS ===== */
    .terms-note {
        background-color: #2d2414;
        border: 1px solid #5a4a28;
        border-left: 4px solid #fbbf24;
        color: #f3d76b;
    }

    .terms-checkbox label {
        color: #eaf1f3;
    }

    /* ===== INDICADORES DE PASO ===== */
    .step-number {
        background-color: #25383f;
        color: #94a4a9;
    }

    .step-item.active .step-number {
        background-color: #5cc0d4;
        color: #06222a;
        box-shadow: 0 0 0 4px rgba(92, 192, 212, 0.2);
    }

    .step-label {
        color: #94a4a9;
    }

    .step-item.active .step-label {
        color: #5cc0d4;
    }

    .step-connector {
        background-color: #25383f;
    }

    .step-connector:has(+ .step-item.active) {
        background-color: #5cc0d4;
    }

    /* ===== INFO DE SEDE ===== */
    .sede-info-hidden.active {
        background-color: #12303a;
        border-left-color: #5cc0d4;
    }

    .sede-details h4 {
        color: #5cc0d4;
    }

    .sede-details p {
        color: #c1cdd1;
    }

    /* ===== TARIFA INFO ===== */
    .tarifa-info {
        background-color: #12303a;
        border-left-color: #5cc0d4;
    }

    .tarifa-monto {
        color: #5cc0d4;
    }

    .tarifa-nota {
        color: #a9b8bd;
    }

    /* ===== MENSAJES DE ERROR ===== */
    .error {
        color: #ff9ca3;
    }

    /* ===== RESULTADO (ÉXITO/ERROR) ===== */
    .result-message {
        color: #c1cdd1;
    }

    #step-4 h2 {
        color: #eaf1f3;
    }

    /* ===== APPOINTMENT BOX ===== */
    .appointment-box {
        background-color: #12303a;
    }

    .appointment-box h4 {
        color: #5cc0d4;
    }
}


/* ==========================================================
   REDUCCIÓN DE MOVIMIENTO (prefers-reduced-motion)
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}


/* ==========================================================
   IMPRESIÓN
   ========================================================== */
@media print {
    header,
    footer,
    .steps-indicator,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    body {
        background: #fff;
    }

    .card-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .main-container {
        max-width: 100%;
    }
}

/* ==========================================================
   MODO TALLER: estética brusca (override, pegar al final)
   ========================================================== */
:root {
    --ink: #0a0f12;
    --accent: #ff6a00;
    --hazard: #ffd400;
    --edge: #0a0f12;
    --stripes: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--ink) 14px 28px);
    --font-display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root { --edge: #3a5560; }
}

/* ----- Base ----- */
body {
    background-color: var(--ink);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px);
}

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--hazard);
    outline-offset: 3px;
}

/* ----- Header ----- */
header {
    background-color: var(--ink);
    border-bottom: 5px solid var(--accent);
    box-shadow: none;
}

header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -15px;
    height: 10px;
    background: var(--stripes);
}

.logo { color: #fff; }

/* Si tu logo es oscuro y no se ve sobre negro, descomentá:
.logo-img { background: #fff; padding: 4px 10px; } */

.nav-links a,
.nav-sidebar .nav-links a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

.nav-links a:hover,
.nav-sidebar .nav-links a:hover {
    color: var(--accent);
}

.hamburger span { background-color: #fff; }
.close-menu { color: #fff; }
.close-menu:hover { color: var(--accent); }

@media (max-width: 599px) {
    .nav-sidebar {
        background-color: var(--ink);
        border-left: 5px solid var(--accent);
    }

    .nav-sidebar .nav-links a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-sidebar .nav-links a:hover,
    .nav-sidebar .nav-links a:active {
        background-color: var(--accent);
        color: var(--ink);
    }
}

/* ----- Hero ----- */
.hero {
    position: relative;
    margin-top: 15px; /* deja ver la franja del header */
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 16px),
        linear-gradient(120deg, var(--primary) 0%, #0a3944 100%);
    color: #fff;
    padding: 3.5rem 1rem 5rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-block;
    background: var(--hazard);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.8rem;
    transform: skewX(-12deg);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 10vw, 6rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 0 var(--ink);
}

.hero h1 span { color: var(--accent); }

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--ink);
}

/* ----- Pasos ----- */
.step-item { opacity: 0.6; }

.step-number {
    border-radius: 0;
    background-color: #2a3439;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
    transform: skewX(-10deg);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.step-item.active .step-number {
    background-color: var(--accent);
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--hazard);
}

.step-label {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cfd8dc;
}

.step-item.active .step-label { color: var(--hazard); }

.step-connector,
.step-connector:has(+ .step-item.active) {
    height: 4px;
    background-color: #2a3439;
}

.step-connector:has(+ .step-item.active) { background-color: var(--accent); }

/* ----- Tarjeta principal ----- */
.card-container,
.tarifas-section {
    position: relative;
    border-radius: 0;
    border: 3px solid var(--edge);
    box-shadow: 10px 10px 0 var(--accent);
    padding-top: 2.25rem;
}

.card-container::before,
.tarifas-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 12px;
    background: var(--stripes);
}

/* ----- Títulos ----- */
.form-step h2,
.tarifas-section h3,
#step-4 h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.005em;
}

.form-step h2::after,
.tarifas-section h3::after {
    content: "";
    display: block;
    width: 90px;
    height: 8px;
    background: var(--accent);
    margin-top: 0.6rem;
    transform: skewX(-25deg);
}

#step-4 h2::after { margin-left: auto; margin-right: auto; }

.subtitle,
.tarifas-subtitle { margin-top: 0.9rem; }

.form-section h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 4px solid var(--edge);
}

/* ----- Formularios ----- */
.form-group label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.text-input,
.select-input,
.payment-input-group input,
.payment-input-group select {
    border-radius: 0;
    border-width: 2px;
    border-color: var(--edge);
    font-weight: 600;
}

.text-input:focus,
.select-input:focus,
.payment-input-group input:focus,
.payment-input-group select:focus {
    border-color: var(--edge);
    box-shadow: 5px 5px 0 var(--accent);
}

.error { font-weight: 700; }

.terms-checkbox input { accent-color: var(--accent); }

/* ----- Botones ----- */
.btn-primary,
.btn-secondary {
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 3px solid var(--edge);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--hazard);
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:active:not(:disabled) {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 var(--ink);
}

.btn-primary:disabled {
    background: repeating-linear-gradient(-45deg, #c4cdd0 0 10px, #d9e0e2 10px 20px);
    color: #5b6a70;
    box-shadow: none;
    border-color: #9aa8ad;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--hazard);
}

/* ----- Bloques informativos ----- */
.sede-info-hidden.active,
.tarifa-info,
.resumen-section,
.confirmation-box,
.error-box,
.terms-note,
.tarifas-nota {
    border-radius: 0;
    border-width: 2px;
    border-left-width: 10px;
}

.sede-map-container iframe { border-radius: 0; border: 3px solid var(--edge); }

.sede-details h4,
.resumen-section h4,
.appointment-box h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tarifa-monto,
.monto-grande,
.confirmation-row .monto {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
}

.confirmation-row .monto { font-size: 1.8rem; }

/* ----- Tarjetas de tarifa ----- */
.tarifa-card {
    background: var(--ink);
    border: 2px solid var(--ink);
    border-bottom: 8px solid var(--accent);
    border-radius: 0;
    color: #fff;
}

.tarifa-card h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tarifa-icon { color: var(--hazard); }

.tarifa-precio {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
}

.tarifa-desc { color: #cfd8dc; }

@media (min-width: 600px) {
    .tarifa-card:hover {
        transform: translateY(-6px) rotate(-1deg);
        box-shadow: 8px 8px 0 var(--accent);
    }
}

/* ----- Resultado ----- */
.icon-circle {
    border-radius: 0;
    border: 4px solid var(--ink);
    transform: rotate(-6deg);
    box-shadow: 6px 6px 0 var(--hazard);
}

/* ----- Footer ----- */
footer {
    position: relative;
    background-color: var(--ink);
    border-top: 5px solid var(--accent);
    margin-top: 3rem;
}

footer::before {
    content: "";
    position: absolute;
    top: -17px; left: 0; right: 0;
    height: 12px;
    background: var(--stripes);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hazard);
}

.footer-col a:hover { color: var(--accent); }

/* ==========================================================
   FIX MODO DIURNO: header, menú lateral y pasos claros
   ========================================================== */
:root {
    /* Modo claro (diurno) */
    --page-bg: #e8edef;
    --page-lines: rgba(10, 15, 18, 0.045);
    --step-off-bg: #cdd6d9;
    --step-off-fg: #33444a;
    --step-label: #33444a;
    --step-label-active: #0a0f12;
    --step-line: #b4c0c4;
    --header-bg: #ffffff;
    --header-fg: #0a0f12;
    --header-hover: #0e5a6b;
    --sidebar-bg: #f4f6f7;
    --sidebar-border: #0e5a6b;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Modo oscuro (nocturno) */
        --page-bg: #0a0f12;
        --page-lines: rgba(255, 255, 255, 0.025);
        --step-off-bg: #2a3439;
        --step-off-fg: #ffffff;
        --step-label: #cfd8dc;
        --step-label-active: #ffd400;
        --step-line: #2a3439;
        --header-bg: #0a0f12;
        --header-fg: #ffffff;
        --header-hover: #ff6a00;
        --sidebar-bg: #0a0f12;
        --sidebar-border: #ff6a00;
    }
}

body {
    background-color: var(--page-bg);
    background-image: repeating-linear-gradient(45deg, var(--page-lines) 0 2px, transparent 2px 14px);
}

/* Header */
header {
    background-color: var(--header-bg);
}

.logo {
    color: var(--header-fg);
}

.nav-links a {
    color: var(--header-fg);
}

.nav-links a:hover {
    color: var(--header-hover);
}

.hamburger span {
    background-color: var(--header-fg);
}

/* Menú lateral móvil */
.nav-sidebar {
    background-color: var(--sidebar-bg);
    border-left: 5px solid var(--sidebar-border);
}

.nav-sidebar .nav-links a {
    color: var(--header-fg);
    border-bottom: 1px solid rgba(10, 15, 18, 0.08);
}

.nav-sidebar .nav-links a:hover,
.nav-sidebar .nav-links a:active {
    background-color: var(--accent, #ff6a00);
    color: var(--ink);
}

.close-menu {
    color: var(--header-fg);
}

.close-menu:hover {
    color: var(--accent, #ff6a00);
}

/* Pasos */
.step-number {
    background-color: var(--step-off-bg);
    color: var(--step-off-fg);
}

.step-label {
    color: var(--step-label);
}

.step-item.active .step-label {
    color: var(--step-label-active);
}

.step-connector {
    background-color: var(--step-line);
}

@media (prefers-color-scheme: dark) {
    .nav-sidebar .nav-links a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (min-width: 600px) {
    .nav-sidebar {
        background-color: transparent;
        border-left: none;
    }

    .nav-sidebar .nav-links a {
        border-bottom: none;
    }

    .nav-sidebar .nav-links a:hover,
    .nav-sidebar .nav-links a:active {
        background-color: transparent;
        color: var(--header-hover);
    }
}

/* ==========================================================
   EXTRAS: Marquee, Toggle Dark Mode, Íconos de Auto
   ========================================================== */

/* ----- 1. MARQUEE (Franja en movimiento) ----- */
.marquee-wrapper {
    overflow: hidden;
    background: var(--accent, #ff6a00);
    color: var(--ink);
    padding: 0.6rem 0;
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 3px solid var(--edge, #0a0f12);
    border-bottom: 3px solid var(--edge, #0a0f12);
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-text 25s linear infinite;
    width: max-content;
}

.marquee-content span {
    margin-right: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.marquee-content span::after {
    content: "✦";
    color: var(--edge, #0a0f12);
    font-size: 0.8rem;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----- 2. TOGGLE MODO OSCURO/CLARO ----- */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--accent, #ff6a00);
    color: var(--ink);
    border: 3px solid var(--edge, #0a0f12);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 4px 4px 0 var(--edge, #0a0f12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--edge, #0a0f12);
}

.theme-toggle:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* ----- 3. ÍCONOS DE AUTO EN EL HERO ----- */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.04)'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    background-repeat: repeat;
    background-position: bottom right;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   MODO MANUAL: dark-mode en :root
   ========================================================== */

/* Si el usuario activó modo oscuro manualmente */
html.dark-mode :root {
    --page-bg: #0a0f12;
    --page-lines: rgba(255, 255, 255, 0.025);
    --step-off-bg: #2a3439;
    --step-off-fg: #ffffff;
    --step-label: #cfd8dc;
    --step-label-active: #ffd400;
    --step-line: #2a3439;
    --header-bg: #0a0f12;
    --header-fg: #ffffff;
    --header-hover: #ff6a00;
    --sidebar-bg: #0a0f12;
    --sidebar-border: #ff6a00;
}

html:not(.dark-mode) :root {
    --page-bg: #e8edef;
    --page-lines: rgba(10, 15, 18, 0.045);
    --step-off-bg: #cdd6d9;
    --step-off-fg: #33444a;
    --step-label: #33444a;
    --step-label-active: #0a0f12;
    --step-line: #b4c0c4;
    --header-bg: #ffffff;
    --header-fg: #0a0f12;
    --header-hover: #0e5a6b;
    --sidebar-bg: #f4f6f7;
    --sidebar-border: #0e5a6b;
}

/* ==========================================================
   BODYS & TEXTOS: Fuente monoespaciada industrial
   ========================================================== */
body {
    font-family: 'Barlow Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main, #16262b);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Titulos (Condensada) */
.form-step h2,
.tarifas-section h3,
#step-4 h2,
.form-section h4,
.tarifas-section h4,
.resumen-section h4,
.sede-details h4,
.appointment-box h4 {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Subtitulos (Condensada) */
.subtitle,
.tarifas-subtitle {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #4a5a60);
}

/* Labels de inputs (Muy condensada y en mayusculas) */
.form-group label,
.payment-input-group label {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
   
}

/* Textos largos y parrafos */
p,
li,
.text-input,
.select-input {
    font-family: 'Barlow Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 0.95rem;
    
}

/* Placeholders (Monospace) */
.text-input::placeholder,
.payment-input-group input::placeholder {
    font-family: 'Barlow Mono', 'Courier New', monospace;
    color: #9aa4a9;
    font-size: 0.85rem;
}

/* Resumen y datos */
.resumen-section p,
.confirmation-row .value,
.sede-details p {
    font-family: 'Barlow Mono', 'Courier New', monospace;
    font-weight: 500;
    line-height: 1.5;
}

/* Botones (Condensada) */
.btn-primary,
.btn-secondary {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* Footer */
footer {
    font-family: 'Barlow Mono', 'Courier New', monospace;
}

.footer-col h4 {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
}

/* Step labels */
.step-label {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Marquee */
.marquee-content span {
    font-family: var(--font-display, 'Barlow Condensed', Impact, sans-serif);
    font-weight: 900;
}

/* Ajustes para legibilidad */
@media (min-width: 600px) {
    body {
        font-size: 15px;
    }
    
    .text-input,
    .select-input {
        font-size: 15px;
    }
}