/* css/prestadores.css - DISEÑO DE PRESTADORES CENTRADO */

/* Contenedor principal */
.grid-prestadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-prestador {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: center; /* CENTRA TODO EL TEXTO POR DEFECTO */
}

.card-prestador a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-prestador:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Contenedor de Imagen */
.prestador-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.prestador-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-prestador:hover .prestador-img-container img {
    transform: scale(1.05);
}

/* Contenido de la información */
.prestador-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRA LOS ELEMENTOS HIJOS (flex) */
    flex-grow: 1;
}

.prestador-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #222;
}

/* Estilos para Dirección y Horario (Referencia Lavandería) */
.info-dato {
    font-size: 0.9rem;
    color: #444;
    margin: 2px 0 !important;
    line-height: 1.3;
}

.info-dato strong {
    color: #000;
}

/* Estilo para la descripción */
.descripcion {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 15px 0 !important;
    flex-grow: 1;
    max-width: 90%; /* Evita que el texto toque los bordes al estar centrado */
}

/* --- ENLACE "VER DETALLES" (TEXTO AZUL CENTRADO) --- */
.btn-ver-detalles {
    color: #0d46d6;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centra el contenido del span */
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
    padding-top: 10px;
    text-decoration: none;
}

.card-prestador:hover .btn-ver-detalles {
    color: #0836a8;
    gap: 10px;
}

/* --- AJUSTE EXCLUSIVO MÓVIL --- */
@media (max-width: 768px) {
    .grid-prestadores {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .prestador-img-container {
        height: 190px; /* Un poco más de aire en móvil */
    }

    .prestador-info {
        padding: 15px;
    }

    .prestador-info h3 {
        font-size: 1.25rem;
    }
}