:root {
    --bg: #08080a;
    --card: #121214;
    --primary: #9b51e0;
    --primary-glow: rgba(155, 81, 224, 0.4);
    --text: #ffffff;
    --text-dim: #828284;
    --border: rgba(255, 255, 255, 0.08);
    --border2: rgba(255, 255, 255, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    height: 100dvh; /* Usa el 100% de la pantalla del dispositivo */
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Evita el scroll general de la página */
}

/* --- MASTER CARD --- */
.master-card {
    width: 95%;
    max-width: 1000px;
    height: 85vh; /* Altura máxima en escritorio */
    max-height: 700px;
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

/* --- PANEL IZQUIERDO --- */
.identity-panel {
    width: 40%;
    background: linear-gradient(45deg, #1a1a1d, #08080a);
    padding: 3rem;
}

.panel-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-text {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 6px;
}
.logo-text span { color: var(--primary); }

/* --- ECUALIZADOR --- */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
}

.bar {
    width: 6px;
    background: var(--primary);
    border-radius: 3px;
    animation: equalize 1s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary-glow);
}

.bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.bar:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 40%; animation-delay: 0.4s; }
.bar:nth-child(5) { height: 70%; animation-delay: 0.1s; }

@keyframes equalize {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* --- PANEL DERECHO (FORMS & LUGARES) --- */
.action-panel {
    width: 60%;
    position: relative;
    background: var(--card);
}

.ui-form, .layout-flex {
    position: absolute;
    inset: 0; /* Llena todo el panel derecho */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.Peticiones { opacity: 1; transform: translateX(0); z-index: 2; }
.Register { opacity: 0; transform: translateX(60px); pointer-events: none; z-index: 1; }

#form-box.toggle .Peticiones { opacity: 0; transform: translateX(-60px); pointer-events: none; z-index: 1; }
#form-box.toggle .Register { opacity: 1; transform: translateX(0); pointer-events: all; z-index: 2; }

.header h2 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.header p { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 0.9rem; }

.fields { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.input-box label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
    display: block;
    letter-spacing: 1px;
}

.input-box input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-box input:focus { border-color: var(--primary); background: rgba(155, 81, 224, 0.05); }

/* --- BOTONES --- */
.footer-btns { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }

.btn-primary, .btn-whatsapp, .btn-outline {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}
.btn-outline2 {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-whatsapp { background: #21c35a; color: white; }
.btn-outline { background: var(--primary); color: white; border: 1px solid var(--border2); }
.btn-outline2 { background: var(--primary); color: white; border: none; }

.btn-primary:hover, .btn-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--primary); }
.btn-outline2:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--primary); }

/* --- LISTA DE LUGARES --- */
.places-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 5px;
}

.places-list::-webkit-scrollbar { width: 4px; }
.places-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.place-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.place-item span { font-weight: 600; font-size: 0.85rem; }
.btn-maps { background: var(--primary); color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.65rem; font-weight: 700; transition: 0.3s; }
.btn-maps:hover { filter: brightness(1.2); }

/* Nuevas clases para acomodar el texto y el horario */
.place-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.place-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.place-schedule { font-size: 0.7rem; color: var(--primary); font-weight: 600; letter-spacing: 0.5px; }

.btn-maps { background: var(--primary); color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.65rem; font-weight: 700; transition: 0.3s; white-space: nowrap; }
.btn-maps:hover { filter: brightness(1.2); }

/* --- REDES SOCIALES --- */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem; /* Separación con el input de abajo */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    background: rgba(155, 81, 224, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- RESPONSIVE MOBILE PERFECTO --- */
@media (max-width: 850px) {
    .master-card { flex-direction: column; height: 100dvh; width: 100vw; border-radius: 0; border: none; max-height: 100dvh; }
    
    /* Panel Izquierdo Horizontal */
    .identity-panel { width: 100%; height: 12dvh; padding: 1rem 1.5rem; }
    .panel-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .info-footer { display: none; } /* Ocultamos texto extra para ahorrar espacio */
    .equalizer { height: 25px; align-items: center; }
    .logo-text { font-size: 1rem; }

    /* Formularios llenan el resto */
    .action-panel { width: 100%; height: 88dvh; }
    .ui-form, .layout-flex { padding: 1.5rem; }
    
    .header h2 { font-size: 1.5rem; }
    .fields { gap: 0.8rem; }
    .input-box input { padding: 0.75rem; font-size: 0.85rem; }
    .footer-btns { gap: 0.5rem; }
    .btn-primary, .btn-whatsapp, .btn-outline { padding: 0.8rem; }
}
/* --- COMPACTAR ESPACIOS EN PANTALLAS MÓVILES --- */
@media (max-width: 850px) {
    /* Reducimos ligeramente el padding del contenedor de formularios */
    .ui-form {
        padding: 1.2rem 1.5rem !important; /* Menos espacio arriba/abajo para ganar altura */
    }

    .header h2 {
        font-size: 1.3rem !important; /* Texto un poco más pequeño */
    }

    .header p {
        margin-bottom: 0.8rem !important; /* Menor margen */
    }

    /* Compactar Redes Sociales */
    .social-links {
        margin-bottom: 0.8rem !important;
        gap: 0.8rem !important;
    }
    
    .social-btn {
        width: 35px !important;
        height: 35px !important;
    }

    /* Compactar Inputs */
    .fields {
        gap: 0.6rem !important; /* Menos separación entre inputs */
    }

    .input-box label {
        margin-bottom: 0.2rem !important;
    }

    .input-box input {
        padding: 0.65rem !important; /* Inputs más delgados */
    }

    /* Sección de Propinas Compacta */
    .tip-section {
        margin-top: 0.6rem !important;
        margin-bottom: 0.8rem !important;
    }

    .tip-btn {
        display: block;
        text-align: center;
        color: var(--primary);
        text-decoration: none;
        font-size: 0.75rem !important; /* Texto más pequeño */
        font-weight: 600;
        padding: 0.6rem !important; /* Botón menos alto */
        border: 1px dashed rgba(155, 81, 224, 0.4);
        border-radius: 8px;
        background: rgba(155, 81, 224, 0.05);
    }

    /* Botones de acción finales más pequeños */
    .footer-btns {
        gap: 0.4rem !important;
        padding-top: 0.5rem !important;
    }

    .btn-primary, .btn-whatsapp, .btn-outline {
        padding: 0.75rem !important; /* Reducir altura del botón */
        font-size: 0.75rem !important;
    }
}

/* --- ESTILO DE PROPINAS EN ESCRITORIO --- */
.tip-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.tip-btn {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.8rem;
    border: 1px dashed rgba(155, 81, 224, 0.4);
    border-radius: 8px;
    background: rgba(155, 81, 224, 0.05);
    transition: all 0.3s ease;
}

.tip-btn:hover {
    background: rgba(155, 81, 224, 0.1);
    transform: translateY(-2px);
}