/* ============================================================
   GESTOR TURNOS VETE – STYLE.CSS FINAL
============================================================ */

/* ============================================================
   1. AGENDA PÚBLICA
============================================================ */

.agenda-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.agenda-box {
    border: 1px solid #d1d5db;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
}

.agenda-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* SLOT BASE */
.agenda-item {
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 14px;
}

/* ESTADOS */
.agenda-item.disponible {
    background: #ffffff;
}

.agenda-item.solicitado {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.agenda-item.confirmado {
    background: #f0fdf4;
    border-color: #86efac;
}

/* RESUMEN + DETALLE */
.resumen-turno {
    font-weight: 600;
}

.detalles-ocultos {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================
   2. ACCIONES DEL TURNO
============================================================ */

.acciones-turno {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acciones-turno .button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

/* BOTONES */
.confirmar-turno {
    background: #22c55e;
}

.cancelar-turno {
    background: #ef4444;
}

.button-whatsapp {
    background: #25D366;
}

.button-qr {
    background: #0f766e;
}

/* ============================================================
   3. MODAL ASIGNAR TURNO
============================================================ */

.gtv-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gtv-modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    width: 420px;
    max-width: 92%;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.gtv-modal-box h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.gtv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gtv-grid input,
.gtv-grid select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.gtv-btn-primary {
    background: #0ea5a4;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    width: 100%;
    cursor: pointer;
}

.gtv-btn-secondary {
    background: #6b7280;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    margin-top: 8px;
    width: 100%;
    cursor: pointer;
}

.gtv-msg {
    margin-top: 10px;
    font-size: 13px;
}

/* ============================================================
   4. FORMULARIO FRONTEND
============================================================ */

.form-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background: #f9fafb;
}

.form-section h2 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 20px;
    border-bottom: 2px solid #0ea5a4;
    padding-bottom: 10px;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 10px;
}

.columns-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 280px;
}

.form-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button-next,
.button-prev {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
}

.button-next {
    background: #0ea5a4;
}

.button-prev {
    background: #6b7280;
}

/* ============================================================
   5. RESPONSIVE
============================================================ */

@media (max-width: 768px) {
    .agenda-container {
        grid-template-columns: 1fr;
    }

    .gtv-grid {
        grid-template-columns: 1fr;
    }
}
