/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* ===== CONTENEDORES ===== */
.container {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
}

/* 👉 CONTENEDOR PARA FORMULARIOS (registro, login, etc.) */
.container-custom {
    max-width: 540px;
    margin: 60px auto;
}

/* ===== TÍTULOS ===== */
h1, h2, h3, h5 {
    margin-bottom: 15px;
}

/* ===== TARJETAS ===== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    margin-bottom: 20px;
    text-align: center;
}

/* ===== FORMULARIOS ===== */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

label {
    font-weight: bold;
}

/* 🔑 PASSWORD MÁS LEGIBLE */
/*.password-box {
    background: #eee;
    font-weight: normal;
    font-family: "Courier New", monospace;
    letter-spacing: 1.2px;
    font-size: 17px;
}*/

.password-box {
    background: #e9ecef !important;
    font-weight: normal;
    font-family: "Courier New", monospace;
    letter-spacing: 1.2px;
    font-size: 17px;
    border: 1px solid #ccc;
    margin-top: 0px;
}

/* === ESTADOS DE PAGOS === */
.estado-pagado {
    color: #0AA84F;
    font-weight: bold;
}

.estado-pendiente {
    color: red;
    font-weight: bold;
}

.estado-parcial {
    color: orange;
    font-weight: bold;
}


/* ===== BOTONES ===== */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

/* Botón ancho completo */
.btn-panel {
    width: 100%;
}

/* Azul */
.btn-azul {
    background: #0D6EFD;
    color: white;
}
.btn-azul:hover {
    background: #0a58ca;
    color: white;
}

/* Verde */
.btn-verde {
    background: #0AA84F;
    color: white;
}
.btn-verde:hover {
    background: #087f3c;
    color: white;
}

/* Amarillo */
.btn-amarillo {
    background: #f59e0b;
    color: white;
}
.btn-amarillo:hover {
    background: #b45309;
    color: white;
}

/* Rojo */
.btn-rojo {
    background: #dc3545;
    color: white;
}
.btn-rojo:hover {
    background: #a71d2a;
    color: white;
}

/* Login (más claro al pasar) */
.btn-dark {
    background: #212529;
    color: white;
}
.btn-dark:hover {
    background: #495057;
    color: white;
}
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0AA84F;
  --bs-btn-border-color: #0AA84F;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* ===== TABLAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: #0D6EFD;
    color: white;
}

tr:nth-child(even) {
    background: #f9f9f9;
}
.form-restaurante {
    text-align: left;
}

.form-restaurante label {
    display: block;
    text-align: left;
}

/* ===== MENSAJES ===== */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
}

/* ===== BUSCADOR ===== */
.buscador {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* ===== ESPACIADOS ===== */
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .buscador {
        flex-direction: column;
    }

    .container {
        padding: 10px;
    }

    table, thead, tbody, th, td, tr {
        font-size: 12px;
    }
}

/* 📱 FORMULARIOS FULL WIDTH EN MÓVIL */
@media (max-width: 576px) {

    .container-custom {
        max-width: 100%;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        margin: 20px auto;
    }

    input, select, textarea {
        font-size: 16px; /* evita zoom en móviles */
    }

    .btn {
        font-size: 16px;
        padding: 12px;
    }
}

/*Controla alto de campo descripción nuevo restaurante*/
/*.textarea-ajustable {
    min-height: 100px;
    resize: none;
    overflow: hidden !important;
}*/
textarea.form-control {
    min-height: 100px;
    overflow: hidden !important;
    resize: none;
}

/* ===== MAPA RESTAURANTES ===== */
#map {
    width: 100%;
    height: 800px;
}

/* ===== TARJETAS RESTAURANTES ===== */
.card img {
    height: 200px;
    object-fit: cover;
}

/* Número restaurante */
.numero {
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    display: inline-block;
}

/* Descuento */
.descuento {
    background: #0AA84F;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 8px;
}

/* Info general */
.info {
    font-size: 14px;
    margin: 4px 0;
}

/* Nombre restaurante */
.nombre-restaurante {
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 8px;
    margin-bottom: 6px;
    color: #222;
}
/* ===== POPUP MAPA (SOLO ESTO NUEVO) ===== */

.popup-map {
    text-align: center;
    max-width: 160px;
}

.popup-map-img {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.popup-map-title {
    font-weight: bold;
    font-size: 13px;
}

.popup-map-sub {
    font-size: 12px;
    color: #666;
}

/* pequeño ajuste del contenedor */
.gm-style .gm-style-iw-c {
    padding: 6px !important;
}
/* SOLO afecta al panel de administración */
@media (max-width: 991.98px) {

    .admin-panel .row.g-4 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .admin-panel .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .admin-panel .card {
        margin-bottom: 10px;
    }
}