/* ========== AJUSTE A PANTALLA (evitar que se salga en móvil) ========== */
html.page-reserva {
    overflow-x: hidden;
    width: 100%;
}

body.booking-page {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.booking-page {
    overflow-x: hidden;
    max-width: 100%;
    background: var(--bg);
}

.booking-page main,
.booking-page .booking-main,
.booking-page .booking-form-section,
.booking-page .tab-content {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.booking-page .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

.booking-page .form-container,
.booking-page .public-calendar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.booking-page .header-content {
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.booking-page .logo {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-page .logo .logo-img {
    max-height: 64px;
    width: auto;
}

.booking-page .logo .logo-text {
    font-size: 1.2rem;
}

.booking-page .service-tabs {
    max-width: 100%;
    min-width: 0;
}

.booking-page .form-container form,
.booking-page .availability-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.booking-page .field,
.booking-page .field-group {
    min-width: 0;
}

.booking-page .field input,
.booking-page .field select,
.booking-page .field textarea {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.booking-page .calendar-grid,
.booking-page .calendar-day {
    min-width: 0;
}

/* ========== TABS DE SERVICIOS ========== */
.service-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--stroke);
    padding-bottom: 0;
}

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.tab-button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-alt);
}

/* Estilos para tabs en el panel de administración */
.service-tabs-panel {
    display: flex;
    gap: 1rem;
    padding-bottom: 0;
}

.service-tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--panel-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.service-tab-button:hover {
    color: var(--panel-text);
    background: var(--panel-bg-alt);
}

.service-tab-button.active {
    color: var(--panel-accent);
    border-bottom-color: var(--panel-accent);
    background: var(--panel-bg-alt);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .service-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--stroke);
        border-left: 3px solid transparent;
        padding: 1rem;
    }
    
    .tab-button.active {
        border-left-color: var(--accent);
        border-bottom-color: var(--stroke);
    }
}

.site-header.compact {
    position: static;
    border-bottom: 1px solid var(--stroke);
    background: var(--bg-alt);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.site-header.compact .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-actions .btn {
    transition: all var(--transition);
}

.header-actions .btn:hover {
    transform: translateY(-2px);
}

.booking-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 4rem;
}

.booking-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.booking-hero .eyebrow {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.booking-hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: var(--text);
}

