/* ============================================================
   OVERLAY – Fondo claro, profesional, sin blur exagerado
   ============================================================ */
.modal-overlay-negocio {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   MODAL – Diseño limpio, profesional, adaptable
   ============================================================ */
.modal-negocio {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   TITULOS
   ============================================================ */
.modal-negocio h2,
.titulo-tipos {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 18px;
    color: #111;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.tabs-negocio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.tab-negocio {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

/* Estado activo real */
.tab-negocio.active {
    background: #0071e3;
    color: white;
}

/* Hover SOLO en dispositivos con hover real (desktop) */
@media (hover: hover) and (pointer: fine) {
    .tab-negocio:hover {
        background: #0071e3;
        color: white;
    }
}

/* ============================================================
   SEPARADOR
   ============================================================ */
.linea-separadora {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 12px 0 16px 0;
}

/* ============================================================
   TIPOS DE NEGOCIO
   ============================================================ */
.tipos-negocio-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tipo-negocio-btn {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
    opacity: 0;
}

/* Hover SOLO desktop */
@media (hover: hover) and (pointer: fine) {
    .tipo-negocio-btn:hover {
        background: #eaeaea;
    }
}

/* Animación en cascada */
@keyframes cascade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BOTÓN CERRAR
   ============================================================ */
.modal-close-negocio {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    transition: 0.2s ease;
}

/* Hover SOLO desktop */
@media (hover: hover) and (pointer: fine) {
    .modal-close-negocio:hover {
        color: #000;
    }
}

/* ============================================================
   RESPONSIVE – Móviles ocupan casi toda la pantalla
   ============================================================ */
@media (max-width: 600px) {
    .modal-negocio {
        max-width: 95%;
        width: 95%;
        padding: 22px;
        border-radius: 12px;
    }

    .tabs-negocio {
        grid-template-columns: repeat(2, 1fr);
    }

    .tipos-negocio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-negocio h2,
    .titulo-tipos {
        font-size: 20px;
    }
}

/* ============================================================
   MODAL FINAL – Texto centrado y visible
   ============================================================ */
.modal-negocio p {
    text-align: center;
    font-size: 16px;
    color: #222;
    margin-bottom: 20px;
}

/* ============================================================
   BOTÓN / ENLACE PRINCIPAL DEL MODAL FINAL
   ============================================================ */
.modal-negocio .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: #0071e3;
    color: white;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    margin-top: 10px;
}

/* Hover SOLO desktop */
@media (hover: hover) and (pointer: fine) {
    .modal-negocio .btn-primary:hover {
        background: #005bb5;
    }
}

/* ============================================================
   FIX EXTRA PARA MÓVILES
   ============================================================ */
.tab-negocio:focus,
.tipo-negocio-btn:focus {
    outline: none;
}

button {
    -webkit-tap-highlight-color: transparent;
}