/* Malacara home — landing refinements (photo-led, quieter motion) */

.home-hero {
    position: relative;
    margin-top: 76px;
    min-height: clamp(520px, 72vh, 820px);
    overflow: hidden;
}

.home-hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-hero__video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
    filter: brightness(0.78) saturate(1.05);
    transform: scale(1.04);
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(128, 0, 32, 0.45) 100%);
}

.home-hero__content {
    position: relative;
    z-index: 10;
}

.home-hero__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero__logo {
    max-width: clamp(96px, 16vw, 200px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.home-hero__title {
    color: #fff;
    font-size: clamp(1.65rem, 3.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
    max-width: 22ch;
    margin-inline: auto;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.45);
    color: #ecfdf5;
    font-size: 0.875rem;
    font-weight: 600;
}

.home-hero__lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 500;
    line-height: 1.45;
    max-width: 42ch;
    margin-inline: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.home-hero__grid-wrap {
    max-width: 920px;
    width: 100%;
    margin-inline: auto;
}

.home-hero__grid-wrap > .row {
    margin-inline: 0;
}

.home-hero__service {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.22);
    min-height: 200px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.home-hero__service:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(128, 0, 32, 0.22);
}

.home-hero__service-bar {
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.home-hero__service-icon {
    color: var(--brand-primary);
    font-size: 2.25rem;
    line-height: 1;
}

.home-hero__service-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
}

.home-hero__service-badge--open {
    background: #25d366;
    color: #fff;
}

.home-hero__service-badge--pro {
    background: var(--brand-primary);
    color: #fff;
}

.home-hero__cta-row {
    gap: 0.75rem;
}

.home-hero__cta {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
}

.home-hero__cta--whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.home-hero__cta--brand {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.35);
}

.home-hero__cta--outline {
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.home-hero__cta:hover {
    transform: translateY(-2px);
    color: #fff;
}

.home-section-head {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.home-section-head h2 {
    color: var(--brand-primary);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin-bottom: 0.75rem;
}

.home-section-head p {
    color: var(--brand-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    max-width: 52ch;
    margin-inline: auto;
}

.home-about__list li {
    padding: 0.65rem 0;
    border-top: 1px solid var(--neutral-color, #e2e8f0);
}

.home-about__list li:last-child {
    border-bottom: 1px solid var(--neutral-color, #e2e8f0);
}

.home-photo-hover {
    overflow: hidden;
}

.home-photo-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-photo-hover img.home-photo-hover__top {
    object-position: center top;
}

.home-cta-final .home-btn-whatsapp,
.home-btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}

.home-cta-final .home-btn-whatsapp:hover,
.home-btn-whatsapp:hover {
    background-color: #1fb855;
    border-color: #1fb855;
    color: #fff;
}

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

.home-banner {
    position: relative;
    min-height: clamp(140px, 18vw, 220px);
    max-height: 240px;
    overflow: hidden;
}

.home-banner img {
    width: 100%;
    height: 100%;
    min-height: clamp(140px, 18vw, 220px);
    object-fit: cover;
    object-position: center 35%;
}

.home-banner__overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem 0.85rem;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.35) 40%, rgba(128, 0, 32, 0.82) 100%);
    color: #fff;
}

.home-banner__overlay h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-wrap: balance;
}

.home-banner__overlay p,
.home-banner__overlay .lead {
    font-size: clamp(0.8rem, 1.6vw, 0.95rem);
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
}

.home-resorts {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .home-resorts {
        grid-template-columns: 1fr 1fr;
    }
}

.home-resort {
    display: grid;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

@media (min-width: 768px) {
    .home-resort {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

.home-resort__media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.home-resort__body {
    padding: 1.5rem;
}

.home-resort__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-color, #e2e8f0);
}

.home-resort__stats dt {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin: 0;
}

.home-resort__stats dd {
    margin: 0.15rem 0 0;
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.home-kids-band {
    background: linear-gradient(180deg, #f8fafc 0%, var(--brand-surface) 100%);
}

.home-kids-features {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-kids-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .home-kids-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.home-kids-feature {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.home-kids-feature h4 {
    color: var(--brand-primary);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.home-kids-feature p {
    color: var(--brand-muted);
    font-size: 0.95rem;
    margin: 0;
}

.home-kids-tip {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-top: 3px solid var(--brand-secondary);
}

.home-cta-final .btn {
    min-height: 48px;
}

@media (max-width: 576px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero__content .row {
        min-height: auto !important;
        padding-top: 0.75rem !important;
        padding-bottom: 1rem !important;
    }

    .home-hero__cta--brand,
    .home-hero__cta--outline {
        display: none !important;
    }

    .home-hero__cta--whatsapp {
        width: 100%;
        max-width: 340px;
    }
}

@media (min-width: 577px) {
    .home-hero__lead--mobile-only {
        display: none;
    }
}

@media (min-width: 768px) and (hover: hover) {
    .home-hero:hover .home-hero__video {
        transform: scale(1.06);
        transition: transform 4s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__video,
    .home-photo-hover img,
    .home-hero__service,
    .home-hero__cta {
        transition: none !important;
    }

    .home-hero:hover .home-hero__video {
        transform: scale(1.04);
    }

    .home-hero__service:hover,
    .home-hero__cta:hover,
    .home-photo-hover:hover img {
        transform: none;
    }
}


/* AOS fallback when JavaScript is disabled */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}
