/* =========================================================================
   BOOKING.CSS — FUENTE ÚNICA DE VERDAD PARA AGENDAMIENTO.HTML (FASE 1)
   ========================================================================= */

/* Force Spinner HIDDEN by default. Only JS can show it. */
#loading-spinner-overlay {
    display: none !important;
}

/* Make spinner visible ONLY when specifically requested by class */
#loading-spinner-overlay.visible {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* v10: Removed rigid display:block !important for Step 1 to fix overlap.
   Visibility is now handled by class="step-active" in HTML + JS toggling. */

/* Ensure other steps are hidden by default to avoid overlap via CSS, 
   JS will toggle them. */
#step-2-schedule,
#step-3-data,
#step-4-review {
    display: none;
}

/* Allow JS to overrides these if needed (using specific classes) */
.step-view.step-active {
    display: block !important;
}

/* Force Spinner HIDDEN by default. Only JS can show it. */
#loading-spinner-overlay {
    display: none !important;
}

/* Make spinner visible ONLY when specifically requested by class */
#loading-spinner-overlay.visible {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* v10: Removed rigid display:block !important for Step 1 to fix overlap.
   Visibility is now handled by class="step-active" in HTML + JS toggling. */

/* Ensure other steps are hidden by default to avoid overlap via CSS, 
   JS will toggle them. */
#step-2-schedule,
#step-3-data,
#step-4-review {
    display: none;
}

/* Allow JS to overrides these if needed (using specific classes) */
.step-view.step-active {
    display: block !important;
}
    </style>
    <style>
:root {
    --font-sans: 'Inter', sans-serif;
    --primary-color: var(--primary-color, oklch(0.50 0.25 310));
    --secondary-color: var(--accent-1, oklch(0.65 0.22 195));
    --accent-color: var(--accent-2, oklch(0.55 0.25 330));
}

/* === ARCHITECTURE FIX: Sticky Footer === */
/* REMOVED: html background to prevent blackout/burnout issues */

body {
    font-family: var(--font-sans);
    background-color: #0a0a12;
    /* Match Servicios.html */
    color: #ffffff;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Push footer to bottom */
/* form,
.container {
    Ensure content doesn't shrink
} REMOVED EMPTY RULE */

/* Allow main content to grow if needed, but 'mt-auto' on footer is safer with flex */
footer {
    margin-top: auto;
    /* Sticky footer magic */
    flex-shrink: 0;
}

#app-footer {
    margin-top: auto;
    flex-shrink: 0;
}


/* Títulos con Tipografía Inter (Sans) */
h1,
h2,
h3,
.modal-header,
.total-amount {
    font-family: var(--font-sans);
}

/* PAGE TRANSITION */
body {
    /* transition: opacity 0.4s ease-in-out; REMOVED FOR SAFETY */
    /* opacity: 0; REMOVED FOR SAFETY (PREVENT BLANK SCREEN) */
    opacity: 1;
}

/* body.loaded { opacity: 1; }  REMOVED */

body.fading-out {
    opacity: 0;
}

/* Modal Transitions */
.modal-overlay {
    transition: opacity 0.3s ease-in-out;
}

.modal-container {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    /* Borde con gradiente sutil */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 100%;
    max-width: 56rem;
    /* 896px */
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
    .glass-effect {
        padding: 2.5rem;
    }
}

.title-appear {
    opacity: 1;
}

.prose-style {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(233, 213, 255, 0.95);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.header-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

/* === SECCIÓN DE CONFIANZA (Estilos Mejorados) === */
.legal-section-header {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e9d5ff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(236, 0, 140, 0.3);
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .legal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.legal-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 174, 239, 0.5);
    /* Sutil resplandor al hover */
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.2);
}

.legal-icon {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

/* Animación sutil en hover para el icono */
.legal-card:hover .legal-icon {
    transform: scale(1.1);
}

.legal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.legal-description {
    font-size: 0.875rem;
    color: rgba(233, 213, 255, 0.8);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.wompi-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.legal-card-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    background-color: var(--accent-color);
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    width: 100%;
    max-width: 200px;
}

.legal-card-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.4);
}

.legal-card-button.secondary {
    background-color: transparent;
    color: #c4b5fd;
    border-color: #c4b5fd;
}

.legal-card-button.secondary:hover {
    background-color: #c4b5fd;
    color: #1a1a2e;
    box-shadow: 0 0 10px rgba(196, 181, 253, 0.4);
}

hr.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
}

/* === STEPPER === */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.step-indicator {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #EC008C, #00AEEF);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.step-description {
    font-size: 0.9rem;
    color: rgba(233, 213, 255, 0.8);
}

