




















/* =========================================
   RESET Y BASES (Optimizado)
   ========================================= */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
}

/* =========================================
   CONTENEDOR PRINCIPAL
   ========================================= */
.container {
    max-width: 420px;
    width: 92%;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

h1 { 
    font-size: 22px; 
    text-align: center; 
    margin: 0 0 20px 0; 
    font-weight: 700;
}

form { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

/* =========================================
   ELEMENTOS DE FORMULARIO
   ========================================= */
.label-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 4px;
}

label { 
    font-size: 14px; 
    font-weight: 600; 
    color: #3a3a3c; 
}

.link-ver-mas { 
    font-size: 13px; 
    color: #007aff; 
    text-decoration: none; 
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    background: #fff;
    font-size: 16px; /* Evita zoom automático en iPhone */
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: #007aff;
}

button {
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:active {
    opacity: 0.8;
}

/* AVISO HORA */
.aviso-tiempo {
    font-size: 12px;
    color: #8e8e93;
    background: #f2f2f7;
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #007aff;
    line-height: 1.4;
}

/* =========================================
   MODAL ESTILO iOS
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-ios {
    background: #fff;
    width: 90%;
    max-width: 360px;
    border-radius: 22px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: #f2f2f7;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    color: #8e8e93;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ELEMENTOS DENTRO DEL MODAL */
.local-card { 
    margin-bottom: 10px; 
}

.local-img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 14px; 
    margin-bottom: 12px;
    background: #eee; 
}

.local-desc { 
    color: #8e8e93; 
    font-size: 13px; 
    margin: 4px 0; 
    line-height: 1.4;
}

.local-dir { 
    color: #1d1d1f; 
    font-size: 13px; 
    font-weight: 600; 
    margin: 4px 0; 
}

.separator { 
    height: 1px; 
    background: #e5e5ea; 
    margin: 18px 0; 
}

@supports not (backdrop-filter: blur(10px)) {
    .modal-overlay {
        background: rgba(0,0,0,0.55);
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }
}








.info-locales {
    margin-bottom: 10px;
}

.info-locales summary {
    font-size: 12px;
    font-weight: 500;
    color: #8e8e93;
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-locales summary::-webkit-details-marker {
    display: none;
}

.info-locales[open] summary {
    margin-bottom: 8px;
    color: #007aff;
}

.info-locales .local-card {
    background: #f2f2f7;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}