:root {
    --accent: #fff380;
    --highlight: #ffe847;
    --black: #000;
    --white: #fff;
    --soft: #f8f5f0;
    --line: rgba(255, 255, 255, 0.72);
    --font-franklin: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    --font-helvetica: var(--font-franklin);
    --font-league: var(--font-franklin);
    --font-aileron: var(--font-franklin);
    --font-times-condensed: "Times New Roman MT Condensed", "Times New Roman", Times, serif;
    --font-telegraf: var(--font-franklin);
    --font-inter: var(--font-franklin);
    --font-hk: var(--font-franklin);
    --home-logo-scale: 4.35;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    margin: 0;
    font-family: var(--font-helvetica);
    background: var(--black);
    color: var(--white);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding-top: 54px;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.on-home .site-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.logo-link {
    display: none;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.menu a {
    min-width: 82px;
    padding: 7px 17px 8px;
    color: var(--white);
    border: 1.4px solid currentColor;
    border-radius: 999px;
    font-family: var(--font-helvetica);
    font-size: 1.08rem;
    line-height: 1;
    text-align: center;
    text-transform: lowercase;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: transparent;
}

.on-home .menu a {
    color: var(--black);
    animation: navEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.on-home .menu a:nth-child(1) {
    animation-delay: 80ms;
}

.on-home .menu a:nth-child(2) {
    animation-delay: 140ms;
}

.on-home .menu a:nth-child(3) {
    animation-delay: 200ms;
}

.on-home .menu a:nth-child(4) {
    animation-delay: 260ms;
}

.on-home .menu a:nth-child(5) {
    animation-delay: 320ms;
}

.on-home .menu a:nth-child(6) {
    animation-delay: 380ms;
}

.on-home .menu a:nth-child(7) {
    animation-delay: 440ms;
}

.menu a:hover,
.menu a[aria-current="page"] {
    color: var(--black);
    background: var(--accent);
    border-color: var(--black);
    text-decoration: none;
}

.on-home .menu a:hover,
.on-home .menu a[aria-current="page"] {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
}

.menu-icon {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
}

.menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.home-hero {
    min-height: 100vh;
    padding: 150px 20px 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 30px;
    color: var(--black);
    background: var(--accent);
    text-align: center;
    animation: homeWash 700ms ease both;
}

.home-logo-frame {
    width: min(620px, 88vw);
    height: clamp(150px, 24vw, 230px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: -20px;
    animation: logoFrameEnter 900ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both;
}

.home-logo {
    width: 100%;
    max-width: none;
    transform: scale(var(--home-logo-scale));
    transform-origin: center;
    animation: logoMarkEnter 1100ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
}

.home-hero h1 {
    margin: 0;
    font-family: var(--font-league);
    font-size: clamp(2.6rem, 6.8vw, 4.65rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    animation: titleEnter 820ms cubic-bezier(0.16, 1, 0.3, 1) 640ms both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 58px;
    border-radius: 999px;
    font-family: var(--font-aileron);
    font-size: 1.55rem;
    text-decoration: none;
}

.btn-dark {
    color: var(--white);
    background: var(--black);
}

.home-hero .btn {
    animation: ctaEnter 700ms cubic-bezier(0.16, 1, 0.3, 1) 860ms both;
}

.apps-sprite {
    position: relative;
    width: 220px;
}

.home-socials {
    animation: socialsEnter 700ms cubic-bezier(0.16, 1, 0.3, 1) 1040ms both;
}

.apps-sprite img {
    width: 100%;
}

.sprite-link {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 33.333%;
}

.sprite-link.whatsapp {
    left: 0;
}

.sprite-link.instagram {
    left: 33.333%;
}

.sprite-link.map {
    left: 66.666%;
}

.page-section {
    scroll-margin-top: 0;
    scroll-snap-align: start;
}

.page {
    min-height: 100vh;
    padding: 130px 20px 64px;
}

.dark-page {
    background: var(--black);
}

.about-design {
    width: min(860px, 100%);
    min-height: calc(100vh - 194px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.about-design h1 {
    margin: 0 0 54px;
    font-weight: 400;
    line-height: 0.85;
}

.about-design h1 span {
    display: block;
    color: var(--white);
    font-size: clamp(5.5rem, 13vw, 8.2rem);
    letter-spacing: 0;
}

.about-design h1 em {
    display: block;
    padding: 0 70px 12px;
    color: var(--black);
    background: var(--highlight);
    font-family: var(--font-times-condensed);
    font-size: clamp(5.4rem, 13vw, 8rem);
    font-weight: 700;
    line-height: 0.85;
}

#nosotros.section-active .about-design h1 em {
    animation: aboutWordEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.about-design p {
    max-width: 850px;
    margin: 0 auto 24px;
    font-family: var(--font-helvetica);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.about-icons {
    display: flex;
    gap: 54px;
    align-items: center;
    justify-content: center;
    font-size: 4.2rem;
    line-height: 1;
}

.about-icons span {
    opacity: 0;
    transform: translateY(24px) scale(0.86);
    filter: blur(8px);
}

#nosotros.section-active .about-icons span {
    animation: emojiEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#nosotros.section-active .about-icons span:nth-child(1) {
    animation-delay: 1050ms;
}

#nosotros.section-active .about-icons span:nth-child(2) {
    animation-delay: 1230ms;
}

#nosotros.section-active .about-icons span:nth-child(3) {
    animation-delay: 1410ms;
}

.photo-page {
    min-height: 100vh;
    background-color: var(--black);
    background-position: var(--photo-position, center);
    background-size: var(--photo-size, cover);
    background-repeat: no-repeat;
}

.services-photo {
    --photo-position: 50% 52%;
    --services-bg-position-mobile: 58% 50%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.48)), url("../img/sillas.png");
}

.gallery-photo {
    --photo-position: 50% 50%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28)), url("../img/barberiasillasbillar.png");
}

.map-photo {
    background: var(--black);
}

.prices-design {
    min-height: 100vh;
    padding: 135px 7vw 64px;
    display: grid;
    align-content: center;
    color: var(--white);
}

.services-grid {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 48px;
}

.service-card {
    min-height: 220px;
    padding: 28px 30px 24px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    color: var(--black);
    border: 1px solid rgba(255, 243, 128, 0.34);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 243, 128, 0.72), rgba(87, 87, 52, 0.56));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(10px);
    backdrop-filter: blur(8px);
}