/* === FORMULARIOS CON INPUTS FLOTANTES === */
.data-fields-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-span-all {
    grid-column: 1 / -1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.floating-input-group {
    position: relative;
}

.floating-input {
    box-sizing: border-box;
    width: 100%;
    padding: 1.25rem 1rem 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.floating-input:is(:user-invalid, .user-invalid-fallback) {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25) !important;
}

.floating-input:is(:user-invalid, .user-invalid-fallback)+.floating-label {
    color: #f87171 !important;
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

.floating-input:not(:-moz-placeholder) {
    border-color: #00AEEF;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.2);
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
    border-color: #00AEEF;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.2);
}

.floating-input:not(:-moz-placeholder)+.floating-label {
    transform: translateY(-0.7rem) scale(0.75);
    color: #00AEEF;
    font-weight: 600;
}

.floating-input:focus+.floating-label,
.floating-input:not(:placeholder-shown)+.floating-label,
.floating-input:is(:autofill, :-webkit-autofill)+.floating-label,
.floating-input.has-value+.floating-label,
select.floating-input:focus+.floating-label,
select.floating-input.has-value+.floating-label {
    transform: translateY(-0.7rem) scale(0.75);
    color: #00AEEF;
    font-weight: 600;
}

.floating-input:is(:autofill, :-webkit-autofill) {
    border-color: #00AEEF;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.25), inset 0 0 0 1000px #16152b;
    transition: background-color 5000s ease-in-out 0s;
}

html:not(.dark) .floating-input:is(:autofill, :-webkit-autofill) {
    border-color: #7c3aed;
    -webkit-text-fill-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2), inset 0 0 0 1000px #f5f3ff;
}

select.floating-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23ffffff' opacity='0.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    color: #ffffff;
}

select.floating-input option {
    background-color: #1a1a2e;
    color: #ffffff;
}

.dynamic-fields-section {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.dynamic-fields-section.visible {
    display: flex;
}

.dynamic-fields-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 0.75rem;
}

.input-help-text {
    font-size: 0.8rem;
    color: #c4b5fd;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}


/* === SELECCIÓN DE SERVICIO === */
.consulta-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consulta-option {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.consulta-option:hover {
    transform: scale(1.02);
    z-index: 5;
}

.consulta-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
}

.consulta-option input:focus-visible+.consulta-label {
    outline: 2px solid #00AEEF;
    outline-offset: 3px;
    border-color: #00AEEF;
}

.consulta-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consulta-text-content {
    flex-grow: 1;
}

.consulta-title-button {
    font-weight: 700;
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.consulta-title-button:hover {
    color: #00AEEF;
    text-decoration: underline;
    text-decoration-color: rgba(0, 174, 239, 0.5);
}

.consulta-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #c4b5fd;
    transition: all 0.3s;
}

.consulta-label:hover .consulta-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.consulta-option input:checked+.consulta-label {
    background-color: rgba(236, 0, 140, 0.1);
    border-color: #EC008C;
    box-shadow: 0 0 20px rgba(236, 0, 140, 0.2);
}

.consulta-option:not(:has(:checked)):hover .consulta-label {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #00AEEF;
}

.consulta-option input:checked+.consulta-label .consulta-icon {
    background-color: #EC008C;
    color: #fff;
    box-shadow: 0 0 10px rgba(236, 0, 140, 0.5);
}

.consulta-price {
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.premium-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.premium-detail-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.premium-detail-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--secondary-color);
}

/* === BOTONES CON RESPLANDOR === */
.action-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 0.8rem 2rem;
    background-color: rgba(0, 174, 239, 0.2);
    color: white;
    border: 1px solid rgba(0, 174, 239, 0.5);
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: rgba(0, 174, 239, 0.4);
    border-color: #00AEEF;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.4);
}

.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.3);
    box-shadow: none;
}

.action-button.secondary-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.action-button.secondary-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.policy-link-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.policy-link-button:hover {
    transform: translateY(-2px);
    border-color: #00AEEF;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.2);
}

@keyframes pulse-button-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 174, 239, 0.3), 0 0 10px rgba(0, 174, 239, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 174, 239, 0.5), 0 0 25px rgba(0, 174, 239, 0.5);
    }
}

@keyframes animate-button-bg {

    0%,
    100% {
        background-color: rgba(0, 174, 239, 0.3);
    }

    33% {
        background-color: rgba(236, 0, 140, 0.3);
    }

    66% {
        background-color: rgba(0, 169, 157, 0.3);
    }
}

/* === CALENDARIO CLÍNICO NATIVO (2 COLUMNAS CAL.COM / WCAG 2.2) === */
#calendar-container {
    background-color: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: block;
    width: 100%;
    max-width: 100%;
}

#time-slots-wrapper {
    margin-top: 0;
    max-height: none;
    overflow-y: visible;
    overflow: visible;
    padding-right: 0;
    display: block;
    --scrollbar-thumb: rgba(255, 255, 255, 0.45);
    --scrollbar-track: rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

#time-slots-wrapper.visible {
    display: block;
}

@supports not (scrollbar-color: auto) {
    #time-slots-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    #time-slots-wrapper::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: 3px;
    }

    #time-slots-wrapper::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 3px;
    }

    #time-slots-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6);
    }
}

#time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-slots-placeholder {
    color: #c4b5fd;
    text-align: center;
    padding: 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 0.9rem;
}

.time-slot-btn {
    padding: 0.7rem 0.5rem;
    min-height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
    animation: slotFadeIn 0.35s forwards;
}

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

.time-slot-btn:hover:not(:disabled) {
    border-color: #00AEEF;
    background-color: rgba(0, 174, 239, 0.16);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
    transform: translateY(-1px);
}

.time-slot-btn.selected {
    background: linear-gradient(135deg, #EC008C, #8B5CF6);
    border-color: #EC008C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(236, 0, 140, 0.45);
}

.time-slot-btn:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    text-decoration: line-through;
    box-shadow: none;
}

