/* ==================== HOME.CSS ==================== */

/* HERO */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    border-bottom: 1px solid #e8e8e8;
}

.home-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem 2.5rem;
    border-right: 1px solid #e8e8e8;
}

.home-hero-text {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin: 1.2rem 0 2rem;
    font-weight: 300;
    max-width: 340px;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.home-hero-right {
    background: #e1e1df;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 18px,
            rgba(0, 0, 0, 0.04) 18px,
            rgba(0, 0, 0, 0.04) 19px);
    pointer-events: none;
    z-index: 0;
}

.home-hero-right::after {
    content: '';
    position: absolute;
    inset: -10%;
    background-image: url('../img/logo.png');
    background-size: 35%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.home-logo-grande {
    position: relative;
    z-index: 1;
    text-align: center;
}

.home-logo-img {
    height: 160px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.home-logo-line {
    width: 40px;
    height: 3px;
    background: #1a1a1a;
    margin: 14px auto 6px;
}

.home-logo-sub {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
}

/* STATS */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e8e8e8;
}

.home-stat {
    padding: 1.8rem 2rem;
    text-align: center;
    border-right: 1px solid #e8e8e8;
}

.home-stat:last-child {
    border-right: none;
}

.home-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.home-stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
    margin-top: 4px;
}

/* SERVICIOS */
.home-servicios {
    padding: 3.5rem 2.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.home-servicios-header {
    margin-bottom: 2rem;
}

.home-servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
}

.servicio-card {
    background: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.15s;
    cursor: default;
}

.servicio-card:hover {
    background: #f5f4f0;
}

.servicio-icon {
    font-size: 24px;
    margin-bottom: 1rem;
    color: #555;
}

.servicio-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.servicio-precio {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* CTA */
.home-cta {
    background: #1a1a1a;
    padding: 4rem 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.home-aviso-cancelacion {
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    color: #aaa;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #e8e8e8;
}

/* ===== BANNER AMBIENT ===== */
@keyframes kenburns {
    0%   { transform: scale(1.0); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1.0); }
}

.home-ambient {
    position: relative;
    height: 580px;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

/* Fondo: misma foto estirada y difuminada */
.home-ambient-bg {
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.55) saturate(0.9);
    z-index: 0;
    animation: kenburns 16s ease-in-out infinite;
    will-change: transform;
}

/* Foto nítida encima, completa sin recorte */
.home-ambient img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    z-index: 1;
    animation: kenburns 16s ease-in-out infinite;
    will-change: transform;
}

.home-ambient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.10) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    padding: 0 3.5rem;
    z-index: 2;
}

.home-ambient-text {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.home-ambient-text em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== ANIMACIONES DE SCROLL ===== */

/* Fade + slide desde abajo */
.anim-fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide desde la izquierda */
.anim-fade-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Estado visible: restaura posición y opacidad */
.anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Parallax: desactivar kenburns en la imagen cuando el JS toma el control */
.home-ambient img,
.home-ambient-bg {
    will-change: transform;
}

/* ===== BOTÓN RESERVAR — SHIMMER + PULSO SONAR ===== */
.btn-reservar-cta {
    animation: pulso-reservar 2.4s ease-in-out infinite;
}

@keyframes shimmer-reservar {
    0%        { left: -80%; opacity: 0; }
    8%        { opacity: 1; }
    55%, 100% { left: 130%; opacity: 0; }
}

@keyframes pulso-reservar {
    0%, 100% {
        box-shadow:
            0 0 0 0   rgba(255, 255, 255, 0.7),
            0 0 0 0   rgba(255, 255, 255, 0.35);
    }
    60% {
        box-shadow:
            0 0 0 12px rgba(255, 255, 255, 0),
            0 0 0 24px rgba(255, 255, 255, 0);
    }
}
