:root {
    --primary-dark: #271312;
    --primary-bg: #1c0908;
    --gold-accent: #dfb76c;
    --gold-muted: #bd9a53;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: transparent !important;
    color: var(--text-dark);
    line-height: 1.6;
    
    /* Fallback de Scroll Interno: Forzar a tamaño de ventana */
    height: 100vh;
    overflow: hidden;
}

/* Cabecera / Hero */
.hero-header {
    background: linear-gradient(180deg, #1c0908 0%, #2b1110 60%, #1c0908 100%);
    color: var(--white);
    padding: 20px 20px 80px 20px;
    text-align: center;
    border-bottom: 2px solid var(--gold-accent);
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 5px;
    border: 1px solid var(--gold-accent);
}

.brand span {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-accent);
}

.hero-content {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 500;
    color: var(--gold-accent);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.divider::before, .divider::after {
    content: '';
    height: 1px;
    width: 80px;
    background-color: var(--gold-accent);
}

.divider span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--white);
}

.hero-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Contenedor Principal Formulario */
.main-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 10px 10px 50px 10px; /* Margen inferior de seguridad para evitar botones cortados */
    position: relative;
    z-index: 10;
    
    /* Fallback de Scroll Interno */
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.booking-card {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
    padding: 10px 0;
}

/* Indicador de pasos */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.step-pill {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.step-pill.active {
    color: var(--primary-dark);
}

.step-pill.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--gold-accent);
}

/* Pasos de Contenido */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Inputs y Labels */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-sans);
    transition: all 0.2s;
    outline: none;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--gold-accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(223, 183, 108, 0.15);
}

/* Cuadrícula de Horarios */
.time-slots-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.time-slot {
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--gold-accent);
    background-color: rgba(223, 183, 108, 0.05);
    color: var(--gold-muted);
}

.time-slot.selected {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(223, 183, 108, 0.3);
}

.time-slot.disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
    text-decoration: line-through;
}

/* Botones */
.btn-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    margin-bottom: 15px;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-accent) 0%, var(--gold-muted) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(223, 183, 108, 0.25);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(223, 183, 108, 0.35);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Modal OTP */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(39, 19, 18, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.otp-card {
    background-color: var(--white);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 2px solid var(--gold-accent);
    text-align: center;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

.otp-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--gold-accent);
}

.otp-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.otp-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-digit {
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    background-color: #f8fafc;
    font-family: var(--font-sans);
}

.otp-digit:focus {
    border-color: var(--gold-accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(223, 183, 108, 0.15);
}

/* Pantalla de Éxito */
.success-view {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px auto;
}

.success-view h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.success-details {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 450px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
}

.detail-val {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Notificación Toast */
.toast-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    padding: 12px 20px;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.toast-success { background-color: #059669; }
.toast-error { background-color: #dc2626; }
.toast-info { background-color: #2563eb; }

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #1c0908;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(223, 183, 108, 0.2);
    margin-top: 60px;
}

footer img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Responsividad */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .booking-card {
        padding: 20px;
    }

    .btn-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}
