/* ==========================================================================
   Malacara Esquí — Home Landing
   Aesthetic: Mountain Performance · Dark navy + burgundy + ice white
   Fonts: Barlow Condensed (display) + DM Sans (body) — loaded via site-fonts.css
   (committed brand pair; DESIGN.md documents the same stacks).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens (landing-scoped overrides)
   -------------------------------------------------------------------------- */
:root {
    /* Landing-only tokens (consume public brand tokens from main.css where possible) */
    --landing-navy:       var(--brand-dark);
    --landing-navy-mid:   var(--brand-dark);
    --landing-chalk:      var(--brand-surface);
    --landing-border:     rgba(226, 232, 240, 0.9);

    --landing-primary-hover: #9e0027;
    /* Button orange: darkened from brand-secondary (#ff6b35, ~2.84:1 on white)
       so white label meets WCAG AA (≥4.5:1). Brand accent token unchanged. */
    --landing-secondary-btn: #c44a1a;
    --landing-secondary-btn-hover: #b84312;
    /* Darkened for WCAG AA contrast with white text/icon (was #25d366, ~1.75:1) */
    --whatsapp-color:        #0f7f39;
    --whatsapp-hover:        #0c6b30;

    /* Section rhythm */
    --section-gap: clamp(3.5rem, 7vw, 6rem);
}

/* Apply DM Sans sitewide from landing (scoped to landing sections) */
.home-hero,
.home-hero ~ section,
.home-hero ~ * {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.home-hero {
    position: relative;
    margin-top: var(--navbar-h, 76px);
    min-height: clamp(480px, 65vh, 720px);
    overflow: hidden;
    background: var(--landing-navy);
}

.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.60;
    transform: scale(1.04);
    transition: transform 4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Static dark overlay standing in for the video's old brightness/saturate/
   contrast filter -- a CSS filter on a looping <video> is recomputed every
   frame (sustained GPU cost); a flat overlay gives the same darkened,
   muted look for free. */
.home-hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.28);
    pointer-events: none;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            160deg,
            rgba(11, 17, 32, 0.72) 0%,
            rgba(11, 17, 32, 0.48) 40%,
            rgba(128, 0, 32, 0.55) 100%
        );
}

/* Diagonal accent stripe bottom-left */
.home-hero__overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.85) 100%);
    z-index: 1;
}

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

/* Logo wrap */
.home-hero__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    background: rgba(11, 17, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-hero__logo {
    max-width: clamp(88px, 12vw, 160px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.50));
}

/* Hero title */
.home-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    color: #fff;
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
    max-width: 22ch;
    margin-inline: auto;
}

/* Hero badge */
.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.50);
    color: #d1fae5;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* Hero lead */
.home-hero__lead {
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 500;
    line-height: 1.5;
    max-width: 44ch;
    margin-inline: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   Hero service cards grid
   -------------------------------------------------------------------------- */
.home-hero__grid-wrap {
    max-width: 960px;
    width: 100%;
    margin-inline: auto;
}

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

.home-hero__service {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(11, 17, 32, 0.06),
        0 12px 28px rgba(11, 17, 32, 0.18);
    min-height: 180px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-hero__service:hover {
    transform: translateY(-4px);
    box-shadow:
        0 6px 10px rgba(11, 17, 32, 0.08),
        0 18px 36px rgba(128, 0, 32, 0.18);
}



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

.home-hero__service-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.62rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero__service-badge--open {
    background: var(--whatsapp-color);
    color: #fff;
}

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

/* Service card price label */
.service-card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-ink);
    margin-bottom: 0.15rem;
}

.service-card-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0;
}

/* Reserve button inside service cards */
.btn-vivid {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 10px;
    transition: background 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

/* Compact font-size only for the small card buttons -- guarded so it
   doesn't cascade onto .btn-lg CTAs that reuse .btn-vivid for its brand
   fill (e.g. "Descubrir Clases"), which need Bootstrap's larger size. */
.btn-vivid:not(.btn-lg):not(.btn-sm) {
    font-size: 0.82rem;
}

.btn-vivid:hover,
.btn-vivid:focus {
    background: var(--landing-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.35);
}

.btn-vivid:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Hero mini-service cards (alquiler + forfaits)
   -------------------------------------------------------------------------- */
.mini-service-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 14px !important;
    transition: background 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), border-color 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.mini-service-card:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
}

.mini-service-icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 0.35rem;
}

.mini-service-title {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
}

.mini-service-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Home mini-service cards (alquiler + forfaits) -- light section variant.
   This row lives in "Nuestros Servicios" (white background), unlike
   .mini-service-* above which is scoped for the dark hero context.
   -------------------------------------------------------------------------- */