.booking-hero .lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.booking-form-section {
    padding: 0 0 3rem;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* En la página de gestión, el form-container solo debe mostrar una columna centrada */
.booking-form-section .form-container {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.form-container form {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.availability-card {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .availability-card {
        position: static;
        order: -1;
    }
}

/* En móvil forzar una sola columna desde 768px */
@media (max-width: 768px) {
    .booking-form-section .form-container {
        grid-template-columns: 1fr !important;
    }
}

.gestion-view {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Asegurar que las vistas de gestión se muestren cuando no tienen [hidden] */
.gestion-view:not([hidden]) {
    display: block !important;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.field-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.field label {
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border var(--transition), box-shadow var(--transition), background var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 140, 93, 0.1);
}

.field-error {
    color: #b3261e;
    font-size: 0.9rem;
    min-height: 1em;
}

.submit-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.submit-row .btn {
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.submit-row .btn .loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
    margin-left: 0.75rem;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease;
}

.submit-row .btn.sending .loader {
    opacity: 1;
    transform: scale(1);
}

.submit-row .note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ========== BLOQUE 12 SESIONES (tratamiento capilar) ========== */
.wrap-12-sesiones {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.wrap-12-sesiones .muted {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.wrap-12-sesiones .reserva12-headers {
    display: grid;
    grid-template-columns: 70px 1fr 90px;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.wrap-12-sesiones .reserva12-row {
    display: grid;
    grid-template-columns: 70px 1fr 90px;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wrap-12-sesiones .reserva12-row span:first-child {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.wrap-12-sesiones .reserva12-row input[type="date"],
.wrap-12-sesiones .reserva12-row select {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.95rem;
    transition: border var(--transition), box-shadow var(--transition);
    width: 100%;
    min-width: 0;
}

.wrap-12-sesiones .reserva12-row input[type="date"]:focus,
.wrap-12-sesiones .reserva12-row select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 140, 93, 0.1);
}

.wrap-12-sesiones .reserva12-row select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wrap-12-sesiones .btn-outline.small {
    margin-top: 0.75rem;
}

.service-12-notice {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .wrap-12-sesiones .reserva12-headers,
    .wrap-12-sesiones .reserva12-row {
        grid-template-columns: 60px 1fr 75px;
        gap: 0.4rem;
    }
    .wrap-12-sesiones .reserva12-row input[type="date"],
    .wrap-12-sesiones .reserva12-row select {
        padding: 0.55rem 0.65rem;
        font-size: 0.9rem;
    }
}

.availability-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: fit-content;
}

.ocupadas-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-alt);
    box-shadow: var(--shadow);
}

.ocupadas-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.ocupadas-list li:hover {
    background: var(--bg);
}

.ocupadas-list li:last-child {
    border-bottom: none;
}

.ocupadas-list .badge {
    font-size: 0.85rem;
    color: #b3261e;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: rgba(179, 38, 30, 0.1);
    font-weight: 600;
}

.availability-status {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.availability-status strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.schedule-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.special-notice {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    background: rgba(184, 38, 19, 0.08);
    border: 1px solid rgba(179, 38, 30, 0.35);
    color: #7c1d14;
}

.special-notice.warning {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.4);
    color: #8f6b00;
}

.special-notice.info {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #0f5b7c;
}

.public-calendar {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Calendario grande para modificación */
.modificar-calendario-grande {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2.5rem !important;
}

.modificar-calendario-grande .calendar-grid {
    grid-template-columns: repeat(7, minmax(80px, 1fr));
    gap: 0.8rem;
    font-size: 1rem;
}

.modificar-calendario-grande .calendar-day {
    min-height: 90px;
    padding: 1rem 0.5rem;
    gap: 0.5rem;
}

.modificar-calendario-grande .calendar-day .date {
    font-size: 1.1rem;
}

.modificar-calendario-grande .calendar-day .note {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
}

.modificar-calendario-grande .calendar-header {
    margin-bottom: 1rem;
}

.modificar-calendario-grande .calendar-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modificar-calendario-grande .calendar-header p {
    font-size: 1rem;
}

.modificar-calendario-grande #modifCalLabel {
    font-size: 1.2rem;
    min-width: 180px;
}

.modificar-calendario-grande .calendar-legend {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modificar-calendario-grande .calendar-legend .dot {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .modificar-calendario-grande {
        padding: 1.5rem !important;
    }
    
    .modificar-calendario-grande .calendar-grid {
        grid-template-columns: repeat(7, minmax(45px, 1fr));
        gap: 0.5rem;
    }
    
    .modificar-calendario-grande .calendar-day {
        min-height: 70px;
        padding: 0.8rem 0.3rem;
    }
    
    .modificar-calendario-grande .calendar-day .date {
        font-size: 1rem;
    }
    
    .modificar-calendario-grande .calendar-day .note {
        font-size: 0.7rem;
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.small {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

#bookingCalLabel {
    min-width: 130px;
    text-align: center;
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.calendar-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
}

.calendar-legend .dot.disponible {
    background: #22c55e;
}

.calendar-legend .dot.sin-huecos {
    background: #f59e0b;
}

.calendar-legend .dot.festivo {
    background: #facc15;
}

.calendar-legend .dot.cerrado {
    background: #f87171;
}

.calendar-legend .dot.abierto {
    background: #22c55e;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    gap: 0.4rem;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-grid .weekday {
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

.calendar-day {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.7rem 0.3rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    cursor: pointer;
    transition: border var(--transition), transform var(--transition), background var(--transition);
    background: var(--bg-alt);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day .date {
    font-weight: 600;
}

/* Indicador corto de disponibilidad (visible en móvil y PC) */
.calendar-day-status {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.15rem 0.2rem;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day--disponible .calendar-day-status {
    color: #fff;
    background: #047857;
}

.calendar-day--completo .calendar-day-status {
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
}

.calendar-day--cerrado .calendar-day-status {
    color: #991b1b;
    background: rgba(248, 113, 113, 0.2);
}

.calendar-day--festivo .calendar-day-status {
    color: #854d0e;
    background: rgba(250, 204, 21, 0.25);
}

.calendar-day--pasado .calendar-day-status,
.calendar-day--nada .calendar-day-status {
    color: var(--muted);
}

.calendar-day .note {
    font-size: 0.7rem;
    color: var(--muted);
    padding: 0 0.2rem;
}

.calendar-day:hover:not(.disabled) {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.calendar-day.selected {
    outline: 2px solid var(--accent);
}

.calendar-day.festivo {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.12);
}

.calendar-day.cerrado {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.calendar-day.abierto {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.calendar-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text);
    color: var(--bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

#toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .form-container {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

    .availability-card {
        order: -1;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.25rem;
    }
}

/* ========== MÓVIL: PÁGINA DE RESERVA COMPLETA ========== */
@media screen and (max-width: 768px) {
    .booking-page .site-header.compact .header-content {
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .booking-page .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .booking-page .header-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .booking-page .booking-main {
        padding-bottom: 2rem;
        gap: 1.5rem;
    }

    .booking-page .booking-hero {
        padding: 1.5rem 0 1rem;
    }

    .booking-page .booking-hero h1 {
        font-size: 1.6rem;
    }

    .booking-page .booking-hero .lead {
        font-size: 0.95rem;
    }

    .booking-page .booking-form-section {
        padding: 0 0 2rem;
    }

    .booking-page .form-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .booking-page .form-container form {
        padding: 1.25rem;
    }

    .booking-page .field-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .booking-page .field input,
    .booking-page .field select,
    .booking-page .field textarea {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Evita zoom automático en iOS */
        min-height: 44px;
    }

    .booking-page .submit-row .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    .booking-page .availability-card {
        position: static !important;
        order: 0;
    }

    .booking-page .public-calendar {
        padding: 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .booking-page .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .booking-page .calendar-header h2 {
        font-size: 1.15rem;
    }

    .booking-page .calendar-header p {
        font-size: 0.9rem;
    }

    .booking-page .calendar-nav {
        justify-content: center;
    }

    .booking-page .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.25rem;
        min-width: 0;
        width: 100%;
    }

    .booking-page .calendar-day {
        min-height: 44px;
        min-width: 0;
        padding: 0.35rem 0.2rem;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        overflow: hidden;
    }

    .booking-page .calendar-day .date {
        font-size: 0.95rem;
    }

    /* En móvil el indicador corto es la info principal */
    .booking-page .calendar-day-status {
        font-size: 0.65rem;
        padding: 0.2rem 0.15rem;
        min-height: 1.2em;
    }

    .booking-page .calendar-day .note {
        font-size: 0.6rem;
        line-height: 1.2;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-page .calendar-legend {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .booking-page .calendar-hint {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .page-reserva .booking-page .container,
    .booking-page .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .booking-page .booking-hero {
        padding: 1rem 0 0.75rem;
    }

    .booking-page .booking-hero h1 {
        font-size: 1.4rem;
    }

    .booking-page .form-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .booking-page .form-container form {
        padding: 1rem;
    }

    .booking-page .public-calendar {
        padding: 0.75rem;
    }

    .booking-page .calendar-grid {
        gap: 0.2rem;
    }

    .booking-page .calendar-day {
        min-height: 38px;
        padding: 0.25rem 0.1rem;
    }

    .booking-page .calendar-day .date {
        font-size: 0.85rem;
    }

    /* En pantallas muy pequeñas: mostrar solo número + indicador (Disponible/Sin huecos/Cerrado) */
    .booking-page .calendar-day .note {
        display: none;
    }

    .booking-page .calendar-day-status {
        font-size: 0.6rem;
        padding: 0.15rem 0.1rem;
    }

    .booking-page #toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 1rem;
        text-align: center;
        max-width: calc(100% - 1.5rem);
    }
}

/* Forzar que nada se salga en la página de reserva (móvil) */
@media screen and (max-width: 768px) {
    .page-reserva,
    .page-reserva body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .booking-page .booking-main > *,
    .booking-page .tab-content > *,
    .booking-page .form-container > * {
        min-width: 0 !important;
    }

    .booking-page .public-calendar {
        overflow-x: hidden;
    }
}

/* Estilos para página de gestión de reserva */
.gestion-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.gestion-state p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.loader-large {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(201, 140, 93, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(201, 140, 93, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* .gestion-view ya está definido arriba, esta regla duplicada se elimina */

.reserva-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.reserva-card h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.reserva-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--stroke);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.info-value {
    color: var(--text);
}

.estado-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.estado-badge.estado-pendiente {
    background: #fef3c7;
    color: #92400e;
}

.estado-badge.estado-atendida {
    background: #d1fae5;
    color: #065f46;
}

.estado-badge.estado-cancelada {
    background: #fee2e2;
    color: #991b1b;
}

.token-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 243, 205, 0.2);
    border-radius: var(--radius);
    border-left: 4px solid #ffc107;
}

.token-notice {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

.gestion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-alt, #f0f0f0);
    color: var(--text, #333);
    border: 1px solid var(--border, #ddd);
}

.btn-secondary:hover {
    background: var(--border, #e0e0e0);
}

.cancelar-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.cancelar-card h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.cancelar-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.warning-text {
    color: #dc3545;
    font-weight: 600;
    margin: 1.5rem 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modificar-form {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.availability-status {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .gestion-actions {
        flex-direction: column;
    }

    .gestion-actions .btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* Modal de confirmación de reserva */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-alt);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--stroke);
}

.modal-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.modal-body p {
    margin: 0 0 1rem;
    color: var(--text);
    line-height: 1.6;
}

.modal-info {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem !important;
}

.link-container {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    background: var(--bg-alt);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 2px solid var(--stroke);
}

.link-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: monospace;
    background: var(--bg);
    color: var(--text);
    text-overflow: ellipsis;
}

.link-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 140, 93, 0.1);
}

.btn-copy {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #b87d4d;
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy.copied {
    background: #10b981;
}

.btn-copy.copied .copy-text {
    content: "Copiado!";
}

.copy-icon {
    font-size: 1rem;
}

.modal-warning {
    background: rgba(255, 243, 205, 0.2);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0 0 !important;
    font-size: 0.9rem;
    color: var(--text);
    text-align: left;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 2rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .link-container {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Modal en móvil: overlay y contenido adaptados */
@media screen and (max-width: 768px) {
    .booking-page .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .booking-page .modal-content {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .booking-page .link-input {
        font-size: 0.85rem;
        min-width: 0;
    }
}

/* Estilos mejorados para página de gestión de reserva */
.card-reserva-actual {
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(201, 140, 93, 0.03) 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 0 auto 2rem;
    border: 1px solid var(--stroke);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.card-reserva-actual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.card-reserva-actual h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.75rem;
}

.reserva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--stroke);
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-item strong {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.info-item span {
    color: var(--text);
    font-size: 1rem;
}

.info-item.fecha-grande {
    grid-column: span 2;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(201, 140, 93, 0.15) 0%, transparent 100%);
    border: 2px solid rgba(201, 140, 93, 0.2);
}

@media (max-width: 768px) {
    .info-item.fecha-grande {
        grid-column: span 1;
    }
}

.fecha-destacada {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin: 0.5rem 0;
}

.hora-destacada {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-top: 0.5rem;
}

.estado-reserva {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
}

.estado-reserva.confirmado {
    background: #d1fae5;
    color: #065f46;
}

.estado-reserva.pendiente {
    background: #fef3c7;
    color: #92400e;
}

.estado-reserva.cancelada {
    background: #fee2e2;
    color: #991b1b;
}

.token-info-visible {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e0f2fe;
    border-radius: var(--radius);
    border-left: 4px solid #0284c7;
    text-align: center;
}

.token-info-visible .token-notice {
    margin: 0;
    font-size: 0.9rem;
    color: #075985;
}

.acciones-principales {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 250px;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(201, 140, 93, 0.3);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 140, 93, 0.4);
}

.btn-large:active {
    transform: translateY(0);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

.seccion-oculta {
    display: none;
}

.seccion-oculta[hidden] {
    display: none !important;
}

/* Estilos mejorados para campos de fecha y hora del recordatorio */
#recordatorioSimpleFields {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(201, 140, 93, 0.08) 0%, rgba(201, 140, 93, 0.03) 100%);
    border-radius: 16px;
    border: 2px solid rgba(201, 140, 93, 0.2);
    box-shadow: 0 4px 16px rgba(201, 140, 93, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#recordatorioSimpleFields::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(201, 140, 93, 0.6) 0%, rgba(201, 140, 93, 0.3) 50%, rgba(201, 140, 93, 0.6) 100%);
}

#recordatorioSimpleFields .field {
    flex: 1;
    min-width: 0;
    position: relative;
}

#recordatorioSimpleFields .field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#recordatorioSimpleFields .field label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(201, 140, 93, 0.8);
    border-radius: 50%;
}

#recordatorioSimpleFields .field:first-child label::before {
    content: '📅';
    width: auto;
    height: auto;
    background: none;
    font-size: 1.2rem;
}

#recordatorioSimpleFields .field:last-child label::before {
    content: '🕐';
    width: auto;
    height: auto;
    background: none;
    font-size: 1.2rem;
}

#recordatorioSimpleFields .field input[type="date"],
#recordatorioSimpleFields .field input[type="time"] {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 3px solid rgba(201, 140, 93, 0.25);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(201, 140, 93, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
}

#recordatorioSimpleFields .field input[type="date"]:focus,
#recordatorioSimpleFields .field input[type="time"]:focus {
    outline: none;
    border-color: rgba(201, 140, 93, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #fff9f5 100%);
    box-shadow: 
        0 0 0 5px rgba(201, 140, 93, 0.2),
        0 6px 20px rgba(201, 140, 93, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(201, 140, 93, 0.1);
    transform: translateY(-2px);
}

#recordatorioSimpleFields .field input[type="date"]:hover,
#recordatorioSimpleFields .field input[type="time"]:hover {
    border-color: rgba(201, 140, 93, 0.45);
    background: linear-gradient(135deg, #ffffff 0%, #fffbf8 100%);
    box-shadow: 
        0 5px 16px rgba(201, 140, 93, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

#recordatorioSimpleFields .field input[type="date"]:active,
#recordatorioSimpleFields .field input[type="time"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(201, 140, 93, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estilos para el icono del calendario/reloj en navegadores que lo soporten */
#recordatorioSimpleFields .field input[type="date"]::-webkit-calendar-picker-indicator,
#recordatorioSimpleFields .field input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 0.4rem;
    border-radius: 6px;
    background-size: 20px 20px;
    filter: brightness(0.9);
}

#recordatorioSimpleFields .field input[type="date"]::-webkit-calendar-picker-indicator:hover,
#recordatorioSimpleFields .field input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: rgba(201, 140, 93, 0.15);
    filter: brightness(1);
    transform: scale(1.1);
}

#recordatorioSimpleFields .field input[type="date"]::-webkit-calendar-picker-indicator:active,
#recordatorioSimpleFields .field input[type="time"]::-webkit-calendar-picker-indicator:active {
    transform: scale(0.95);
}

/* Estilos para el valor del input cuando está seleccionado */
#recordatorioSimpleFields .field input[type="date"]:not(:placeholder-shown),
#recordatorioSimpleFields .field input[type="time"]:not(:placeholder-shown) {
    border-color: rgba(201, 140, 93, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #fff7f0 100%);
    box-shadow: 
        0 4px 14px rgba(201, 140, 93, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 20px rgba(201, 140, 93, 0.05);
    color: #5a3d28;
}

/* Calendario personalizado decorado para recordatorio */
.recordatorio-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.recordatorio-calendar-wrapper,
.recordatorio-time-wrapper {
    position: relative;
}

.recordatorio-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f5ebe0;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.recordatorio-calendar-container {
    background: linear-gradient(135deg, #2a1f18 0%, #1f1814 50%, #2a1f18 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(201, 140, 93, 0.4);
    position: relative;
}

.recordatorio-calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(201, 140, 93, 0.7) 0%, rgba(201, 140, 93, 1) 50%, rgba(201, 140, 93, 0.7) 100%);
    border-radius: 16px 16px 0 0;
}

.recordatorio-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(201, 140, 93, 0.3);
}

.recordatorio-cal-month {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f5ebe0;
    text-transform: capitalize;
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recordatorio-cal-nav {
    background: rgba(201, 140, 93, 0.2);
    border: 2px solid rgba(201, 140, 93, 0.4);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5ebe0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recordatorio-cal-nav:hover {
    background: rgba(201, 140, 93, 0.35);
    border-color: rgba(201, 140, 93, 0.6);
    color: #ffffff;
    transform: scale(1.05);
}

.recordatorio-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recordatorio-weekday {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #d4a574;
    text-transform: uppercase;
    padding: 0.5rem 0;
    background: rgba(201, 140, 93, 0.2);
    border-radius: 6px;
}

.recordatorio-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid rgba(201, 140, 93, 0.3);
    background: linear-gradient(135deg, #3d2f26 0%, #342921 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.recordatorio-day-number {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f5ebe0;
}

.recordatorio-day:hover:not(.disabled) {
    background: rgba(201, 140, 93, 0.3);
    border-color: rgba(201, 140, 93, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(201, 140, 93, 0.4);
}

.recordatorio-day.today {
    background: linear-gradient(135deg, rgba(201, 140, 93, 0.4) 0%, rgba(201, 140, 93, 0.25) 100%);
    border-color: rgba(201, 140, 93, 0.7);
    font-weight: 700;
}

.recordatorio-day.today .recordatorio-day-number {
    color: #ffffff;
}


.recordatorio-day.selected {
    background: linear-gradient(135deg, rgba(201, 140, 93, 0.9) 0%, rgba(201, 140, 93, 0.7) 100%);
    border-color: rgba(201, 140, 93, 1);
    box-shadow: 0 4px 12px rgba(201, 140, 93, 0.4);
    transform: scale(1.05);
}

.recordatorio-day.selected .recordatorio-day-number {
    color: white;
    font-weight: 700;
}

.recordatorio-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #1f1814 0%, #1a1410 100%);
    border-color: rgba(201, 140, 93, 0.2);
}

.recordatorio-day.disabled .recordatorio-day-number {
    color: #6b5d4f;
}

.recordatorio-day.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.recordatorio-fecha-display {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #f5ebe0;
    background: linear-gradient(135deg, #3d2f26 0%, #342921 100%);
    border: 2px solid rgba(201, 140, 93, 0.4);
    border-radius: 10px;
    margin-top: 0.75rem;
    text-align: center;
    cursor: default;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.recordatorio-time-container {
    position: relative;
}

.recordatorio-time-select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: #f5ebe0;
    background: linear-gradient(135deg, #3d2f26 0%, #342921 100%);
    border: 2.5px solid rgba(201, 140, 93, 0.4);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a574' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.recordatorio-time-select:focus {
    outline: none;
    border-color: rgba(201, 140, 93, 0.7);
    background: linear-gradient(135deg, #4a3830 0%, #3d2f26 100%);
    box-shadow: 
        0 0 0 4px rgba(201, 140, 93, 0.3),
        0 4px 16px rgba(201, 140, 93, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.recordatorio-time-select:hover {
    border-color: rgba(201, 140, 93, 0.6);
    background: linear-gradient(135deg, #45352c 0%, #3d2f26 100%);
    box-shadow: 
        0 4px 12px rgba(201, 140, 93, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.recordatorio-time-select option {
    background: #2a1f18;
    color: #f5ebe0;
}

/* Responsive para campos de recordatorio */
@media (max-width: 768px) {
    .recordatorio-custom-fields {
        gap: 1.5rem;
    }
    
    .recordatorio-calendar-container {
        padding: 1.25rem;
    }
    
    .recordatorio-calendar-grid {
        gap: 0.4rem;
    }
    
    .recordatorio-day-number {
        font-size: 0.85rem;
    }
    
    .recordatorio-time-select {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        padding-right: 2.5rem;
    }
}

.modificar-section,
.cancelar-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.seleccion-servicio {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.seleccion-servicio label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.servicio-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.acciones-modificar,
.acciones-cancelar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.alerta-cancelacion {
    background: rgba(255, 243, 205, 0.15);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.alerta-cancelacion p {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.politica-cancelacion {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
}

.politica-cancelacion strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.politica-cancelacion ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.politica-cancelacion li {
    margin: 0.5rem 0;
}

.motivo-cancelacion {
    margin-top: 1.5rem;
}

.motivo-cancelacion label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.motivo-cancelacion textarea {
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.mensaje-exito {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, var(--bg-alt) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid #10b981;
    max-width: 600px;
    margin: 2rem auto;
}

.mensaje-exito.oculto {
    display: none !important;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mensaje-exito .success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.mensaje-exito h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 2rem;
}

.mensaje-exito p {
    margin: 1rem 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.mensaje-exito .btn {
    margin-top: 2rem;
}

.footer-mini {
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--stroke);
    text-align: center;
}

.footer-mini .container {
    max-width: 800px;
}

.footer-mini p {
    margin: 0.5rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-mini p:first-child {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.footer-mini small {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ========== SECCIÓN DE RECORDATORIOS ========== */
.recordatorio-opcion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
.recordatorio-opcion:hover { border-color: var(--accent, #c98c5d); }
.recordatorio-opcion input:checked + span,
.recordatorio-opcion:has(input:checked) { border-color: var(--accent, #c98c5d); background: rgba(201, 140, 93, 0.08); }
.recordatorio-opcion input { margin: 0; cursor: pointer; }
.recordatorios-section {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--stroke);
}

.recordatorios-section h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.5rem;
}

.recordatorios-info {
    margin-bottom: 1.5rem;
}

.recordatorios-info p {
    margin: 0.75rem 0;
    color: var(--text);
    line-height: 1.6;
}

.recordatorios-info strong {
    color: var(--accent);
}

.recordatorios-detalles {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--accent);
}

.recordatorios-detalles ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.recordatorios-detalles li {
    margin: 0.5rem 0;
    color: var(--text);
}

.nota-tecnica {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--stroke);
    color: var(--muted);
}

.recordatorios-acciones {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.recordatorios-acciones .btn {
    flex: 1;
    min-width: 200px;
}

.notificaciones-estado {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

.notificaciones-estado.granted {
    background: #d1fae5;
    color: #065f46;
}

.notificaciones-estado.denied {
    background: #fee2e2;
    color: #991b1b;
}

.notificaciones-estado.not-supported {
    background: #fef3c7;
    color: #92400e;
}

.notificaciones-estado.default {
    background: #e0e7ff;
    color: #3730a3;
}

@media (max-width: 768px) {
    .reserva-grid {
        grid-template-columns: 1fr;
    }

    .info-item.fecha-grande {
        grid-column: span 1;
    }

    .acciones-principales {
        flex-direction: column;
    }

    .acciones-principales .btn {
        width: 100%;
    }

    .acciones-modificar,
    .acciones-cancelar {
        flex-direction: column;
    }

    .acciones-modificar .btn,
    .acciones-cancelar .btn {
        width: 100%;
    }

    .card-reserva-actual {
        padding: 1.5rem;
    }
    
    .recordatorios-section {
        padding: 1.5rem;
    }
    
    .recordatorios-acciones {
        flex-direction: column;
    }
    
    .recordatorios-acciones .btn {
        width: 100%;
        min-width: auto;
    }
    
    .notificaciones-estado {
        width: 100%;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-hero {
        padding: 2rem 0 1rem;
    }
    
    .booking-hero h1 {
        font-size: 1.75rem;
    }
    
    .card-reserva-actual {
        padding: 1rem;
    }
    
    .recordatorios-section {
        padding: 1rem;
    }
    
    .recordatorios-detalles {
        padding: 1rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .info-item strong {
        font-size: 0.9rem;
    }
}

