.gallos-page {
    background: #edf8f3;
}

.gallos-hero {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    min-height: 520px;
    margin: 0 auto;
    padding: calc(var(--header-offset) + 42px) 28px 64px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: center;
}

.gallos-hero__content,
.gallos-intro,
.weekly-gallery {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(7px);
}

.gallos-hero__content {
    padding: clamp(26px, 5vw, 52px);
    border-radius: 26px;
}

.gallos-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    margin: 8px 0 16px;
    color: var(--secundario);
}

.gallos-hero p {
    max-width: 58ch;
    font-size: 1.05rem;
    line-height: 1.65;
}

.gallos-hero .btn {
    margin-top: 24px;
}

.gallos-hero__eyebrow,
.section-kicker {
    color: var(--principal);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: .76rem;
}

.gallos-hero__image {
    width: min(100%, 370px);
    justify-self: center;
    padding: 18px;
    border-radius: 28px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

.gallos-content {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 0 auto;
    padding: 0 0 80px;
    display: grid;
    gap: 24px;
}

.gallos-intro,
.weekly-gallery {
    border-radius: var(--panel-radius);
    padding: 28px;
}

.gallos-intro h2,
.weekly-gallery h2 {
    margin: 6px 0 10px;
}

.gallos-intro p:not(.section-kicker),
.weekly-gallery__note {
    line-height: 1.6;
}

.weekly-gallery__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.weekly-gallery__note {
    max-width: 32ch;
    font-size: .92rem;
    opacity: .85;
}

.gallera-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(37, 114, 184, .16);
}

.gallera-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.gallera-card__header h3 {
    font-size: 1.5rem;
}

.gallos-group-title {
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(37, 114, 184, .16);
    color: var(--principal);
    font-size: 1.05rem;
    font-weight: 800;
}

.gallos-group-title:first-of-type {
    margin-top: 0;
}

.gallos-by-animal {
    display: grid;
    gap: 20px;
}

.gallo-history {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(37, 114, 184, .13);
}

.gallo-history h4 {
    margin-bottom: 12px;
    color: var(--secundario);
    font-size: 1.1rem;
}

.week-gallery-block + .week-gallery-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(37, 114, 184, .14);
}

.week-gallery-block h4 {
    margin-bottom: 12px;
    color: var(--secundario);
    font-size: 1rem;
}

.gallos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.gallo-card {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(37, 114, 184, .16);
    background: #fff;
}

.gallo-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallo-card--single:hover .gallo-card__main {
    transform: scale(1.04);
}

.gallo-card__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    overflow: hidden;
}

.gallo-card--has-pair .gallo-card__pair img {
    height: 210px;
    min-width: 0;
}

.gallo-card--has-pair:hover .gallo-card__pair img {
    transform: scale(1.04);
}

.gallo-card__hint {
    display: block;
    padding: 7px 12px;
    background: rgba(25, 162, 116, .1);
    border-top: 1px solid rgba(25, 162, 116, .18);
    color: var(--principal);
    text-align: center;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1px;
}

.gallo-card--interactive {
    cursor: zoom-in;
}

.gallo-card--interactive:focus-visible {
    outline: 3px solid var(--seclaro);
    outline-offset: 3px;
}

.gallo-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}

.gallo-card__footer h5 {
    color: var(--secundario);
    font-size: .9rem;
}

.gallo-card--empty {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secundario);
    background: rgba(37, 114, 184, .05);
    border-style: dashed;
}

.gallo-card--empty p {
    max-width: 16ch;
    font-weight: 700;
    line-height: 1.35;
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 40px 22px;
    background: rgba(5, 29, 22, .84);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.photo-modal--open {
    display: flex;
}

.photo-modal__title {
    color: white;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.1rem;
}

.photo-modal__gallery {
    width: min(100%, 1040px);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 4px;
}

.photo-modal__gallery img {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

.photo-modal__close {
    position: absolute;
    top: 20px;
    right: 24px;
    border: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--secundario);
    background: white;
}

@media (max-width: 700px) {
    .gallos-hero {
        grid-template-columns: 1fr;
        padding: calc(var(--header-offset) + 28px) 0 40px;
        min-height: 0;
    }

    .gallos-hero__content {
        padding: 26px 22px;
    }

    .gallos-hero__image {
        width: min(80%, 260px);
    }

    .weekly-gallery__heading,
    .gallera-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallos-intro,
    .weekly-gallery {
        padding: 20px;
    }

    .gallera-card {
        padding: 16px;
    }
}
