/* Botón de contacto estilo rojo */
a.btn-contacto {
    display: inline-block;
    padding: 7px 18px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0 8px 8px 0;
    text-transform: uppercase;
    margin-top: 15px; /* Agregar margen superior a los botones */
}
a.btn-contacto:hover, a.btn-contacto:focus {
    background: #fff;
    color: #c00;
    border: 2px solid #c00;
    text-decoration: none;
}

/* Textos de las cards más chicos */
.centro-info p, .centro-info h3 {
    font-size: 0.85rem;
}
.centro-info h3 {
    font-size: 1rem;
}
/* ========================================
   CENTROS KEYMEX - Estilos
   ======================================== */

body {
    font-family: 'Montserrat', sans-serif;
}

/* Main Container */
.centros-main {
    padding: 60px 120px;
    background: white;
    font-family: 'Montserrat', sans-serif;
}

/* Header Section */
.centros-header {
    text-align: center;
    margin-bottom: 60px;
}

.centros-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.centros-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

/* Centros Container */
.centros-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Centro Card */
.centro-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    align-items: stretch;
    min-height: 180px;
    align-items: stretch;
}

.centro-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Centro Image */
.centro-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.centro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    .centro-image img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 21/9;
        height: auto;
        min-height: 160px;
        border-radius: 16px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        margin-left: 0;
    }

/* Centro Info */
.centro-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 180px;
    min-height: 180px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.centro-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.centro-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 2.1;
    color: var(--color-text);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 0;
    margin-bottom: 0;
    flex: 1 0 auto;
}

.centro-address,
.centro-phone,
.centro-email,
.centro-web {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.centro-description {
    color: var(--color-text-light);
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

/* Botón Contacto */
.btn-contacto {
    font-family: 'Montserrat', sans-serif;
    display: block;
    padding: 5px 14px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: normal;
    text-align: center;
    transition: background 0.3s;
    width: 90px;
    margin: 0 0 0 auto;
    position: static;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    text-transform: uppercase;
    margin-top: 15px; /* Agregar margen superior a los botones */
}
    position: relative;
}
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    margin-bottom: 10px;
    z-index: 2;
}

.btn-contacto:hover {
    background: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .centros-main {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .centros-main {
        padding: 40px 20px;
    }

    .centros-header h1 {
        font-size: 24px;
    }

    .centros-header h2 {
        font-size: 20px;
    }

    .centro-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .centro-image {
        height: 200px;
    }

    .centro-info h3 {
        font-size: 16px;
    }

    .btn-contacto {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .centros-header h1 {
        font-size: 20px;
    }

    .centros-header h2 {
        font-size: 18px;
    }

    .centro-info p {
        font-size: 13px;
    }
}