.home-mini-service-card {
    background: var(--brand-surface);
    border-radius: 14px;
    transition: transform 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-mini-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 17, 32, 0.10);
}

.home-mini-service-icon {
    font-size: 1.6rem;
    color: var(--brand-primary);
    margin-bottom: 0.35rem;
}

.home-mini-service-title {
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 0.88rem;
}

.home-mini-service-text {
    color: var(--brand-muted);
    font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Hero CTA row (WhatsApp, Contacto, Llamar)
   -------------------------------------------------------------------------- */
.home-hero__cta-row {
    gap: 0.75rem;
}

.home-hero__ctas {
    max-width: 620px;
    margin: 0 auto;
}

.home-hero__cta {
    min-height: 52px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
                background 0.18s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

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

.home-hero__cta--brand:hover {
    background: var(--landing-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.42);
}

.home-hero__cta--whatsapp {
    background: var(--whatsapp-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.40);
    min-width: 200px;
}

.home-hero__cta--whatsapp:hover {
    background: var(--whatsapp-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.50);
}

.home-hero__cta--outline {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.80);
}

.home-hero__cta--outline:hover {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    transform: translateY(-2px);
    border-color: #fff;
}

.home-hero__cta-btn {
    background: rgba(255, 255, 255, 0.90);
    color: var(--brand-primary);
    border: 1px solid rgba(255, 255, 255, 0.60);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: background 0.18s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), color 0.18s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-hero__cta-btn:hover {
    background: #fff;
    color: var(--landing-primary-hover);
}

/* ==========================================================================
   SECTION RHYTHM HELPERS
   ========================================================================== */

/* Section heading pattern */
.home-section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-section-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--brand-primary);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin-bottom: 0.6rem;
}

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

/* Inline section title (non-.home-section-head context) */
.home-section-title--large {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.08;
}

/* ==========================================================================
   "QUIÉNES SOMOS" SECTION
   ========================================================================== */

/* Accent rule before section heading */
.home-about__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
    text-transform: none;
}

.home-about__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.home-about__list li {
    padding: 0.75rem 0;
    border-top: 1px solid var(--landing-border);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.home-about__list li:last-child {
    border-bottom: 1px solid var(--landing-border);
}

/* Photo hover containers */
.home-photo-hover {
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 0.3s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-photo-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 17, 32, 0.15) !important;
}

.home-photo-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.home-photo-hover--tall   { height: 400px; }
.home-photo-hover--medium { height: 320px; }
.home-photo-hover--short  { height: 190px; }
.home-photo-hover--xs     { height: 160px; }

/* Photo captions */
.home-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
    color: #fff;
}

.home-photo-caption--brand {
    background: linear-gradient(0deg, rgba(128, 0, 32, 0.88) 0%, transparent 100%);
}

.home-photo-caption--small { font-size: 0.85rem; }
.home-photo-caption--xs    { font-size: 0.8rem; }

/* ==========================================================================
   BANNER STRIP
   ========================================================================== */

.home-banner {
    position: relative;
    min-height: clamp(150px, 20vw, 240px);
    max-height: 260px;
    overflow: hidden;
}

.home-banner img {
    width: 100%;
    height: 100%;
    min-height: clamp(150px, 20vw, 240px);
    object-fit: cover;
    object-position: center 35%;
    filter: brightness(0.80) saturate(1.1);
}

.home-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(11, 17, 32, 0.60) 0%,
        rgba(128, 0, 32, 0.75) 100%
    );
    color: #fff;
}

.home-banner__overlay h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
    text-wrap: balance;
}

.home-banner__overlay p,
.home-banner__overlay .lead {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-weight: 500;
    opacity: 0.88;
    margin: 0;
}

/* ==========================================================================
   SEO CONTENT CARDS (Clases de Esquí / Snowboard / etc.)
   ========================================================================== */

.home-seo-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(11, 17, 32, 0.04), 0 8px 24px rgba(11, 17, 32, 0.06);
    height: 100%;
    transition: box-shadow 0.28s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 0.28s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-seo-card:hover {
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.06), 0 16px 40px rgba(128, 0, 32, 0.12);
    transform: translateY(-3px);
}

.home-seo-card h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--brand-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Featured card: disposición editorial horizontal en escritorio */
.home-seo-card--featured {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: auto;
}

.home-seo-featured-body { flex: 0 0 auto; }
.home-seo-featured-aside { flex: 1; }

