.agency-profile-reviews-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #dbe2ef;
    color: #6b7280;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}
/* =====================================================
   AGENCY PROFILE PAGE
===================================================== */

.agency-profile-hero,
.agency-profile-about,
.agency-profile-services,
.agency-profile-prices,
.agency-profile-reviews {
    background: #f6f8fc;
}

.agency-profile-hero {
    padding: 42px 0 28px;
}

.agency-profile-hero .container,
.agency-profile-about .container,
.agency-profile-services .container,
.agency-profile-prices .container,
.agency-profile-reviews .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =====================================================
   HERO
===================================================== */

.agency-profile-hero__box {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 150px;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.agency-profile-hero__logo {
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #edf1f7;
    overflow: hidden;
}

.agency-profile-hero__logo img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
}

.agency-profile-hero__label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(31, 111, 235, 0.09);
    color: #1f6feb;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.agency-profile-hero__content h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.agency-profile-hero__slogan {
    max-width: 760px;
    margin: 0 0 18px;
    color: #047857;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 800;
}

/* =====================================================
   HERO META / VERIFIED
===================================================== */

.agency-profile-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.agency-profile-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.agency-profile-hero__verified {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.agency-profile-hero__verified span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #047857;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

/* =====================================================
   HERO RATING
===================================================== */

.agency-profile-hero__rating {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: #0f766e;
    color: #ffffff;
    text-align: center;
}

.agency-profile-hero__rating strong {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.agency-profile-hero__rating span {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    opacity: 0.95;
}

/* =====================================================
   RESPONSIVE HERO
===================================================== */

@media (max-width: 1080px) {
    .agency-profile-hero__box {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .agency-profile-hero__logo {
        width: 160px;
        height: 160px;
    }

    .agency-profile-hero__rating {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .agency-profile-hero__box {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 24px;
    }

    .agency-profile-hero__logo {
        width: 132px;
        height: 132px;
    }

    .agency-profile-hero__content h1 {
        font-size: 32px;
    }

    .agency-profile-hero__slogan {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .agency-profile-hero__meta,
    .agency-profile-hero__verified {
        flex-direction: column;
        align-items: stretch;
    }

    .agency-profile-hero__meta span,
    .agency-profile-hero__verified span {
        justify-content: center;
        width: 100%;
    }
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.agency-profile-about,
.agency-profile-services,
.agency-profile-prices,
.agency-profile-reviews {
    padding: 28px 0;
}

.agency-profile-section,
.agency-profile-services__grid,
.agency-profile-prices__table-wrap,
.agency-profile-reviews__grid {
    background: #ffffff;
    border: 1px solid #e5ebf5;
    border-radius: 26px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.agency-profile-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 30px;
    align-items: center;
    padding: 30px;
}

.agency-profile-section__content h2,
.agency-profile-header h2 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.agency-profile-section__content p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.75;
}

.agency-profile-header {
    margin-bottom: 18px;
}

.agency-profile-header h2 {
    margin-bottom: 0;
}

/* =====================================================
   GALLERY
===================================================== */

.agency-profile-gallery {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: repeat(2, 150px);
    gap: 12px;
}

.agency-profile-gallery figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f6fb;
    border: 1px solid #edf1f7;
}

.agency-profile-gallery figure:first-child {
    grid-row: 1 / 3;
}

.agency-profile-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   SERVICES
===================================================== */

.agency-profile-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}

.agency-profile-service-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.agency-profile-service-card__image {
    height: 190px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border-bottom: 1px solid #edf1f7;
}

.agency-profile-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agency-profile-service-card__body {
    padding: 20px;
}

.agency-profile-service-card__body h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.agency-profile-service-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.agency-profile-service-card__meta span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.agency-profile-service-card__models {
    margin: 0 0 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
}

.agency-profile-service-card__body p {
    margin: 0;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.65;
}

/* =====================================================
   PRICES - AGENCY PROFILE
===================================================== */

.agency-profile-prices {
    padding: 28px 0;
    background: #f6f8fc;
}

.agency-profile-prices .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Oculta la tabla anterior si todavía quedó en el HTML */
.agency-profile-prices__table-wrap,
.agency-profile-prices__table {
    display: none;
}

/* =====================================================
   PRICES BY ZONE CARDS
===================================================== */

.agency-price-zones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.agency-price-zone-card {
    overflow: hidden;
    border: 1px solid #e5ebf5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.agency-price-zone-card__header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #1f6feb 0%, #155fd1 100%);
}

.agency-price-zone-card__header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.agency-price-zone-card__services {
    display: grid;
}

.agency-price-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid #edf1f7;
}

.agency-price-service:last-child {
    border-bottom: 0;
}

.agency-price-service__main h4 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

.agency-price-service__includes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.agency-price-service__includes span {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.agency-price-service__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.agency-price-service__prices > div {
    padding: 14px 12px;
    border-radius: 16px;
    background: #f6f8fc;
    border: 1px solid #e5ebf5;
}

.agency-price-service__prices small {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agency-price-service__prices strong {
    display: block;
    color: #111827;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* =====================================================
   RESPONSIVE - PRICES
===================================================== */

@media (max-width: 980px) {
    .agency-price-zones {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .agency-profile-prices .container {
        padding: 0 14px;
    }

    .agency-price-service {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .agency-price-service__prices {
        grid-template-columns: 1fr;
    }

    .agency-price-zone-card__header {
        padding: 17px 18px;
    }

    .agency-price-zone-card__header h3 {
        font-size: 18px;
    }
}

/* =====================================================
   REVIEWS
===================================================== */

.agency-profile-reviews {
    padding: 28px 0 70px;
    background: #f6f8fc;
}

.agency-profile-reviews .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.agency-profile-header--reviews {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
}

.agency-profile-header--reviews p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
}

.agency-profile-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 120px;
    padding: 18px;
    border-radius: 22px;
    background: #0f766e;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.agency-profile-reviews-summary strong {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
}

.agency-profile-reviews-summary span {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    opacity: 0.95;
}

/* Filters */

.agency-profile-review-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.agency-profile-review-filters div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.agency-profile-review-filters label {
    color: #374151;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agency-profile-review-filters select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 14px;
    border: 1px solid #dbe2ef;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.agency-profile-review-filters select:focus {
    border-color: rgba(31, 111, 235, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.10);
}

/* Reviews grid */

.agency-profile-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.agency-profile-review-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.agency-profile-review-card__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.agency-profile-review-card__top img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #edf1f7;
}

.agency-profile-review-card__top strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
}

.agency-profile-review-card__top span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

.agency-profile-review-card__rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.agency-profile-review-card p {
    flex: 1;
    margin: 0 0 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
}

.agency-profile-review-card small {
    display: block;
    margin-top: auto;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

/* Pagination */

.agency-profile-reviews-pagination {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.agency-profile-reviews-pagination button {
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: #1f6feb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.20);
}

.agency-profile-reviews-pagination button:hover {
    background: #155fd1;
}

.agency-profile-reviews-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Loading state para AJAX */

.agency-profile-reviews.is-loading .agency-profile-reviews__grid {
    opacity: 0.55;
    pointer-events: none;
}

/* =====================================================
   RESPONSIVE - REVIEWS
===================================================== */

@media (max-width: 980px) {
    .agency-profile-header--reviews {
        grid-template-columns: 1fr;
    }

    .agency-profile-reviews-summary {
        align-items: flex-start;
        min-height: auto;
        text-align: left;
    }

    .agency-profile-review-filters {
        grid-template-columns: 1fr;
    }

    .agency-profile-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .agency-profile-reviews .container {
        padding: 0 14px;
    }

    .agency-profile-reviews__grid {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 22px;
    }

    .agency-profile-review-card__top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .agency-profile-review-card__rating {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1080px) {

    .agency-profile-hero__box {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .agency-profile-hero__logo {
        width: 160px;
        height: 160px;
    }

    .agency-profile-hero__rating {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
    }

    .agency-profile-section {
        grid-template-columns: 1fr;
    }

    .agency-profile-gallery {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 160px 160px;
    }

    .agency-profile-gallery figure:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .agency-profile-services__grid,
    .agency-profile-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {

    .agency-profile-hero {
        padding-top: 28px;
    }

    .agency-profile-hero .container,
    .agency-profile-about .container,
    .agency-profile-services .container,
    .agency-profile-prices .container,
    .agency-profile-reviews .container {
        padding: 0 14px;
    }

    .agency-profile-hero__box {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 24px;
    }

    .agency-profile-hero__logo {
        width: 132px;
        height: 132px;
    }

    .agency-profile-hero__content h1 {
        font-size: 32px;
    }

    .agency-profile-hero__slogan {
        font-size: 16px;
    }

    .agency-profile-section,
    .agency-profile-services__grid,
    .agency-profile-prices__table-wrap,
    .agency-profile-reviews__grid {
        border-radius: 22px;
    }

    .agency-profile-section {
        padding: 22px;
    }

    .agency-profile-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 170px 130px 130px;
    }

    .agency-profile-gallery figure:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .agency-profile-services__grid,
    .agency-profile-reviews__grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .agency-profile-review-card__top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .agency-profile-review-card__rating {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

}

@media (max-width: 480px) {

    .agency-profile-hero__contact,
    .agency-profile-hero__social {
        flex-direction: column;
        align-items: stretch;
    }

    .agency-profile-hero__contact span,
    .agency-profile-hero__contact a,
    .agency-profile-hero__social a {
        justify-content: center;
        width: 100%;
    }

    .agency-profile-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .agency-profile-gallery figure,
    .agency-profile-gallery figure:first-child {
        grid-column: auto;
        grid-row: auto;
        height: 190px;
    }

}


