/* Estilos para el título (igual que cupones) */
.title-large {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333 !important;
}

.text-center {
    text-align: center;
}

/* Asegurar que el título de establecimientos use el mismo color que cupones */
.page-header h1.title-large {
    color: #333 !important;
}

.establecimientos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    color: #333 !important;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

/* Estilos para centrar la introducción (igual que calendario) */
.intro-centered {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos para separar título y párrafo (igual que calendario) */
.top-content {
    text-align: center;
    margin-bottom: 20px;
    justify-content: center;
    display: flex;
}

.intro-content {
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.establecimientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.establecimiento-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.establecimiento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.establecimiento-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.establecimiento-logo {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #DE826B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.establecimiento-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.establecimiento-nombre {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    flex-grow: 1;
}

.establecimiento-imagen {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.establecimiento-imagen.principal {
    height: 250px;
}

.establecimiento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.establecimiento-card:hover .establecimiento-imagen img {
    transform: scale(1.05);
}

.establecimiento-info {
    padding: 20px;
}

/* Soportar el uso de 'descripcion_uno' y/o 'descripcion' */
.descripcion-uno, .descripcion-dos {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.establecimiento-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-web, .btn-cupones {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-web {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-cupones {
    background-color: #DE826B;
    color: white;
}

.btn-web:hover {
    background-color: #e9ecef;
}

.btn-cupones:hover {
    background-color: #c66b55;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .establecimientos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .establecimiento-header {
        flex-direction: column;
        text-align: center;
    }
    
    .establecimiento-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .establecimiento-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-web, .btn-cupones {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .establecimiento-imagen.principal {
        height: 200px;
    }
    
    .establecimiento-imagen.secundaria {
        height: 150px;
    }
}