/* Estilos del Calendario Nativo CSS Grid (Modo Cosmos Oscuro por defecto) */
.native-booking-calendar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
}

.native-cal-month-title {
    color: #ffffff;
}

.native-cal-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.native-cal-nav-btn:hover:not(:disabled) {
    background: rgba(0, 174, 239, 0.2);
    border-color: #00AEEF;
    color: #ffffff;
}

.native-cal-weekday {
    color: #c4b5fd;
}

.native-cal-day {
    border: 1px solid transparent;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.native-cal-day.is-available {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.native-cal-day.is-available:hover {
    background: rgba(0, 174, 239, 0.2);
    border-color: #00AEEF;
    transform: translateY(-1px);
}

.native-cal-day:focus-visible {
    outline: 2px solid #00AEEF;
    outline-offset: 2px;
}

.native-cal-day.is-today:not(.is-selected) {
    border-color: #00AEEF;
    color: #38bdf8;
}

.native-cal-day.is-selected {
    background: linear-gradient(135deg, #EC008C, #8B5CF6);
    border-color: #EC008C;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(236, 0, 140, 0.4);
}

.native-cal-day.is-disabled {
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    border-color: transparent;
}

.native-cal-legend {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(226, 232, 240, 0.78);
}

#booking-timezone-select {
    background-color: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.validation-message {
    color: #fda4af;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    min-height: 1.25rem;
    transition: opacity 0.3s;
}

/* === POLÍTICA DE CANCELACIÓN === */
.policy-checkbox-container {
    margin-top: 2rem;
    margin-bottom: -1rem;
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: -1rem;
}

@media (min-width: 640px) {
    .policy-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.policy-card-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.policy-card-label:hover {
    border-color: #00AEEF;
    background: rgba(0, 174, 239, 0.1);
}

.policy-card-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
}

.policy-card-label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid #00AEEF;
    outline-offset: 3px;
    border-color: #00AEEF;
}

.policy-card-check {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.policy-card-check-inner {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #EC008C;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}

.policy-card-label input:checked+.policy-card-check {
    border-color: #EC008C;
}

.policy-card-label input:checked+.policy-card-check .policy-card-check-inner {
    opacity: 1;
    transform: scale(1);
}

.policy-card-label input:checked~.policy-card-text {
    color: #fff;
}

.policy-card-label input:checked~.policy-card-check {
    background-color: rgba(236, 0, 140, 0.1);
}

.policy-card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(233, 213, 255, 0.9);
    transition: color 0.3s;
}

.policy-card-text strong {
    color: #c4b5fd;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.summary-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: rgba(236, 0, 140, 0.4);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(236, 0, 140, 0.1);
}

.summary-card.full-width {
    grid-column: 1 / -1;
}

.summary-card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c4b5fd;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.summary-card-label svg {
    width: 1.1rem;
    height: 1.1rem;
}

.summary-card-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === ESTILOS DE RESUMEN MEJORADOS === */
.summary-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .summary-data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
    }
}

.summary-data-grid .grid-span-all {
    grid-column: 1 / -1;
}

.summary-data-item {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-data-item strong {
    color: rgba(233, 213, 255, 0.8);
    font-weight: 600;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.summary-data-subheading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e9d5ff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    grid-column: 1 / -1;
}

.summary-data-subheading:first-child {
    margin-top: 0;
}

/* === TOTAL A PAGAR (Moderno) === */
.total-price-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.15), rgba(236, 0, 140, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    box-shadow: 0 0 25px rgba(0, 174, 239, 0.15);
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c4b5fd;
    font-family: var(--font-sans);
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.4);
}

.policy-box {
    display: none;
}

.button-group {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
    }

    .button-group .action-button,
    .button-group .policy-link-button {
        flex-grow: 1;
        width: auto;
    }
}

.step-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.clear-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.form-actions-container {
    text-align: center;
}

.spinner-overlay {
    position: fixed;
    /* v19: Fixed to center on screen regardless of parent */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    border-radius: 1.5rem;
}

.spinner-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spinner-overlay p {
    margin-top: 1rem;
    font-weight: 500;
    color: #e9d5ff;
    text-align: center;
    /* v19: Explicitly center text */
    padding: 0 1rem;
    /* Prevent edge touching */
}

/* colorful-spinner: Now uses unified classes from mythic-design.css?v=liquid-crystal-2026-v7 */

@keyframes changeColorSpinner {

    0%,
    100% {
        border-top-color: #EC008C;
    }

    25% {
        border-top-color: #00AEEF;
    }

    50% {
        border-top-color: #00A99D;
    }

    75% {
        border-top-color: #c4b5fd;
    }
}

/* === ESTILOS DEL MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* v12: Critical Fix - Prevent blocking clicks when hidden */
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* v12: Enable clicks only when visible */
}