/* Standalone checklist card fuera del grid: su padre es una columna de
   texto muy alta (flex-item stretch de una sola columna), así que
   height:100% heredaría esa altura entera en vez de ajustarse a su propio
   contenido. Ver critique 2026-07-16, P0. */
.home-seo-card--standalone {
    height: auto;
}

@media (min-width: 992px) {
    .home-seo-card--featured {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
    .home-seo-featured-body { flex: 0 0 42%; }
}

/* Checklist inside seo card */
.home-seo-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-seo-checklist li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
}

.home-seo-checklist li:last-child {
    border-bottom: none;
}

.home-seo-checklist i {
    color: var(--brand-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   RESORTS SECTION
   ========================================================================== */

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

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

.home-resort {
    display: grid;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.06), 0 16px 40px rgba(11, 17, 32, 0.08);
    transition: box-shadow 0.28s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 0.28s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-resort:hover {
    box-shadow: 0 8px 24px rgba(11, 17, 32, 0.10), 0 24px 56px rgba(128, 0, 32, 0.14);
    transform: translateY(-4px);
}

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

.home-resort__media {
    position: relative;
    overflow: hidden;
}

.home-resort__media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.50s cubic-bezier(0.22, 1, 0.36, 1);
    filter: brightness(0.92) saturate(1.05);
}

.home-resort:hover .home-resort__media img {
    transform: scale(1.05);
}

.home-resort__body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-resort__body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--brand-primary);
}

.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: 2px solid var(--brand-surface);
}

.home-resort__stats dt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-muted);
    margin: 0;
}

.home-resort__stats dd {
    margin: 0.2rem 0 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 1.3rem;
    line-height: 1;
}

/* ==========================================================================
   KIDS SECTION
   ========================================================================== */

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

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

@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: 16px;
    padding: 1.5rem 1.35rem;
    box-shadow: 0 2px 8px rgba(11, 17, 32, 0.04), 0 8px 20px rgba(11, 17, 32, 0.06);
    height: 100%;
    transition: transform 0.25s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 0.25s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
    position: relative;
}

.home-kids-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-primary);
}

.home-kids-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(11, 17, 32, 0.06), 0 16px 36px rgba(128, 0, 32, 0.12);
}

.home-kids-feature h3 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--brand-primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

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

.home-kids-tip {
    margin-top: 2.5rem;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(11, 17, 32, 0.06);
    position: relative;
}

.home-kids-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-primary);
}

/* ==========================================================================
   BUTTONS (global landing overrides)
   ========================================================================== */

/* WhatsApp buttons */
.home-cta-final .home-btn-whatsapp,
.home-btn-whatsapp {
    background: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: background 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-cta-final .home-btn-whatsapp:hover,
.home-btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
    color: #fff;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.50);
    transform: translateY(-2px);
}

/* Brand buttons */
.home-btn-brand {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    font-weight: 700;
    transition: background 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-btn-brand:hover {
    background: var(--landing-primary-hover);
    border-color: var(--landing-primary-hover);
    color: #fff;
    box-shadow: 0 8px 28px rgba(128, 0, 32, 0.40);
    transform: translateY(-2px);
}

/* Secondary CTA (p.ej. "Conocer el club"): usa el naranja de marca en vez
   de un verde ad-hoc fuera de paleta (critique 2026-07-16, P1) -- el verde
   se reserva exclusivamente para WhatsApp (.home-btn-whatsapp). */
.home-btn-secondary {
    background: var(--landing-secondary-btn);
    color: #fff;
    border-color: var(--landing-secondary-btn);
    font-weight: 700;
    transition: background 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 0.2s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.home-btn-secondary:hover {
    background: var(--landing-secondary-btn-hover);
    border-color: var(--landing-secondary-btn-hover);
    color: #fff;
    transform: translateY(-2px);
}

.home-btn-secondary:focus-visible,
.home-btn-brand:focus-visible,
.home-btn-whatsapp:focus-visible,
.home-hero__cta:focus-visible,
.home-hero .btn-vivid:focus-visible,
.home-hero__cta-btn:focus-visible,
.home-mobile-cta__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(128, 0, 32, 0.55);
}

/* ==========================================================================
   CTA FINAL SECTION
   ========================================================================== */

.home-cta-final {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--landing-navy) 0%,
        var(--landing-navy-mid) 50%,
        #1a0a0f 100%
    );
    overflow: hidden;
}

/* Subtle decorative blobs */
.home-cta-final::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.home-cta-final::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-cta-final .home-section-head h2 {
    color: #fff;
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
}

.home-cta-final .home-section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.home-cta-final .btn {
    min-height: 52px;
    font-size: 1rem;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */

.home-trust {
    background: #fff;
    border-top: 1px solid var(--landing-border);
    border-bottom: 1px solid var(--landing-border);
}

.home-trust__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

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

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

.home-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--landing-border);
    background: var(--brand-surface);
}