.service-card h2 {
    margin: 0;
    font-family: var(--font-helvetica);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 0.95;
}

.service-card p {
    margin: 0;
    max-width: 95%;
    font-family: var(--font-hk);
    font-size: clamp(1.12rem, 2vw, 1.55rem);
    line-height: 1.18;
}

.service-card strong {
    justify-self: end;
    font-family: var(--font-helvetica);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 400;
    line-height: 1;
}

#servicios.section-active .service-card {
    animation: serviceCardEnter 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#servicios.section-active .service-card:nth-child(1) {
    animation-delay: 90ms;
}

#servicios.section-active .service-card:nth-child(2) {
    animation-delay: 170ms;
}

#servicios.section-active .service-card:nth-child(3) {
    animation-delay: 250ms;
}

#servicios.section-active .service-card:nth-child(4) {
    animation-delay: 330ms;
}

#servicios.section-active .service-card:nth-child(5) {
    animation-delay: 410ms;
}

#servicios.section-active .service-card:nth-child(6) {
    animation-delay: 490ms;
}

.gallery-hero {
    min-height: 100vh;
    padding: 120px 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-hero h1 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-family: var(--font-inter);
    font-weight: 900;
    font-size: clamp(5.2rem, 16vw, 12.5rem);
    line-height: 0.82;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(44px) scale(0.88);
    filter: blur(14px);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

#galeria.section-active .gallery-hero h1 {
    animation: galleryMonumentEnter 1250ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.location-layout {
    min-height: calc(100vh - 194px);
    width: min(1128px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, 1.52fr) minmax(320px, 1fr);
    gap: 98px;
    align-items: center;
}

.map-embed {
    width: 100%;
    aspect-ratio: 1.35;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: #16191d;
    opacity: 0;
    transform: translateX(-26px);
    filter: blur(8px);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.92) contrast(0.88) brightness(0.72);
}