.modal-content {
    max-height: 90dvh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 90%;
    max-width: 42rem;
    padding: 2rem 1.5rem;
    border: 2px solid;
    border-image-slice: 1;
    border-radius: 1.5rem;
    animation: changeBorderColor 4s linear infinite;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

@keyframes changeBorderColor {

    0%,
    100% {
        border-color: #EC008C;
    }

    25% {
        border-color: #00AEEF;
    }

    50% {
        border-color: #00A99D;
    }

    75% {
        border-color: #c4b5fd;
    }
}

.modal-overlay.visible .modal-content {
    max-height: 90dvh;
    overflow-y: auto;
    transform: scale(1);
    opacity: 1;
}

.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.modal-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

.modal-header {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

.modal-body {
    font-size: 0.95rem;
    color: rgba(233, 213, 255, 0.9);
    line-height: 1.6;
    max-height: 60dvh;
    overflow-y: auto;
    padding-right: 0.5rem;
    --scrollbar-thumb: rgba(255, 255, 255, 0.45);
    --scrollbar-track: rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@supports not (scrollbar-color: auto) {
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: 3px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 3px;
    }

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6);
    }
}

.modal-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5eead4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* === ESTILOS FOOTER PAGO SEGURO (CORREGIDO) === */
.secure-payment-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 1.5rem 1.5rem;
}

.secure-payment-text {
    font-size: 0.8rem;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pci-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pci-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* === FIN CAMBIO === */
/* === v15: SPINNER COLORIDO - Now uses unified classes from mythic-design.css?v=liquid-crystal-2026-v7 === */

/* @keyframes spin - removed, defined in mythic-design.css?v=liquid-crystal-2026-v7 */

/* La clase .modal-overlay ya maneja la visibilidad/display flex */

#loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Force Body/Main visibility so page isn't blank */
main {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

body {
    opacity: 1 !important;
    visibility: visible !important;
}

/* STEP LOGIC: Ensure steps can be toggled */
.step-view {
    display: none !important;
    /* Hidden by default */
}

.step-view.step-active {
    display: block !important;
    /* Visible only when active */
    visibility: visible !important;
    opacity: 1 !important;
    /* Controlled cleanly via View Transitions block */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

html.mode-light,
html.theme-pearl,
html[data-color-mode="light"] {
    color-scheme: light;
}

html.mode-light body,
html.theme-pearl body,
html[data-color-mode="light"] body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

html.mode-light .glass-effect,
html.theme-pearl .glass-effect,
html[data-color-mode="light"] .glass-effect {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.05) !important;
}

html.mode-light .header-container h1,
html.theme-pearl .header-container h1,
html[data-color-mode="light"] .header-container h1,
html.mode-light h1,
html.theme-pearl h1,
html[data-color-mode="light"] h1,
html.mode-light h2,
html.theme-pearl h2,
html[data-color-mode="light"] h2,
html.mode-light h3,
html.theme-pearl h3,
html[data-color-mode="light"] h3,
html.mode-light h4,
html.theme-pearl h4,
html[data-color-mode="light"] h4,
html.mode-light .step-title,
html.theme-pearl .step-title,
html[data-color-mode="light"] .step-title,
html.mode-light .legal-title,
html.theme-pearl .legal-title,
html[data-color-mode="light"] .legal-title,
html.mode-light h3.legal-title,
html.theme-pearl h3.legal-title,
html[data-color-mode="light"] h3.legal-title,
html.mode-light .modal-header,
html.theme-pearl .modal-header,
html[data-color-mode="light"] .modal-header {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

html.mode-light .legal-title,
html.theme-pearl .legal-title,
html[data-color-mode="light"] .legal-title,
html.mode-light h3.legal-title,
html.theme-pearl h3.legal-title,
html[data-color-mode="light"] h3.legal-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
}

/* Modales Pop-Up en Modo Claro (Video, Primera Vez, Seguimiento, Restaurar) */
html.mode-light .modal-overlay,
html.theme-pearl .modal-overlay,
html[data-color-mode="light"] .modal-overlay,
html.mode-light #video-modal,
html.theme-pearl #video-modal,
html[data-color-mode="light"] #video-modal {
    background-color: rgba(15, 23, 42, 0.55) !important;
}

html.mode-light .modal-content,
html.theme-pearl .modal-content,
html[data-color-mode="light"] .modal-content,
html.mode-light #video-modal .modal-crystal-panel,
html.theme-pearl #video-modal .modal-crystal-panel,
html[data-color-mode="light"] #video-modal .modal-crystal-panel {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    color: #0f172a !important;
}

html.mode-light .modal-body,
html.theme-pearl .modal-body,
html[data-color-mode="light"] .modal-body,
html.mode-light .modal-body p,
html.theme-pearl .modal-body p,
html[data-color-mode="light"] .modal-body p,
html.mode-light .modal-body li,
html.theme-pearl .modal-body li,
html[data-color-mode="light"] .modal-body li,
html.mode-light #video-modal p,
html.theme-pearl #video-modal p,
html[data-color-mode="light"] #video-modal p {
    color: #334155 !important;
}

html.mode-light .modal-body h4,
html.theme-pearl .modal-body h4,
html[data-color-mode="light"] .modal-body h4 {
    color: #0284c7 !important;
    -webkit-text-fill-color: #0284c7 !important;
}

