/* Variables de Color */
:root {
    --verde-udocba: #99C823;
    --azul-maps: #4285F4;
    --fondo-gris: #f8f9fa;
    --oscuro: #333;
}

body {
    background-color: var(--fondo-gris);
    font-family: 'Montserrat', sans-serif;
    color: var(--oscuro);
}

/* Estilo del Mapa */
#mapaFarmacia {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid white;
    z-index: 1;
}

/* Buscador */
.search-container {
    border-left: 5px solid var(--verde-udocba);
}

.input-group-text {
    color: #aaa;
}

#buscadorFarmacia:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Tabla */
.table thead {
    background-color: var(--oscuro);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table td {
    padding: 15px;
    font-size: 0.95rem;
}

.badge-localidad {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
}

/* Botón Maps */
.btn-maps {
    background-color: var(--azul-maps);
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-maps:hover {
    background-color: #357ae8;
    color: white;
    transform: scale(1.05);
}

/* Texto de Beneficio */
.text-beneficio {
    color: #28a745;
    font-weight: bold;
}

/* Botones Flotantes */
.social-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Ajustes para Celulares */
@media (max-width: 768px) {
    #mapaFarmacia {
        height: 300px;
    }
    
    .table th {
        font-size: 0.75rem;
    }
    
    .table td {
        font-size: 0.85rem;
    }
}

/* Diseño responsivo para la tabla */
@media (max-width: 768px) {
    /* Escondemos el encabezado de la tabla (thead) */
    .table-responsive thead {
        display: none;
    }

    .table-responsive table, 
    .table-responsive tbody, 
    .table-responsive tr, 
    .table-responsive td {
        display: block;
        width: 100%;
    }

    .table-responsive tr {
        margin-bottom: 1.5rem;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 1rem;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .table-responsive td {
        text-align: left !important;
        padding: 0.5rem 0;
        border: none;
        position: relative;
    }

    /* Agregamos etiquetas antes de cada dato para saber qué es */
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.75rem;
        display: block;
        color: #6c757d;
        margin-bottom: 2px;
    }

    /* Ajuste específico para el botón en móvil */
    .table-responsive td:last-child {
        text-align: center !important;
        margin-top: 0.5rem;
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
    
    .btn-maps {
        width: 100%; /* Botón ancho completo en móvil */
    }
}