/* Estilos para el contenido de las pestañas informativas */
.info-content {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.info-header h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2e7d32;
    margin-bottom: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid #2a5c5d;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Contenedor principal */
.security-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio uniforme entre tarjetas */
}

/* Tarjeta de seguridad individual */
.security-list li {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eef2f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

/* Título con jerarquía */
.security-list li strong {
    display: block;
    font-size: 1.1rem;
    color: #2e7d32;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Texto descriptivo */
.security-list li p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Sub-lista de ciudades (Jerarquía de segundo nivel) */
.security-list ul {
    margin-top: 15px;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.security-list ul li {
    background: #f8fbfb;
    padding: 10px;
    border-radius: 8px;
    border: none;
    border-left: 3px solid #2a5c5d; /* Detalle sutil de marca */
    margin-bottom: 0;
    font-size: 0.85rem;
    box-shadow: none;
}

/* El aviso de "Regla de Oro" o Tip */
.security-list em {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: #fff9f0; /* Un tono crema suave para consejos */
    border-radius: 8px;
    font-style: normal;
    font-size: 0.9rem;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.emergency-box {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contenedor del tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

/* El enlace de reporte */
.btn-report {
    color: #ff4b2b;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* El cuadro que sale al hacer hover */
.tooltip-box {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Aparece arriba del texto */
    left: 50%;
    margin-left: -110px; /* Centrado exacto */
    
    /* Animación suave */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* La flechita del globo */
.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Mostrar al hacer HOVER */
.tooltip-wrapper:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateY(0px);
}

/* Ajuste para móviles: En pantallas táctiles se verá al tocarlo */
@media (max-width: 600px) {
    .tooltip-box {
        left: 0;
        margin-left: -50px;
    }
}


/* PERFIL USUARIO */

.perfil-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.perfil-header-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.perfil-avatar {
    font-size: 3rem;
    background: #e2e8f0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.perfil-info h2 { margin: 0 0 5px 0; color: var(--text-color); }
.perfil-info p { margin: 0 0 10px 0; color: #64748b; }

.grid-perfil {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Tarjeta específica para el perfil con botón de borrar */
.card-perfil {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-perfil img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-perfil-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-perfil-body h4 { margin: 10px 0 5px 0; }

.btn-danger {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.2s;
}

.btn-danger:hover { background-color: #dc2626; }





/* Estilos específicos para evitar saturar el HTML con inline styles */
    .btn-peligro-estilo {
        background-color: #e11d48;
        border: none;
        padding: 12px 20px;
        border-radius: 10px;
        color: white;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s, background-color 0.2s;
    }
    .btn-peligro-estilo:hover {
        background-color: #be123c;
        transform: scale(1.02);
    }
    .modal-perfil {
        display: none; 
        position: fixed; 
        z-index: 2000; 
        left: 0; top: 0; 
        width: 100%; height: 100%; 
        background: rgba(0,0,0,0.5);
        align-items: center; justify-content: center;
    }
    .modal-perfil-content {
        background: white; padding: 30px; border-radius: 16px; 
        max-width: 400px; width: 90%; text-align: center;
    }