html.mode-light .modal-close-button,
html.theme-pearl .modal-close-button,
html[data-color-mode="light"] .modal-close-button {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html.mode-light .modal-close-button:hover,
html.theme-pearl .modal-close-button:hover,
html[data-color-mode="light"] .modal-close-button:hover {
    background-color: #e2e8f0 !important;
    color: #0284c7 !important;
}

html.mode-light .header-container p,
html.theme-pearl .header-container p,
html[data-color-mode="light"] .header-container p,
html.mode-light .prose-style,
html.theme-pearl .prose-style,
html[data-color-mode="light"] .prose-style,
html.mode-light .step-description,
html.theme-pearl .step-description,
html[data-color-mode="light"] .step-description,
html.mode-light .legal-description,
html.theme-pearl .legal-description,
html[data-color-mode="light"] .legal-description {
    color: #334155 !important;
}

html.mode-light .legal-section-header,
html.theme-pearl .legal-section-header,
html[data-color-mode="light"] .legal-section-header {
    color: #0f172a !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.3) !important;
}

html.mode-light .legal-card,
html.theme-pearl .legal-card,
html[data-color-mode="light"] .legal-card {
    background: rgba(241, 245, 249, 0.8) !important;
    border: 1.5px solid #cbd5e1 !important;
}

html.mode-light .legal-card:hover,
html.theme-pearl .legal-card:hover,
html[data-color-mode="light"] .legal-card:hover {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15) !important;
}

html.mode-light .legal-card-button,
html.theme-pearl .legal-card-button,
html[data-color-mode="light"] .legal-card-button {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

html.mode-light .legal-card-button:hover,
html.theme-pearl .legal-card-button:hover,
html[data-color-mode="light"] .legal-card-button:hover {
    background-color: #0369a1 !important;
    color: #ffffff !important;
}

html.mode-light .legal-card-button.secondary,
html.theme-pearl .legal-card-button.secondary,
html[data-color-mode="light"] .legal-card-button.secondary {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-color: #94a3b8 !important;
}

html.mode-light .legal-card-button.secondary:hover,
html.theme-pearl .legal-card-button.secondary:hover,
html[data-color-mode="light"] .legal-card-button.secondary:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html.mode-light hr.divider,
html.theme-pearl hr.divider,
html[data-color-mode="light"] hr.divider {
    border-top: 1px solid #cbd5e1 !important;
}

/* Inputs Flotantes en Modo Claro */
html.mode-light .floating-input,
html.theme-pearl .floating-input,
html[data-color-mode="light"] .floating-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #94a3b8 !important;
}

html.mode-light .floating-input::placeholder,
html.theme-pearl .floating-input::placeholder,
html[data-color-mode="light"] .floating-input::placeholder {
    color: #94a3b8 !important;
}

