/* Complementos mínimos — mobile-first, estética institucional */

::selection {
    background-color: rgba(0, 153, 161, 0.15);
    color: #1a2832;
}

html {
    scroll-padding-top: 4.5rem;
}

@media (min-width: 768px) {
    html {
        scroll-padding-top: 5rem;
    }
}

body {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

#header {
    padding-top: env(safe-area-inset-top, 0);
}

#header.scrolled {
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
}

.site-logo--header {
    height: 3.25rem;
    width: auto;
    max-width: 7.25rem;
    object-fit: contain;
}

@media (min-width: 400px) {
    .site-logo--header {
        height: 3.625rem;
        max-width: 8rem;
    }
}

@media (min-width: 768px) {
    .site-logo--header {
        height: 4.75rem;
        max-width: 10rem;
    }
}

.site-logo--footer {
    height: 2.5rem;
    width: auto;
    max-width: 5.5rem;
    object-fit: contain;
}

.site-logo--admin {
    height: 7rem;
    width: auto;
    object-fit: contain;
}

.site-logo--admin-header {
    height: 4.5rem;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .site-logo--admin-header {
        height: 5rem;
    }
}

.hero-photo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
}

.hero-carousel {
    position: relative;
}

.hero-carousel__viewport {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8fafc;
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-carousel__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 0 0.25rem;
}

.hero-carousel__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-carousel__dot.is-active {
    background: #0099a1;
    transform: scale(1.15);
}

.resenas-panel__hint {
    margin-top: 0.875rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #5a6570;
}

.resenas-scroller-wrap {
    position: relative;
}

.resenas-scroller-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0.5rem;
    bottom: 1px;
    height: 2.75rem;
    border-radius: 0 0 0.75rem 0.75rem;
    background: linear-gradient(to bottom, rgb(255 255 255 / 0), rgb(255 255 255 / 0.96));
    pointer-events: none;
}

#resenas-scroller.resenas-scroller {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

#resenas-scroller.resenas-scroller:focus-visible {
    outline: 2px solid rgb(0 153 161 / 0.45);
    outline-offset: 2px;
}

#resenas-scroller.resenas-scroller::-webkit-scrollbar {
    width: 0.5rem;
}

#resenas-scroller.resenas-scroller::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 999px;
}

#resenas-scroller.resenas-scroller::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

#resenas-scroller.resenas-scroller::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.hero-photo--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f8fafc;
    color: #5a6570;
}

.hero-photo__initials {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    opacity: 0.4;
}

.hero-photo__hint {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.55;
}

.ll-map-frame__map {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
}

#mobile-menu {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 639px) {
    #nosotros .ll-map-frame__map {
        aspect-ratio: 4 / 3;
        min-height: 11.5rem;
    }
}

@media (min-width: 640px) {
    #nosotros .nosotros-map .ll-map-frame__map {
        aspect-ratio: 4 / 3;
        min-height: auto;
    }
}

.site-footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0));
}

.footer-info-link {
    min-height: 2rem;
}

@media (max-width: 399px) {
    .footer-social-link {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
}
