/* Galería y fotos destacadas — inicio, contacto y servicios */

/* —— Hero con fotos (inicio) —— */
body.modern-ui.page-home .hero-landing--with-photos {
    min-height: min(100vh, 920px) !important;
    min-height: min(100dvh, 920px) !important;
    padding: 100px 24px 80px;
    text-align: center;
}

body.modern-ui.page-home .hero-landing--with-photos .hero-landing-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    align-items: center;
    justify-items: center;
    gap: clamp(36px, 5vw, 72px);
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

body.modern-ui.page-home .hero-landing--with-photos .hero-landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0 8px;
}

body.modern-ui.page-home .hero-landing--with-photos .hero-landing-title {
    flex-direction: column;
    gap: 0.08em;
    margin-bottom: 22px;
    align-items: center;
}

body.modern-ui.page-home .hero-landing--with-photos .hero-landing-line,
body.modern-ui.page-home .hero-landing--with-photos .hero-landing-gradient {
    display: block;
    width: 100%;
    text-align: center;
}

body.modern-ui.page-home .hero-landing--with-photos .hero-landing-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    max-width: 32rem;
}

body.modern-ui.page-home .hero-landing--with-photos .hero-landing-actions {
    justify-content: center;
    max-width: 100%;
}

/* Collage ordenado en hero (inicio) */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(59, 130, 246, 0.07) 100%
    );
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -48px;
    z-index: -1;
    background: radial-gradient(ellipse at 70% 40%, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.hero-visual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-visual-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0f1a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-visual-card--featured {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.hero-visual-row .hero-visual-card {
    aspect-ratio: 4 / 3;
}

.hero-visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-visual-card:hover {
    border-color: rgba(125, 211, 252, 0.38);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36), 0 0 24px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.hero-visual-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual-card--featured img {
    object-position: center 40%;
}

.hero-visual-row .hero-visual-card:first-child img {
    object-position: center 35%;
}

.hero-visual-card:hover img {
    transform: scale(1.05);
}

.hero-visual-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    margin: 0;
    padding: 5px 11px;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(6, 10, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Panel y bento de fotos en hero (legado) */
.hero-photo-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(59, 130, 246, 0.06) 100%
    );
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-photo-panel::before {
    content: '';
    position: absolute;
    inset: -40px;
    z-index: -1;
    background: radial-gradient(ellipse at 60% 50%, rgba(59, 130, 246, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.hero-photo-bento {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    width: 100%;
    height: clamp(400px, 46vh, 480px);
}

.hero-photo-bento--duo {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: clamp(240px, 34vh, 340px);
}

.hero-photo--solo {
    width: 100%;
    height: clamp(280px, 38vh, 400px);
    aspect-ratio: 4 / 3;
    max-height: 400px;
}

.hero-photo {
    position: relative;
    margin: 0;
    height: 100%;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    background: #0a0f1a;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02) 0%,
        transparent 42%,
        rgba(0, 0, 0, 0.45) 82%,
        rgba(0, 0, 0, 0.78) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-photo:hover {
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.hero-photo--main {
    grid-row: 1 / span 2;
    grid-column: 1;
}

.hero-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-photo--main img,
.hero-photo--solo img {
    object-position: center 42%;
}

.hero-photo:hover img {
    transform: scale(1.04);
}

.hero-photo-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.hero-photo-label span {
    display: inline-block;
    padding: 6px 12px;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #f8fafc;
    background: rgba(6, 10, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* —— Sección galería (inicio) —— */
body.modern-ui .showcase-section {
    position: relative;
    padding: 88px 0 96px;
    overflow: hidden;
}

body.modern-ui .showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

body.modern-ui .showcase-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

body.modern-ui .showcase-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

body.modern-ui .showcase-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 999px;
}

body.modern-ui .showcase-title {
    margin: 0 0 14px;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
}

body.modern-ui .showcase-title-accent {
    background: linear-gradient(105deg, #93c5fd, #c4b5fd 45%, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.modern-ui .showcase-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.78);
}

body.modern-ui .showcase-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}

body.modern-ui .showcase-item {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(12, 18, 32, 0.55);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    min-height: 200px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

body.modern-ui .showcase-item:hover {
    border-color: rgba(99, 179, 255, 0.28);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35), 0 0 32px rgba(59, 130, 246, 0.06);
    transform: translateY(-3px);
}

body.modern-ui .showcase-item--featured {
    grid-row: 1 / span 2;
    min-height: 420px;
}

body.modern-ui .showcase-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.modern-ui .showcase-item:hover img {
    transform: scale(1.03);
}

body.modern-ui .showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 18px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

body.modern-ui .showcase-caption strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

body.modern-ui .showcase-caption span {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.82);
}

body.modern-ui .showcase-cta {
    margin-top: 36px;
    text-align: center;
}

body.modern-ui .showcase-cta .btn.secondary {
    margin-left: 10px;
}

/* —— Foto del local (contacto) —— */
body.modern-ui.page-contact .contact-visual-section {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

body.modern-ui.page-contact .contact-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: stretch;
}

body.modern-ui.page-contact .contact-store-photo {
    position: relative;
    margin: 0;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body.modern-ui.page-contact .contact-store-photo img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

body.modern-ui.page-contact .contact-store-photo figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(8, 12, 22, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(8px);
}

body.modern-ui.page-contact .contact-store-photo figcaption strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #fff;
}

body.modern-ui.page-contact .contact-store-photo figcaption span {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.8);
}

body.modern-ui.page-contact .contact-map-section--with-photo h2 {
    margin-top: 0;
}

/* —— Galería servicios —— */
body.modern-ui.page-services .services-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 0 4px;
}

body.modern-ui.page-services .services-showcase-item {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

body.modern-ui.page-services .services-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

body.modern-ui.page-services .services-showcase-item:hover img {
    transform: scale(1.05);
}

body.modern-ui.page-services .services-showcase-item span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* Tarjetas de servicio con imagen */
body.modern-ui .service-card-pro--with-image {
    padding-top: 0 !important;
}

body.modern-ui .service-card-pro-thumb {
    width: calc(100% + 3rem) !important;
    margin: 0 -1.5rem 16px !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
}

body.modern-ui .service-card-pro-thumb img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
    transition: transform 0.45s ease;
}

body.modern-ui .service-card-pro--with-image:hover .service-card-pro-thumb img {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-content {
        align-items: center;
        text-align: center;
    }

    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-title,
    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-line,
    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-gradient,
    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-lead {
        text-align: center;
    }

    body.modern-ui.page-home .hero-landing--with-photos .hero-landing-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-photo-panel {
        max-width: 480px;
    }

    .hero-photo-bento {
        height: clamp(360px, 40vh, 420px);
    }

    .hero-photo--solo {
        height: clamp(260px, 34vh, 360px);
    }

    body.modern-ui .showcase-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.modern-ui .showcase-item--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    body.modern-ui.page-home .hero-landing--with-photos {
        padding: 88px 16px 64px !important;
        min-height: auto !important;
    }

    .hero-photo-panel {
        max-width: 100%;
        padding: 8px;
        border-radius: 22px;
    }

    .hero-photo-bento {
        height: 340px;
        grid-template-columns: 1.15fr 1fr;
    }

    .hero-photo--solo {
        height: 260px;
        max-height: none;
    }

    .hero-photo-bento--duo {
        height: 220px;
    }

    .hero-visual {
        max-width: 100%;
        padding: 10px;
    }

    .hero-visual-row .hero-visual-card {
        aspect-ratio: 4 / 3;
    }

    body.modern-ui .showcase-section {
        padding: 72px 0 80px;
    }

    body.modern-ui .showcase-section-inner {
        padding: 0 16px;
    }

    body.modern-ui .showcase-grid {
        grid-template-columns: 1fr;
    }

    body.modern-ui .showcase-item,
    body.modern-ui .showcase-item--featured {
        min-height: 220px;
    }

    body.modern-ui .showcase-cta .btn.secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    body.modern-ui.page-contact .contact-visual-grid {
        grid-template-columns: 1fr;
    }

    body.modern-ui.page-services .services-showcase {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual-card:hover,
    .hero-visual-card:hover img,
    .hero-photo img,
    body.modern-ui .showcase-item img,
    body.modern-ui.page-services .services-showcase-item img,
    body.modern-ui .service-card-pro-thumb img {
        transition: none;
    }

    body.modern-ui .showcase-item:hover,
    .hero-photo:hover,
    .hero-photo:hover img,
    body.modern-ui .showcase-item:hover img {
        transform: none;
    }

    .hero-visual-card img {
        transition: none;
    }
}
