/* =========================================================
   Alojamientos Lilen — Bariloche, Río Negro
   Mobile-first · sin dependencias
   ========================================================= */

:root {
    --noche:    #1b2a47;
    --lago:     #24476a;
    --atardecer:#c98b6b;
    --arena:    #f2c38f;
    --bosque:   #10201d;
    --crema:    #faf6f0;
    --papel:    #ffffff;
    --texto:    #1f2733;
    --suave:    #5b6676;
    --linea:    #e6ddd1;
    --radio:    14px;
    --sombra:   0 10px 30px -12px rgba(27, 42, 71, .35);
    --f-titulo: "Fraunces", Georgia, "Times New Roman", serif;
    --f-texto:  "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--crema);
    color: var(--texto);
    font-family: var(--f-texto);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
a { color: var(--lago); }

.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.contenedor--angosto { max-width: 780px; }

.saltar {
    position: absolute; left: -9999px; top: 8px;
    background: var(--papel); color: var(--noche); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.saltar:focus { left: 8px; }

/* ---------- Botones ---------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 26px;
    border-radius: 999px;
    background: var(--arena); color: var(--noche);
    font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: .01em;
    box-shadow: 0 8px 24px -8px rgba(242, 195, 143, .7);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.boton:hover { transform: translateY(-2px); background: #f7d3a8; }
.boton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.boton--claro { background: var(--noche); color: #fff; box-shadow: var(--sombra); }
.boton--claro:hover { background: var(--lago); }

/* ---------- Encabezado ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    min-height: 92svh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: max(64px, env(safe-area-inset-top)) 16px 120px;
    background: var(--noche) url("img/bariloche.svg") center bottom / cover no-repeat;
    color: #fff;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}
.hero::after { /* oscurece un poco la parte alta para que el texto se lea */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(14, 22, 40, .6) 0%, rgba(14, 22, 40, .35) 50%, rgba(14, 22, 40, .1) 75%, rgba(14, 22, 40, 0) 90%);
}

.hero__contenido { max-width: 720px; animation: aparecer .9s ease-out both; text-shadow: 0 2px 12px rgba(10, 18, 34, .65); }

