/**
 * Estilos Sistema OTA - Oro Te Acompaña
 * Mobile-first, accesibilidad WCAG AA
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    font-size: 16px;
    opacity: 0.9;
}

/* Panel GPS */
.gps-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 350px;
}

.gps-panel.hidden {
    display: none;
}

.gps-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.gps-panel h2 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 20px;
}

.gps-panel p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Panel de emergencias */
.emergency-panel {
    display: none;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 350px;
}

.emergency-panel.show {
    display: block;
}

.emergency-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 22px;
}

/* Botones de emergencia */
.btn-emergency {
    width: 100%;
    min-height: 70px;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-emergency:active {
    transform: translateY(0);
}

/* Colores específicos */
.btn-policia {
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

.btn-policia:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.btn-bomberos {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

.btn-bomberos:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
}

.btn-ambulancia {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
}

.btn-ambulancia:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

/* Botón habilitar GPS */
.btn-gps {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gps:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Información de ubicación */
.location-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.location-info.hidden {
    display: none;
}

.location-info p {
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg) translateZ(0); }
}

/* Modal de confirmación */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Responsive para desktop */
@media (min-width: 768px) {
    .modal-content {
        width: 400px;
        max-width: 400px;
    }
}

.modal h3 {
    color: #d32f2f;
    margin-bottom: 20px;
    font-size: 20px;
}

.modal p {
    margin-bottom: 25px;
    line-height: 1.5;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

/* Opciones de ubicación en modal de confirmación */
.ubicacion-emergencia {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.opcion-ubicacion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.opcion-ubicacion:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.opcion-ubicacion input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #1976d2;
}

.opcion-ubicacion input[type="radio"]:checked + .radio-label {
    color: #1976d2;
    font-weight: bold;
}

.radio-label {
    font-size: 15px;
    color: #333;
}

.ubicacion-gps {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-left: 30px;
    font-style: italic;
}

.input-direccion {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 5px;
    transition: all 0.2s ease;
}

.input-direccion:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.input-direccion:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.input-direccion:not(:disabled) {
    background: #fff3e0;
    border-color: #ff9800;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirmar {
    background: #d32f2f;
    color: white;
}

.btn-cancelar {
    background: #757575;
    color: white;
}

.btn-modal:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal de Seguimiento */
.modal-seguimiento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-seguimiento-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.acciones-emergencia {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    border-top: 2px solid #e0e0e0;
}

.botones-emergencia-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.btn-emergency-small {
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-emergency-small.btn-policia {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
}

.btn-emergency-small.btn-bomberos {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    color: white;
}

.btn-emergency-small.btn-ambulancia {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: white;
}

.btn-emergency-small:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-insistir {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-insistir:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.3);
}

/* Estilos para el contenido del seguimiento */
.emergency-card-modal {
    background: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.timer-display-modal {
    background: #333;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contador-esperando-modal {
    background: #ff9800 !important;
    color: white !important;
}

.contador-camino-modal {
    background: #2196f3 !important;
    color: white !important;
}

.progress-container-modal {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.btn-confirmar-modal {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .btn-emergency {
        min-height: 60px;
        font-size: 16px;
    }
}

/* Estados de los botones */
.btn-emergency:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background: #ccc !important;
    color: #666 !important;
}

.btn-emergency:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #ccc !important;
}

.btn-emergency:disabled small {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.8;
}

/* PANTALLA ÚNICA - ESTADOS */
.pantalla-estado {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s ease;
}

/* ESTADO REGISTRO */
.header-registro {
    text-align: center;
    margin-bottom: 30px;
}

.form-registro {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.info-registro {
    text-align: center;
    margin-bottom: 25px;
}

.info-registro h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.info-registro p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-registrar {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-registrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* ESTADO PAZ */
.panel-principal {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.info-usuario {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #90caf9;
}

.usuario-nombre {
    font-size: 20px;
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 8px;
}

.usuario-telefono {
    font-size: 14px;
    color: #424242;
    margin-bottom: 8px;
}

.ubicacion-actual {
    font-size: 13px;
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Botón WhatsApp en emergencia activa */
.btn-whatsapp-emergencia {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-emergencia:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e, #075e54);
}

.btn-whatsapp-emergencia:active {
    transform: translateY(0);
}

/* ===== GUÍA INSTALACIÓN iOS ===== */
.guia-ios {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.guia-ios-content {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto;
}

.guia-ios-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.guia-ios-icon {
    font-size: 32px;
}

.guia-ios-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.guia-ios-pasos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.guia-ios-paso {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.paso-numero {
    width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.paso-texto {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.paso-icono {
    font-size: 20px;
    flex-shrink: 0;
}

.guia-ios-imagen {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.safari-compartir-icono {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border-radius: 12px;
}

.safari-compartir-icono svg {
    width: 32px;
    height: 32px;
}

.safari-compartir-icono span {
    font-size: 12px;
    opacity: 0.9;
}

.guia-ios-botones {
    display: flex;
    gap: 12px;
}

.btn-guia-despues {
    flex: 1;
    padding: 14px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-guia-despues:hover {
    border-color: #999;
    color: #333;
}

.btn-guia-entendido {
    flex: 2;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-guia-entendido:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.botones-emergencia {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* CONTENEDORES DE BOTONES TRANSFORMABLES */
.btn-container {
    width: 100%;
}

.btn-container .btn-emergency {
    width: 100%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
}

/* Estado emergencia dentro del botón */
.estado-emergencia {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border-left: 5px solid #666;
    animation: slideDown 0.5s ease;
}

.btn-container:has(.btn-policia) .estado-emergencia {
    border-left-color: #1976d2;
}

.btn-container:has(.btn-bomberos) .estado-emergencia {
    border-left-color: #d32f2f;
}

.btn-container:has(.btn-ambulancia) .estado-emergencia {
    border-left-color: #388e3c;
}

/* Header del estado */
.estado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.estado-tipo {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.estado-id {
    font-size: 14px;
    color: #666;
    background: rgba(0,0,0,0.05);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Progreso visual con línea de tiempo */
.estado-progreso {
    margin-bottom: 15px;
}

.linea-tiempo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.momento-completado {
    font-size: 14px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
}

.momento-esperando {
    font-size: 14px;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ff9800;
    animation: pulse-urgente-suave 2s infinite;
}

.momento-activo {
    font-size: 14px;
    color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
    animation: pulse-urgente-suave 2s infinite;
}

.contador-esperando, .contador-camino {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
}

.hora-reporte {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

@keyframes pulse-urgente-suave {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Acciones del estado */
.estado-acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-insistir {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse-insistir 2s infinite;
}

.btn-insistir:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-confirmar-llegada {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse-llegada 3s infinite;
}

.btn-confirmar-llegada:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Animaciones */
@keyframes pulse-insistir {
    0% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }
}

@keyframes pulse-llegada {
    0% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    33% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    66% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
}

.advertencia-legal {
    margin-top: 20px;
    text-align: center;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 8px;
    padding: 12px;
}

.advertencia-legal p {
    color: #f57f17;
    font-size: 12px;
    font-weight: bold;
    margin: 0;
}

/* SECCIÓN OBSOLETA DE BARRAS ELIMINADA - AHORA SE USAN BOTONES TRANSFORMABLES */

.btn-confirmar-llegada {
    width: 100%;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-confirmar-llegada:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

@keyframes pulse-suave {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


/* Ajustes responsivos */
@media (max-width: 480px) {
    .barras-progreso {
        padding: 10px;
    }
    
    .botones-emergencia-inferior {
        padding: 10px;
    }
    
    .botones-emergencia-inferior .btn-emergency {
        min-height: 50px;
        font-size: 12px;
    }
}

/* Lápiz editar perfil */
.editar-lapiz {
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 14px;
}

.editar-lapiz:hover {
    opacity: 1;
    transform: scale(1.1);
    cursor: pointer;
}

/* Modal perfil */
.modal-perfil {
    max-width: 400px;
    padding: 25px;
}

.modal-perfil h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-perfil .form-group {
    margin-bottom: 15px;
}

.modal-perfil label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.modal-perfil input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.botones-modal {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-guardar {
    flex: 1;
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.btn-cancelar {
    flex: 1;
    background: #666;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.zona-peligro {
    text-align: center;
    padding: 10px;
}

.btn-eliminar {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
}

.btn-eliminar:hover {
    background: #d32f2f;
}