html.mode-light .floating-input:focus,
html.theme-pearl .floating-input:focus,
html[data-color-mode="light"] .floating-input:focus,
html.mode-light .floating-input:not(:placeholder-shown),
html.theme-pearl .floating-input:not(:placeholder-shown),
html[data-color-mode="light"] .floating-input:not(:placeholder-shown) {
    border-color: #0284c7 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

html.mode-light .floating-label,
html.theme-pearl .floating-label,
html[data-color-mode="light"] .floating-label {
    color: #64748b !important;
}

html.mode-light .floating-input:focus + .floating-label,
html.theme-pearl .floating-input:focus + .floating-label,
html[data-color-mode="light"] .floating-input:focus + .floating-label,
html.mode-light .floating-input:not(:placeholder-shown) + .floating-label,
html.theme-pearl .floating-input:not(:placeholder-shown) + .floating-label,
html[data-color-mode="light"] .floating-input:not(:placeholder-shown) + .floating-label,
html.mode-light .floating-input:not(:-moz-placeholder) + .floating-label,
html.theme-pearl .floating-input:not(:-moz-placeholder) + .floating-label,
html[data-color-mode="light"] .floating-input:not(:-moz-placeholder) + .floating-label,
html.mode-light .floating-input.has-value + .floating-label,
html.theme-pearl .floating-input.has-value + .floating-label,
html[data-color-mode="light"] .floating-input.has-value + .floating-label,
html.mode-light select.floating-input:focus + .floating-label,
html.theme-pearl select.floating-input:focus + .floating-label,
html[data-color-mode="light"] select.floating-input:focus + .floating-label,
html.mode-light select.floating-input.has-value + .floating-label,
html.theme-pearl select.floating-input.has-value + .floating-label,
html[data-color-mode="light"] select.floating-input.has-value + .floating-label {
    transform: translateY(-0.75rem) scale(0.75) !important;
    color: #0284c7 !important;
    background-color: #ffffff !important;
    padding: 0 6px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

html.mode-light select.floating-input,
html.theme-pearl select.floating-input,
html[data-color-mode="light"] select.floating-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #94a3b8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
}

html.mode-light select.floating-input option,
html.theme-pearl select.floating-input option,
html[data-color-mode="light"] select.floating-input option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html.mode-light .dynamic-fields-section,
html.theme-pearl .dynamic-fields-section,
html[data-color-mode="light"] .dynamic-fields-section {
    border-top: 1px dashed #cbd5e1 !important;
}

html.mode-light .dynamic-fields-section h4,
html.theme-pearl .dynamic-fields-section h4,
html[data-color-mode="light"] .dynamic-fields-section h4 {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    margin-bottom: 0.75rem !important;
}

html.mode-light .input-help-text,
html.theme-pearl .input-help-text,
html[data-color-mode="light"] .input-help-text {
    color: #64748b !important;
}

/* Selector de Servicios en Modo Claro */
html.mode-light .consulta-label,
html.theme-pearl .consulta-label,
html[data-color-mode="light"] .consulta-label {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html.mode-light .consulta-title-button,
html.theme-pearl .consulta-title-button,
html[data-color-mode="light"] .consulta-title-button,
html.mode-light .consulta-text-content span,
html.theme-pearl .consulta-text-content span,
html[data-color-mode="light"] .consulta-text-content span {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
}

html.mode-light .consulta-title-button:hover,
html.theme-pearl .consulta-title-button:hover,
html[data-color-mode="light"] .consulta-title-button:hover {
    color: #0284c7 !important;
}

html.mode-light .consulta-text-content p,
html.theme-pearl .consulta-text-content p,
html[data-color-mode="light"] .consulta-text-content p {
    color: #475569 !important;
}

html.mode-light .consulta-icon,
html.theme-pearl .consulta-icon,
html[data-color-mode="light"] .consulta-icon {
    background-color: #f1f5f9 !important;
    color: #0284c7 !important;
}

html.mode-light .consulta-option:not(:has(:checked)):hover .consulta-label,
html.theme-pearl .consulta-option:not(:has(:checked)):hover .consulta-label,
html[data-color-mode="light"] .consulta-option:not(:has(:checked)):hover .consulta-label {
    background-color: #f8fafc !important;
    border-color: #0284c7 !important;
}

html.mode-light .consulta-option input:checked + .consulta-label,
html.theme-pearl .consulta-option input:checked + .consulta-label,
html[data-color-mode="light"] .consulta-option input:checked + .consulta-label {
    background-color: #eff6ff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25) !important;
}

html.mode-light .consulta-option input:checked + .consulta-label .consulta-icon,
html.theme-pearl .consulta-option input:checked + .consulta-label .consulta-icon,
html[data-color-mode="light"] .consulta-option input:checked + .consulta-label .consulta-icon {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

html.mode-light .consulta-price,
html.theme-pearl .consulta-price,
html[data-color-mode="light"] .consulta-price {
    color: #0284c7 !important;
}

html.mode-light .premium-detail-btn,
html.theme-pearl .premium-detail-btn,
html[data-color-mode="light"] .premium-detail-btn {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
}

html.mode-light .premium-detail-btn:hover,
html.theme-pearl .premium-detail-btn:hover,
html[data-color-mode="light"] .premium-detail-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #0284c7 !important;
}

/* Calendario Nativo en Modo Claro (Cristal) */
html.mode-light #calendar-container,
html.theme-pearl #calendar-container,
html[data-color-mode="light"] #calendar-container {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html.mode-light .native-cal-month-title,
html.theme-pearl .native-cal-month-title,
html[data-color-mode="light"] .native-cal-month-title {
    color: #0f172a !important;
}

html.mode-light .native-cal-nav-btn,
html.theme-pearl .native-cal-nav-btn,
html[data-color-mode="light"] .native-cal-nav-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.mode-light .native-cal-nav-btn:hover:not(:disabled),
html.theme-pearl .native-cal-nav-btn:hover:not(:disabled),
html[data-color-mode="light"] .native-cal-nav-btn:hover:not(:disabled) {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

html.mode-light .native-cal-weekday,
html.theme-pearl .native-cal-weekday,
html[data-color-mode="light"] .native-cal-weekday {
    color: #64748b !important;
    font-weight: 700 !important;
}

html.mode-light .native-cal-day.is-available,
html.theme-pearl .native-cal-day.is-available,
html[data-color-mode="light"] .native-cal-day.is-available {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html.mode-light .native-cal-day.is-available:hover,
html.theme-pearl .native-cal-day.is-available:hover,
html[data-color-mode="light"] .native-cal-day.is-available:hover {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
}

html.mode-light .native-cal-day.is-today:not(.is-selected),
html.theme-pearl .native-cal-day.is-today:not(.is-selected),
html[data-color-mode="light"] .native-cal-day.is-today:not(.is-selected) {
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    background: #f0f9ff !important;
}

html.mode-light .native-cal-day.is-selected,
html.theme-pearl .native-cal-day.is-selected,
html[data-color-mode="light"] .native-cal-day.is-selected {
    background: linear-gradient(135deg, #0284c7, #6366f1) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

html.mode-light .native-cal-day.is-disabled,
html.theme-pearl .native-cal-day.is-disabled,
html[data-color-mode="light"] .native-cal-day.is-disabled {
    color: #94a3b8 !important;
    opacity: 0.45 !important;
}

html.mode-light .native-cal-legend,
html.theme-pearl .native-cal-legend,
html[data-color-mode="light"] .native-cal-legend {
    border-top-color: #e2e8f0 !important;
    color: #475569 !important;
}

html.mode-light #booking-timezone-select,
html.theme-pearl #booking-timezone-select,
html[data-color-mode="light"] #booking-timezone-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html.mode-light #step2-times-panel,
html.theme-pearl #step2-times-panel,
html[data-color-mode="light"] #step2-times-panel {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

/* Horarios (Time Slots) en Modo Claro */
html.mode-light .time-slot-btn,
html.theme-pearl .time-slot-btn,
html[data-color-mode="light"] .time-slot-btn {
    background-color: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html.mode-light .time-slot-btn:hover:not(:disabled),
html.theme-pearl .time-slot-btn:hover:not(:disabled),
html[data-color-mode="light"] .time-slot-btn:hover:not(:disabled) {
    border-color: #0284c7 !important;
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
}

html.mode-light .time-slot-btn.selected,
html.theme-pearl .time-slot-btn.selected,
html[data-color-mode="light"] .time-slot-btn.selected {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

html.mode-light .time-slot-btn:disabled,
html.theme-pearl .time-slot-btn:disabled,
html[data-color-mode="light"] .time-slot-btn:disabled {
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
}

html.mode-light .time-slots-placeholder,
html.theme-pearl .time-slots-placeholder,
html[data-color-mode="light"] .time-slots-placeholder {
    color: #64748b !important;
}

html.mode-light .time-slot-header-bar span,
html.theme-pearl .time-slot-header-bar span,
html[data-color-mode="light"] .time-slot-header-bar span {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html.mode-light .time-slot-group-header,
html.theme-pearl .time-slot-group-header,
html[data-color-mode="light"] .time-slot-group-header,
html.mode-light .time-slot-group-header span,
html.theme-pearl .time-slot-group-header span,
html[data-color-mode="light"] .time-slot-group-header span {
    color: #0369a1 !important;
    font-weight: 700 !important;
}

html.mode-light .time-slot-group-header div,
html.theme-pearl .time-slot-group-header div,
html[data-color-mode="light"] .time-slot-group-header div {
    background-color: #cbd5e1 !important;
}

/* Políticas y Checkbox en Modo Claro */
html.mode-light .policy-card-label,
html.theme-pearl .policy-card-label,
html[data-color-mode="light"] .policy-card-label {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

html.mode-light .policy-card-label:hover,
html.theme-pearl .policy-card-label:hover,
html[data-color-mode="light"] .policy-card-label:hover {
    border-color: #0284c7 !important;
    background-color: #f0f9ff !important;
}

html.mode-light .policy-card-check,
html.theme-pearl .policy-card-check,
html[data-color-mode="light"] .policy-card-check {
    border-color: #94a3b8 !important;
}

html.mode-light .policy-card-label input:checked + .policy-card-check,
html.theme-pearl .policy-card-label input:checked + .policy-card-check,
html[data-color-mode="light"] .policy-card-label input:checked + .policy-card-check {
    border-color: #0284c7 !important;
    background-color: rgba(2, 132, 199, 0.1) !important;
}

html.mode-light .policy-card-label input:checked + .policy-card-check .policy-card-check-inner,
html.theme-pearl .policy-card-label input:checked + .policy-card-check .policy-card-check-inner,
html[data-color-mode="light"] .policy-card-label input:checked + .policy-card-check .policy-card-check-inner {
    background-color: #0284c7 !important;
}

html.mode-light .policy-card-text,
html.theme-pearl .policy-card-text,
html[data-color-mode="light"] .policy-card-text {
    color: #334155 !important;
}

html.mode-light .policy-card-text strong,
html.theme-pearl .policy-card-text strong,
html[data-color-mode="light"] .policy-card-text strong {
    color: #0f172a !important;
}

html.mode-light .policy-card-label input:checked ~ .policy-card-text,
html.theme-pearl .policy-card-label input:checked ~ .policy-card-text,
html[data-color-mode="light"] .policy-card-label input:checked ~ .policy-card-text {
    color: #0f172a !important;
}

/* Resumen y Tarjeta de Total en Modo Claro */
html.mode-light .summary-card,
html.theme-pearl .summary-card,
html[data-color-mode="light"] .summary-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

html.mode-light .summary-card:hover,
html.theme-pearl .summary-card:hover,
html[data-color-mode="light"] .summary-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12) !important;
}

html.mode-light .summary-card-label,
html.theme-pearl .summary-card-label,
html[data-color-mode="light"] .summary-card-label {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

html.mode-light .summary-card-value,
html.theme-pearl .summary-card-value,
html[data-color-mode="light"] .summary-card-value {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html.mode-light .summary-data-item,
html.theme-pearl .summary-data-item,
html[data-color-mode="light"] .summary-data-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html.mode-light .summary-data-item .label,
html.theme-pearl .summary-data-item .label,
html[data-color-mode="light"] .summary-data-item .label,
html.mode-light .summary-data-item strong,
html.theme-pearl .summary-data-item strong,
html[data-color-mode="light"] .summary-data-item strong {
    color: #64748b !important;
    font-weight: 700 !important;
}

html.mode-light .summary-data-item .value,
html.theme-pearl .summary-data-item .value,
html[data-color-mode="light"] .summary-data-item .value {
    color: #0f172a !important;
    font-weight: 600 !important;
}

html.mode-light #coupon-code-input,
html.theme-pearl #coupon-code-input,
html[data-color-mode="light"] #coupon-code-input {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.mode-light .summary-data-subheading,
html.theme-pearl .summary-data-subheading,
html[data-color-mode="light"] .summary-data-subheading {
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

html.mode-light .total-price-card,
html.theme-pearl .total-price-card,
html[data-color-mode="light"] .total-price-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #fae8ff 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1) !important;
}

html.mode-light .total-label,
html.theme-pearl .total-label,
html[data-color-mode="light"] .total-label {
    color: #334155 !important;
}

html.mode-light .total-amount,
html.theme-pearl .total-amount,
html[data-color-mode="light"] .total-amount {
    color: #0284c7 !important;
    text-shadow: none !important;
}

/* Botones de Acción en Modo Claro */
html.mode-light .action-button,
html.theme-pearl .action-button,
html[data-color-mode="light"] .action-button {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

html.mode-light .action-button:hover:not(:disabled),
html.theme-pearl .action-button:hover:not(:disabled),
html[data-color-mode="light"] .action-button:hover:not(:disabled) {
    background-color: #0369a1 !important;
    border-color: #0369a1 !important;
}

html.mode-light .action-button.secondary-button,
html.theme-pearl .action-button.secondary-button,
html[data-color-mode="light"] .action-button.secondary-button {
    background: #ffffff !important;
    border: 1.5px solid #64748b !important;
    color: #0f172a !important;
}

html.mode-light .action-button.secondary-button:hover:not(:disabled),
html.theme-pearl .action-button.secondary-button:hover:not(:disabled),
html[data-color-mode="light"] .action-button.secondary-button:hover:not(:disabled) {
    background: #f1f5f9 !important;
    border-color: #334155 !important;
}

html.mode-light .policy-link-button,
html.theme-pearl .policy-link-button,
html[data-color-mode="light"] .policy-link-button {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

html.mode-light .policy-link-button:hover,
html.theme-pearl .policy-link-button:hover,
html[data-color-mode="light"] .policy-link-button:hover {
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    background: #f0f9ff !important;
}

html.mode-light .validation-message,
html.theme-pearl .validation-message,
html[data-color-mode="light"] .validation-message {
    color: #e11d48 !important;
}

/* Navbar de Proceso en Modo Claro */
html.mode-light .process-nav-bar,
html.theme-pearl .process-nav-bar,
html[data-color-mode="light"] .process-nav-bar {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

html.mode-light .process-nav-bar a,
html.theme-pearl .process-nav-bar a,
html[data-color-mode="light"] .process-nav-bar a {
    color: #0f172a !important;
}

/* === FOOTER DE SEGURIDAD WOMPI Y PCI (MODO CLARO) === */
html.mode-light .secure-payment-footer,
html.theme-pearl .secure-payment-footer,
html[data-color-mode="light"] .secure-payment-footer,
html:not(.dark) .secure-payment-footer {
    background: #f1f5f9 !important;
    border-top: 1px solid #cbd5e1 !important;
}

html.mode-light .secure-payment-text,
html.theme-pearl .secure-payment-text,
html[data-color-mode="light"] .secure-payment-text,
html:not(.dark) .secure-payment-text {
    color: #334155 !important;
    font-weight: 700 !important;
}

/* === POP-UP DE PAGO Y CARGA (SPINNER OVERLAY & LOADING POPUP) EN MODO CLARO === */
html.mode-light .spinner-overlay,
html.theme-pearl .spinner-overlay,
html[data-color-mode="light"] .spinner-overlay,
html:not(.dark) .spinner-overlay,
html.mode-light #loading-spinner,
html.theme-pearl #loading-spinner,
html[data-color-mode="light"] #loading-spinner,
html:not(.dark) #loading-spinner {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10005 !important;
}

html.mode-light .loading-popup,
html.theme-pearl .loading-popup,
html[data-color-mode="light"] .loading-popup,
html:not(.dark) .loading-popup {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    color: #0f172a !important;
}

html.mode-light .loading-popup p,
html.theme-pearl .loading-popup p,
html[data-color-mode="light"] .loading-popup p,
html:not(.dark) .loading-popup p {
    color: #0f172a !important;
}

html.mode-light .loading-popup p:last-child,
html.theme-pearl .loading-popup p:last-child,
html[data-color-mode="light"] .loading-popup p:last-child,
html:not(.dark) .loading-popup p:last-child {
    color: #64748b !important;
}

/* === POP-UP CRIBADO DE SEGURIDAD Y TRIAGE EN MODO CLARO === */
html.mode-light #triage-modal,
html.theme-pearl #triage-modal,
html[data-color-mode="light"] #triage-modal,
html:not(.dark) #triage-modal,
html.mode-light #status-modal,
html.theme-pearl #status-modal,
html[data-color-mode="light"] #status-modal,
html:not(.dark) #status-modal {
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

html.mode-light #triage-card,
html.theme-pearl #triage-card,
html[data-color-mode="light"] #triage-card,
html:not(.dark) #triage-card {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    color: #0f172a !important;
}

html.mode-light #triage-card h3,
html.theme-pearl #triage-card h3,
html[data-color-mode="light"] #triage-card h3,
html:not(.dark) #triage-card h3 {
    color: #0f172a !important;
}

html.mode-light #triage-card p,
html.theme-pearl #triage-card p,
html[data-color-mode="light"] #triage-card p,
html:not(.dark) #triage-card p {
    color: #334155 !important;
}

/* =========================================================================
   RESPONSIVE MOBILE & MULTIDISPOSITIVO (FASE 1 — PASO 1.2)
   ========================================================================= */
@media (max-width: 520px) {
    .consulta-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .consulta-icon {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.5rem;
    }

    .consulta-price {
        font-size: 1.05rem;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .glass-effect {
        padding: 1.25rem 0.85rem;
        border-radius: 1.25rem;
    }

    #calendar-container {
        padding: 0.75rem 0.5rem;
    }

    .step-navigation {
        flex-direction: column-reverse;
    }

    .step-navigation .action-button,
    .step-navigation .secondary-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-content,
    .colorful-spinner {
        animation: none !important;
    }
}