.hero__antetitulo {
    margin: 0 0 6px;
    font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700;
    color: var(--arena);
}
.hero__titulo {
    margin: 0;
    font-family: var(--f-titulo); font-weight: 700;
    font-size: clamp(2.6rem, 11vw, 5.6rem);
    line-height: 1.02; letter-spacing: -.01em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero__titulo span { display: block; font-style: italic; font-weight: 500; color: #ffe9cc; }

.hero__lugar {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 16px 0 0; padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
    background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-weight: 600; font-size: .98rem;
}
.hero__lugar svg { width: 18px; height: 18px; fill: var(--arena); }

.hero__bajada {
    margin: 16px auto 24px; max-width: 30ch;
    font-size: 1.08rem; color: rgba(255, 255, 255, .9);
}

.hero__datos {
    list-style: none; margin: 26px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
    font-size: .9rem; color: rgba(255, 255, 255, .85);
}
.hero__datos strong { color: #fff; }
.hero__datos li + li::before { content: "·"; margin-right: 18px; color: var(--arena); }

.hero__flecha {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(255, 255, 255, .12);
    animation: flotar 2.4s ease-in-out infinite;
}
.hero__flecha svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hero__cielo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.estrella {
    position: absolute; left: var(--x); top: var(--y);
    width: 3px; height: 3px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7);
    animation: titilar 3.5s ease-in-out var(--d) infinite;
}

@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flotar   { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes titilar  { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Secciones ---------- */
.seccion__titulo {
    margin: 0 0 8px;
    font-family: var(--f-titulo); font-weight: 700;
    font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.15;
    color: var(--noche); text-align: center;
}
.seccion__bajada { margin: 0 auto 22px; max-width: 46ch; text-align: center; color: var(--suave); }

/* ---------- Cabañas (iframe) ---------- */
.cabanas {
    position: relative;
    margin-top: -48px;            /* se apoya sobre el bosque del encabezado */
    padding: 40px 0 32px;
    background: var(--crema);
    border-radius: 28px 28px 0 0;
    scroll-margin-top: 0;
}

.embebido {
    position: relative;
    width: 100%; max-width: 1240px; margin: 0 auto;
    background: var(--papel);
    border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
}
.embebido iframe {
    display: block; width: 100%; border: 0;
    height: calc(100vh - 40px);   /* modo seguro: scroll dentro del listado */
    height: calc(100svh - 40px);
    min-height: 560px;
    background: transparent;
    opacity: 0; transition: opacity .4s ease;
}
.embebido--listo iframe { opacity: 1; }
.embebido--auto iframe { min-height: 0; }   /* el alto lo fija el script */

.embebido__cargando {
    position: absolute; inset: 0;
    display: flex; align-items: flex-start; justify-content: center; gap: 8px;
    padding-top: 80px;
}
.embebido__cargando span {
    width: 12px; height: 12px; border-radius: 50%; background: var(--atardecer);
    animation: titilar 1s ease-in-out infinite;
}
.embebido__cargando span:nth-child(2) { animation-delay: .2s; }
.embebido__cargando span:nth-child(3) { animation-delay: .4s; }
.embebido--listo .embebido__cargando { display: none; }

.aviso { text-align: center; color: var(--suave); }

/* ---------- Info SEO ---------- */
.info { padding: 56px 0; }
.info__texto { max-width: 70ch; margin: 0 auto; font-size: 1.05rem; }
.info__texto p { margin: 0 0 14px; }
.info__subtitulo {
    margin: 36px 0 16px; text-align: center;
    font-family: var(--f-titulo); font-size: 1.35rem; color: var(--noche);
}

.lista-aloj {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 10px;
}
.lista-aloj li {
    display: flex; flex-direction: column;
    padding: 14px 16px;
    background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio);
}
.lista-aloj__nombre { font-weight: 700; color: var(--noche); }
.lista-aloj__dato { font-size: .9rem; color: var(--suave); }
.info__volver { margin: 28px 0 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq { padding: 8px 0 64px; }
.faq details {
    margin: 0 0 10px;
    background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio);
}
.faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 18px; min-height: 48px;
    font-weight: 700; color: var(--noche);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none;
    width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: 50%; background: var(--crema); color: var(--atardecer); font-size: 1.2rem;
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--suave); }

/* ---------- Pie ---------- */
.pie {
    padding: 40px 0 calc(90px + env(safe-area-inset-bottom));
    background: var(--bosque); color: rgba(255, 255, 255, .75);
    text-align: center; font-size: .92rem;
}
.pie p { margin: 0 0 6px; }
.pie__marca { font-family: var(--f-titulo); font-size: 1.5rem; color: #fff; }
.pie__legal { margin-top: 14px !important; font-size: .82rem; opacity: .8; }
.pie a { color: var(--arena); }

/* ---------- Botón flotante (solo celular) ---------- */
.flotante {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translate(-50%, 120px);
    padding: 14px 34px; border-radius: 999px;
    background: var(--noche); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
    transition: transform .3s ease;
    z-index: 50;
}
.flotante--ver { transform: translate(-50%, 0); }

/* =========================================================
   Pantallas más grandes
   ========================================================= */
@media (min-width: 600px) {
    .lista-aloj { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 90px; }
}

@media (min-width: 900px) {
    .hero { min-height: 88vh; padding-top: 110px; }
    .hero__bajada { max-width: 40ch; font-size: 1.2rem; }
    .cabanas { padding-top: 56px; }
    .embebido {
        width: calc(100% - 48px);
        border: 1px solid var(--linea); border-radius: 20px;
        overflow: hidden; box-shadow: var(--sombra);
    }
    .embebido iframe { height: 900px; }
    .lista-aloj { grid-template-columns: repeat(3, 1fr); }
    .pie { padding-bottom: 40px; }
    .flotante { display: none; }
}

@media (min-width: 1200px) {
    .lista-aloj { grid-template-columns: repeat(4, 1fr); }
}

/* Celulares apaisados / pantallas bajas */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vh; padding-top: 28px; padding-bottom: 80px; }
    .hero__titulo { font-size: 2.4rem; }
    .hero__titulo span { display: inline; }
    .hero__bajada, .hero__datos { display: none; }
}