.home-trust__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.home-trust__item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--brand-ink);
}

.home-trust__item p {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@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-row {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .home-hero__cta {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        min-height: 48px;
    }

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

    /* La reserva es la acción principal del hero; sobre el vídeo oscuro el verde
       de WhatsApp satura más que el granate y "gana" visualmente pese a ser la
       secundaria. Se compensa con más tamaño y un resplandor cálido (acento
       naranja de marca) que el granate por sí solo no consigue en ese fondo. */
    .home-hero__cta--brand {
        min-height: 54px;
        font-size: 1.05rem;
        box-shadow: 0 6px 22px rgba(255, 107, 53, 0.35), 0 4px 14px rgba(128, 0, 32, 0.45);
    }

    .home-hero__title {
        font-size: clamp(1.65rem, 8vw, 2.4rem);
    }

    .home-seo-card {
        padding: 1.25rem;
    }

    .home-kids-tip {
        padding: 1.25rem 1.25rem;
    }

    .home-resort__body {
        padding: 1.25rem 1.1rem;
    }

    .home-cta-final .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* Persistent mobile CTA bar */
.home-mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .home-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: #fff;
        border-top: 1px solid var(--landing-border);
        box-shadow: 0 -4px 20px rgba(11, 17, 32, 0.12);
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }

    .home-mobile-cta__btn {
        flex: 1 1 0;
        min-height: 52px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        border: none;
        text-decoration: none; /* sin .btn de Bootstrap, hereda el subrayado por defecto del <a> */
    }

    /* Reservar es la conversión real; WhatsApp es el canal de apoyo. Mismo ancho
       leía las dos como igual de importantes -- se le da más peso (ancho +
       sombra propia) para que se lea como LA acción, no una entre dos. */
    .home-mobile-cta__btn--brand {
        flex-grow: 1.4;
        background: var(--brand-primary);
        color: #fff;
        box-shadow: 0 3px 10px rgba(128, 0, 32, 0.35);
    }

    .home-mobile-cta__btn--whatsapp {
        flex-grow: 1;
        background: var(--whatsapp-color);
        color: #fff;
    }

    /* Extra bottom padding so content isn't hidden behind the sticky bar */
    body:has(.home-mobile-cta) {
        padding-bottom: 70px;
    }
}

@media (min-width: 768px) {
    .home-mobile-cta {
        display: none !important;
    }
}

/*
 * Cuando la barra CTA sticky está presente (solo home, móvil), ocupa el borde
 * inferior con z-index 1030 y tapaba la mitad de los botones flotantes de
 * WhatsApp/chatbot (bottom:12px, z-index:1000) → parecían "cortados". Elevamos
 * los flotantes y el popup de bienvenida por encima de la barra (~60px de alto).
 */
@media (max-width: 767px) {
    body:has(.home-mobile-cta) .whatsapp-float,
    body:has(.home-mobile-cta) .chatbot-toggle {
        bottom: 76px;
    }

    body:has(.home-mobile-cta) .chatbot-welcome {
        bottom: 144px;
    }
}

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

/* Tablet portrait (577–767px): CTA row en columna para evitar wrap asimétrico */
@media (min-width: 577px) and (max-width: 767px) {
    .home-hero__cta-row {
        flex-direction: column;
        align-items: center;
    }

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

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

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

    /* Static poster fallback for users who prefer reduced motion */
    .home-hero__video {
        opacity: 0 !important;
    }

    .home-hero__background {
        background-image: url("../images/club/optimized/club-hero-lcp-md.f02d2b4c03bf.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .home-hero:hover .home-hero__video,
    .home-resort:hover .home-resort__media img {
        transform: none;
    }

    .home-hero__service:hover,
    .home-hero__cta:hover,
    .home-photo-hover:hover img,
    .home-resort:hover,
    .home-kids-feature:hover,
    .home-seo-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   AOS FALLBACK (no-JS)
   ========================================================================== */

[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   EDITORIAL SEO SECTION
   ========================================================================== */

.home-seo-editorial-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.home-seo-editorial-highlight {
    /* brand-secondary (#ff6b35) da 2.84:1 sobre blanco, bajo WCAG AA.
       Mismo tono oscurecido (~75% de luminosidad) para 4.78:1. */
    color: #bf5028;
}

.home-seo-editorial-lead {
    max-width: 40ch;
}

.home-seo-editorial-list {
    border-color: rgba(128, 0, 32, 0.1) !important;
}


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