.location-cards {
    display: grid;
    gap: 24px;
}

.location-box {
    min-height: 70px;
    padding: 17px 24px;
    display: grid;
    place-items: center;
    color: var(--white);
    border: 1px solid var(--line);
    background: var(--black);
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: translateX(24px);
    filter: blur(7px);
}

#ubicacion.section-active .map-embed {
    animation: softSectionEnter 760ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

#ubicacion.section-active .location-box {
    animation: softSectionEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#ubicacion.section-active .location-box:nth-child(1) {
    animation-delay: 220ms;
}

#ubicacion.section-active .location-box:nth-child(2) {
    animation-delay: 340ms;
}

#ubicacion.section-active .location-box:nth-child(3) {
    animation-delay: 460ms;
}

#ubicacion.section-active .location-box:nth-child(4) {
    animation-delay: 580ms;
}

.location-box p {
    margin: 0;
    font-family: var(--font-helvetica);
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.35;
}

.location-button {
    min-height: 70px;
    font-family: var(--font-helvetica);
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
}

.location-button:hover {
    color: var(--black);
    background: var(--accent);
    border-color: var(--accent);
}

.contact-design {
    width: min(1090px, 100%);
    min-height: calc(100vh - 194px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.note-card {
    padding: 28px 30px 34px;
    color: var(--black);
    background: var(--soft);
    border-radius: 8px;
}

.contact-design .note-card,
.contact-design .outline-form,
.auth-design .note-card,
.auth-panel {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
}

#contacto.section-active .contact-design .note-card,
#login.section-active .auth-design .note-card {
    animation: softSectionEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

#contacto.section-active .contact-design .outline-form,
#login.section-active .auth-panel {
    animation: softSectionEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

.note-card span {
    display: block;
    margin-bottom: 32px;
    color: #e5ac31;
    font-family: var(--font-helvetica);
    font-size: 1.2rem;
    font-weight: 700;
}

.note-card h1 {
    margin: 0 0 30px;
    font-family: var(--font-helvetica);
    font-size: clamp(2.55rem, 5vw, 4.2rem);
    line-height: 0.86;
    font-weight: 400;
}

.note-card h1 em {
    padding: 0 12px;
    background: var(--highlight);
    font-family: var(--font-times-condensed);
    font-weight: 700;
}

.note-card p {
    margin: 0;
    max-width: 530px;
    font-family: var(--font-helvetica);
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.15;
}

.outline-form {
    display: grid;
    gap: 20px;
}

.outline-form label {
    min-height: 64px;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    border: 1px solid var(--line);
}

.outline-form label span {
    padding-left: 22px;
    color: var(--white);
    font-size: 2.7rem;
    line-height: 1;
}

.outline-form input,
.outline-form select,
.outline-form button {
    width: 100%;
    min-height: 62px;
    color: var(--white);
    background: transparent;
    border: 0;
    font-family: var(--font-hk);
    font-size: 1.08rem;
    text-align: center;
}

.outline-form input:focus,
.outline-form select:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.outline-form select option {
    color: var(--black);
}

.outline-form button {
    border: 1px solid var(--line);
    cursor: pointer;
}

.outline-form button:hover,
.auth-tabs button.active,
.ghost-button:hover,
.time-chip.active,
.calendar-day.active {
    color: var(--black);
    background: var(--accent);
}

.form-message {
    min-height: 22px;
    margin: 0;
    color: var(--accent);
    text-align: center;
}

.service-builder {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-builder legend {
    padding: 0 10px;
    color: var(--accent);
    font-family: var(--font-hk);
    text-align: center;
}

.outline-form .check-line {
    min-height: 48px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.check-line input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.check-line.fixed {
    border-color: var(--accent);
}

.scheduler-grid {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.calendar-field {
    height: 100%;
}

.mini-calendar {
    min-height: 184px;
    padding: 14px;
    border: 1px solid var(--line);
}

.calendar-title {
    margin: 0 0 12px;
    color: var(--accent);
    font-family: var(--font-hk);
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekday,
.calendar-day {
    min-height: 28px;
    display: grid;
    place-items: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
}

.calendar-weekday {
    color: var(--accent);
    border-color: transparent;
}

.calendar-day {
    cursor: pointer;
    background: transparent;
}

.calendar-day:disabled {
    opacity: 0.22;
    cursor: default;
}

.clock-picker {
    padding: 18px;
    border: 1px solid var(--line);
}

.clock-face {
    width: min(270px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.clock-face::before {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent);
}

.time-chip {
    width: 48px;
    height: 48px;
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--black);
    font-family: var(--font-hk);
    font-size: 0.82rem;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-104px) rotate(calc(var(--angle) * -1));
}

.selected-time {
    min-height: 28px;
    margin: 16px 0 0;
    color: var(--accent);
    text-align: center;
}

.auth-design {
    width: min(1090px, 100%);
    min-height: calc(100vh - 194px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.auth-panel {
    display: grid;
    gap: 18px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.auth-tabs button,
.ghost-button {
    min-height: 46px;
    color: var(--white);
    border: 1px solid var(--line);
    background: transparent;
    font-family: var(--font-hk);
    cursor: pointer;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: grid;
}

.admin-panel {
    padding: 18px;
    border: 1px solid var(--line);
}

.admin-panel[hidden] {
    display: none;
}

.admin-panel-header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-panel h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 400;
}

.appointments-list {
    display: grid;
    gap: 12px;
    max-height: 360px;
    overflow: auto;
}

.appointment-card {
    padding: 14px;
    display: grid;
    gap: 10px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.appointment-card div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.appointment-card strong,
.appointment-card span,
.appointment-card p,
.appointment-card small,
.empty-state {
    margin: 0;
    font-family: var(--font-hk);
}

.appointment-card p {
    color: var(--accent);
}

.appointment-card small {
    text-transform: uppercase;
    opacity: 0.72;
}

.floating-whatsapp {
    width: 62px;
    height: 62px;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: grid;
    place-items: center;
    background: #25d366;
    border: 2px solid var(--black);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    animation: floatingWhatsappEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) 1180ms both;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
}

.floating-icon-sprite {
    width: 35px;
    height: 35px;
    display: block;
    overflow: hidden;
}

.floating-icon-sprite img {
    width: 197px;
    max-width: none;
    height: auto;
    transform: translate(-2px, 1px);
}

@keyframes homeWash {
    from {
        background-color: #fffbc8;
    }
    to {
        background-color: var(--accent);
    }
}

@keyframes navEnter {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFrameEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoMarkEnter {
    from {
        opacity: 0;
        transform: scale(calc(var(--home-logo-scale) * 0.82)) translateY(10px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: scale(var(--home-logo-scale)) translateY(0);
        filter: blur(0);
    }
}

@keyframes titleEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes ctaEnter {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.92);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    72% {
        opacity: 1;
        transform: translateY(-2px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.12);
    }
}

@keyframes socialsEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatingWhatsappEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.82);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes emojiEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.86);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes aboutWordEnter {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes softSectionEnter {
    from {
        opacity: 0;
        transform: translateY(26px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes serviceCardEnter {
    0% {
        opacity: 0;
        transform: translateY(34px) scale(0.94);
        filter: blur(12px);
    }
    64% {
        opacity: 1;
        transform: translateY(-4px) scale(1.015);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes galleryMonumentEnter {
    0% {
        opacity: 0;
        color: rgba(255, 255, 255, 0.04);
        transform: translateY(60px) scale(0.76);
        filter: blur(18px);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    46% {
        opacity: 1;
        color: var(--accent);
        transform: translateY(-8px) scale(1.08);
        filter: blur(0);
        text-shadow: 0 0 42px rgba(255, 232, 71, 0.58), 0 18px 70px rgba(0, 0, 0, 0.8);
    }
    100% {
        opacity: 1;
        color: rgba(255, 255, 255, 0.98);
        transform: translateY(0) scale(1);
        filter: blur(0);
        text-shadow: 0 4px 0 rgba(0, 0, 0, 0.74), 0 18px 80px rgba(0, 0, 0, 0.86), 0 0 34px rgba(255, 232, 71, 0.3);
    }
}

@keyframes galleryMobileFinalEnter {
    0% {
        opacity: 0;
        color: rgba(255, 255, 255, 0);
        transform: translateY(22px) scale(0.86);
        filter: blur(14px);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    48% {
        opacity: 1;
        color: var(--accent);
        transform: translateY(-3px) scale(1.02);
        filter: blur(0);
        text-shadow: 0 0 26px rgba(255, 232, 71, 0.55);
    }
    100% {
        opacity: 1;
        color: rgba(255, 255, 255, 0.98);
        transform: translateY(0) scale(1);
        filter: blur(0);
        text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72), 0 0 28px rgba(255, 255, 255, 0.2);
    }
}

@keyframes galleryMobileEcho {
    0% {
        opacity: 0;
        transform: translateY(-34vh) scale(0.92);
        filter: blur(12px);
    }
    24% {
        opacity: 0.95;
        transform: translateY(-14vh) scale(0.98);
        filter: blur(3px);
    }
    54% {
        opacity: 0.86;
        color: var(--accent);
        transform: translateY(7vh) scale(1);
        filter: blur(0);
    }
    82% {
        opacity: 0;
        transform: translateY(28vh) scale(1.02);
        filter: blur(7px);
    }
    100% {
        opacity: 0;
        transform: translateY(34vh) scale(1.02);
        filter: blur(9px);
    }
}

@keyframes galleryContrastEnter {
    0% {
        opacity: 0;
        color: rgba(255, 255, 255, 0.1);
        transform: translateY(34px) scale(0.94);
        filter: blur(12px);
        text-shadow: none;
    }
    58% {
        opacity: 1;
        color: var(--accent);
        transform: translateY(-4px) scale(1.02);
        filter: blur(0);
        text-shadow: 0 0 34px rgba(255, 232, 71, 0.42);
    }
    100% {
        opacity: 1;
        color: rgba(255, 255, 255, 0.96);
        transform: translateY(0) scale(1);
        filter: blur(0);
        text-shadow: 0 0 22px rgba(255, 255, 255, 0.18), 0 0 54px rgba(255, 232, 71, 0.24);
    }
}

@media (max-width: 860px) {
    .site-header {
        padding-top: 18px;
    }

    .nav {
        justify-content: flex-end;
    }

    .menu-icon {
        display: block;
        color: var(--white);
    }

    .on-home .menu-icon {
        color: var(--black);
    }

    .menu {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 12px;
        background: var(--black);
        border: 1px solid var(--line);
    }

    .on-home .menu {
        background: var(--accent);
        border-color: var(--black);
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        width: 100%;
        color: var(--white);
    }

    .on-home .menu a {
        color: var(--black);
    }

    .home-hero {
        padding-top: 110px;
        gap: 26px;
    }

    .home-logo-frame {
        width: min(520px, 92vw);
        height: clamp(130px, 31vw, 190px);
    }

    .home-logo {
        --home-logo-scale: 4;
    }

    .btn {
        width: min(340px, 100%);
        padding: 0 24px;
    }

    .about-design h1 em {
        padding-inline: 24px;
    }

    .contact-design,
    .auth-design,
    .scheduler-grid,
    .location-layout {
        grid-template-columns: 1fr;
    }

    .services-photo {
        --photo-position: var(--services-bg-position-mobile);
        background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.54)), url("../img/sillas.png");
    }

    .gallery-photo {
        --photo-size: cover;
        --photo-position: center;
        background-color: var(--black);
        background-image: linear-gradient(rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)), url("../img/allstarsmovil.png");
    }

    .gallery-hero {
        padding: 0 20px;
        display: grid;
        align-items: center;
        justify-content: center;
        justify-items: center;
    }

    .gallery-hero::before {
        content: "ALLSTARS®";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        z-index: 0;
        color: rgba(255, 255, 255, 0.9);
        font-family: var(--font-inter);
        font-size: clamp(2.45rem, 11.2vw, 4.15rem);
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0;
        opacity: 0;
        pointer-events: none;
        text-align: center;
        text-shadow:
            -18vw -36vh 0 currentColor,
            15vw -27vh 0 currentColor,
            -4vw -17vh 0 currentColor,
            22vw -6vh 0 currentColor,
            -24vw 7vh 0 currentColor,
            6vw 17vh 0 currentColor,
            -12vw 30vh 0 currentColor,
            20vw 39vh 0 currentColor;
        transform: translateY(-34vh) scale(0.92);
    }

    #galeria.section-active .gallery-hero::before {
        animation: galleryMobileEcho 1180ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .gallery-hero h1 {
        width: min(86vw, 430px);
        position: relative;
        left: auto;
        top: auto;
        z-index: 1;
        max-width: 86vw;
        color: rgba(255, 255, 255, 0.98);
        font-size: clamp(3.15rem, 14.6vw, 5.15rem);
        line-height: 0.9;
        text-align: center;
        transform: translateY(22px) scale(0.86);
        filter: blur(14px);
        overflow-wrap: normal;
        white-space: nowrap;
    }

    #galeria.section-active .gallery-hero h1 {
        animation: galleryMobileFinalEnter 1280ms cubic-bezier(0.16, 1, 0.3, 1) 620ms both;
    }

    .prices-design {
        min-height: 100vh;
        padding: 104px 16px 56px;
        align-content: center;
    }

    .services-grid {
        width: min(480px, 100%);
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        min-height: 112px;
        padding: 18px 18px 16px;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr;
        column-gap: 16px;
        border-color: rgba(255, 243, 128, 0.42);
        background: linear-gradient(135deg, rgba(255, 243, 128, 0.76), rgba(67, 67, 43, 0.62));
        box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
    }

    .service-card h2 {
        font-size: clamp(1.42rem, 7vw, 2rem);
    }

    .service-card p {
        max-width: 100%;
        font-size: clamp(0.98rem, 4.5vw, 1.16rem);
    }

    .service-card strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: end;
        font-size: clamp(1.3rem, 6vw, 1.75rem);
    }

    .contact-design {
        gap: 34px;
    }

    .auth-design {
        gap: 34px;
    }

    .location-layout {
        gap: 26px;
        width: min(680px, calc(100% - 28px));
    }

    .map-embed {
        aspect-ratio: 1.18;
    }

    .about-design {
        min-height: calc(100vh - 154px);
    }
}

@media (max-width: 520px) {
    .home-socials,
    .about-icons {
        gap: 20px;
    }

    .about-icons {
        font-size: 2.9rem;
    }

    .about-design p {
        font-size: 1.28rem;
    }

    .outline-form label {
        grid-template-columns: 54px 1fr;
    }

    .outline-form label span {
        padding-left: 14px;
    }

    .service-builder {
        grid-template-columns: 1fr;
    }

    .time-chip {
        width: 42px;
        height: 42px;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-86px) rotate(calc(var(--angle) * -1));
    }

    .floating-whatsapp {
        width: 56px;
        height: 56px;
        right: 14px;
        bottom: 14px;
    }

    .location-box {
        padding: 15px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
