:root {
    --acg-primary-color: #8c124f;
    --acg-secondary-color: #fa2821;
    --acge-text-color: #334155;
}

/* =========================================
   CONTENEDOR PRINCIPAL (LISTA)
   ========================================= */
.ACG-listado-completo {
    display: flex;
    flex-direction: column;
    /* Separación entre ficha y ficha */
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px 20px;
    font-size: 1.3rem;
}

.ACG-separador-fichas,
.ACG-ficha-individual {
    margin: 20px 0;
    border: 0;
    border-bottom: 1px solid #ccc;
}

.ACG-ficha-individual {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 20px;
}

/* Quitar el borde al último elemento */
.ACG-ficha-individual:last-child {
    border-bottom: none;
}

/* =========================================
   TITULARES E IMÁGENES
   ========================================= */
.acg-entry-title {
    background-color: var(--acg-primary-color);
    color: #fff !important;
    padding: 1rem;
    width: fit-content;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    /* Ajuste para que no sea gigante en lista */
}

h3 {
    color: var(--acg-primary-color);
    margin-top: 0;
}

.ACG-detalle-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    max-height: 400px;
    /* Limite de altura para que no ocupe toda la pantalla */
    object-fit: cover;
}

/* =========================================
   MAQUETACIÓN (COLUMNAS)
   ========================================= */
.acg-row {
    display: flex;
    flex-wrap: nowrap;
    /* Tu estilo original */
    flex-direction: row;
    gap: 4rem;
}

.acg-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Para que ocupen el espacio disponible equitativamente */
    min-width: 0;
    /* Evita desbordamientos en flex items */
}

/* RESPONSIVE: En móvil cambiamos a columna */
@media (max-width: 900px) {
    .acg-row {
        flex-direction: column;
        /* Uno debajo del otro */
        gap: 2rem;
    }

    .ACG-contact-card ul {
        flex-direction: column !important;
        /* Contacto en lista vertical en móvil */
        gap: 1rem !important;
    }

    .ACG-contact-card {
        padding: 0;
    }
}

/* =========================================
   DETALLES DEL NEGOCIO
   ========================================= */
.ACG-subtitle {
    font-size: 1.5rem;
    color: #777;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

.ACG-business-details {
    display: flex;
    width: 100%;
    gap: 20px;
}

.ACG-detail-box {
    width: 100%;
}

.ACG-detail-box h3 {
    font-size: 1.1rem;
    padding-bottom: 10px;
    display: inline-block;
}

/* =========================================
   TARJETA DE CONTACTO
   ========================================= */
.ACG-contact-card {
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 40px;
}

.ACG-contact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    /* Tu estilo original horizontal */
    flex-wrap: wrap;
    /* Permitir que baje si no cabe */
    gap: 2rem;
    justify-content: space-between;
}

.ACG-contact-card li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #daeaf5;
    /* Borde inferior en cada item */
    flex: 1;
    /* Repartir espacio */
    min-width: 100px;
}

/* Quitar bordes si están en fila */
.ACG-contact-card li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.acg-contact-list-item p {
    margin-bottom: 5px;
}

.acg-contact-list-item p a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* =========================================
   BOTONES
   ========================================= */
.ACG-btn {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.85rem;
    background: #fff;
    color: var(--acg-primary-color);
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid var(--acg-primary-color);
    transition: all 0.3s ease;
}

.ACG-btn:hover {
    background: var(--acg-primary-color);
    color: #fff;
}

.ACG-btn-2 {
    padding: 1rem;
    font-size: 1.2rem;
    width: 100%;
    background-color: var(--acg-secondary-color);
    color: #fff;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ACG-btn-2:hover {
    background-color: #8c124f;
    color: #fff;
}

/* =========================================
   GALERÍA (Lado derecho)
   ========================================= */
.acg-galeria-grid {
    display: flex;
    flex-direction: column;
    /* Una imagen debajo de otra en la columna derecha */
    gap: 10px;
    align-items: center;
    margin-bottom: -20px;
    /* Centrar imágenes */
}

.acg-galeria-item {
    width: 100%;
    max-width: 300px;
    /* Mantener tu ancho deseado pero flexible */
}

.acg-galeria-item a img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   ESTILOS ADICIONALES
   ========================================= */
.acg-filtro-wrap {
    padding-bottom: 2rem;
}

#acg_filtro_actividad {
    color: var(--acg-text-color);
}