.services-section {
    margin-top: 18px;
    margin-bottom: 30px;
    align-items: start;
}

.services-main-column {
    grid-column: 1 / span 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ENCABEZADOS Y BUSCADORES */
.services-header-card {
    background: #ffffff;
    border: 2px solid var(--border, #d8d8d8);
    border-radius: var(--radius, 18px);
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Anton", sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: #d32027;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.services-badge.badge-blue {
    color: #075ba8;
}

.services-badge.badge-green {
    color: #16a34a;
}

.services-badge-dot {
    width: 10px;
    height: 10px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
}

.services-main-title {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 26px;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.services-subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* BARRA DE BÚSQUEDA */
.services-search-box {
    position: relative;
    width: 100%;
}

.services-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.services-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.services-search-input:focus {
    border-color: #075ba8;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(7, 91, 168, 0.12);
}

.services-search-input.search-green:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* GRIDS DE TARJETAS */
.clinics-grid,
.consulates-services-grid,
.recycling-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

@media (min-width: 1200px) {
    .clinics-grid,
    .consulates-services-grid,
    .recycling-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.clinic-card,
.consulate-service-card,
.recycling-service-card {
    background: #ffffff;
    border: 2px solid var(--border, #d8d8d8);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.clinic-card:hover {
    transform: translateY(-3px);
    border-color: #d32027;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.consulate-service-card:hover {
    transform: translateY(-3px);
    border-color: #075ba8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.recycling-service-card:hover {
    transform: translateY(-3px);
    border-color: #16a34a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-top-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.card-number-badge {
    background-color: #d32027;
    color: #ffffff;
    font-family: "Anton", sans-serif;
    font-size: 14px;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-number-badge.badge-blue {
    background-color: #075ba8;
}

.card-number-badge.badge-green {
    background-color: #16a34a;
}

.card-clinic-title {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 14px;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
}

.card-address-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.card-pin-icon {
    color: #075ba8;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.card-pin-icon.pin-green {
    color: #16a34a;
}

.card-phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #d32027;
}

.card-phone-row.phone-blue {
    color: #075ba8;
}

.card-phone-row.phone-green {
    color: #16a34a;
}

.card-phone-icon {
    color: currentColor;
    font-size: 13px;
    flex-shrink: 0;
}

.card-phone-text {
    color: inherit;
    text-decoration: none;
}

.card-phone-text:hover {
    text-decoration: underline;
}

/* FILA DE MATERIALES */
.card-materials-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #15803d;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1.35;
}

.card-recycle-icon {
    color: #16a34a;
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* BOTONES DE ACCIÓN */
.card-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.btn-directions,
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 4px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    text-align: center;
}

.btn-directions {
    background-color: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.btn-directions:hover {
    background-color: #075ba8;
    color: #ffffff;
    border-color: #075ba8;
}

.btn-call {
    background-color: #d32027;
    color: #ffffff;
    border: 1px solid #d32027;
}

.btn-call:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-call.btn-call-blue {
    background-color: #075ba8;
    border-color: #075ba8;
}

.btn-call.btn-call-blue:hover {
    background-color: #054580;
    border-color: #054580;
}

.btn-call.btn-call-green {
    background-color: #16a34a;
    border-color: #16a34a;
}

.btn-call.btn-call-green:hover {
    background-color: #15803d;
    border-color: #15803d;
}

/* SIN RESULTADOS */
.no-results {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.no-results h3 {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 20px;
    color: #0f172a;
    margin: 12px 0 6px;
}

/* SIDEBAR PUBLICITARIO */
.services-side-ad {
    grid-column: 11 / span 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.services-side-ad-card {
    display: block;
    width: 100%;
    border-radius: var(--radius, 18px);
    overflow: hidden;
    border: 2px solid var(--border, #d8d8d8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.services-side-ad-card:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.services-side-ad-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .services-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }

    .services-main-column {
        grid-column: auto !important;
        width: 100% !important;
    }

    .services-side-ad {
        display: none !important;
    }

    .clinics-grid,
    .consulates-services-grid,
    .recycling-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .services-main-title {
        font-size: 20px;
    }

    .services-header-card {
        padding: 16px;
    }

    .clinics-grid,
    .consulates-services-grid,
    .recycling-services-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .services-side-ad {
        display: none !important;
    }
}
