/* =====================================================
   Hotel Marea Alta — estilos.css
   Paleta: noche de mar / vidrio marino / arena / sol
   ===================================================== */

:root {
  --tinta:      #0A1B24;   /* fondo profundo, azul noche de mar */
  --abismo:     #06121A;
  --espuma:     #EDF4F2;   /* texto principal claro */
  --vidrio:     #6FBCAB;   /* verde vidrio marino (acento) */
  --sol:        #E8B04B;   /* dorado atardecer (CTA) */
  --arena:      #D9C9A8;
  --linea:      rgba(237,244,242,.14);

  --display: "Fraunces", Georgia, serif;
  --cuerpo:  "Outfit", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--cuerpo);
  background: var(--tinta);
  color: var(--espuma);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── Navegación ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw;
  background: linear-gradient(rgba(6,18,26,.85), rgba(6,18,26,0));
  backdrop-filter: blur(6px);
}
.nav__logo {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: .02em; text-decoration: none;
}
.nav__logo em { color: var(--vidrio); font-style: normal; }
.nav__links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav__links a { text-decoration: none; font-size: .95rem; opacity: .85; transition: opacity .2s; }
.nav__links a:hover, .nav__links a:focus-visible { opacity: 1; }

/* ─── Botones ─── */
.btn {
  display: inline-block; padding: .8rem 1.8rem; border: 0; cursor: pointer;
  border-radius: 999px; font-family: var(--cuerpo); font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--vidrio); outline-offset: 3px; }
.btn--sol   { background: var(--sol); color: var(--abismo); }
.btn--sol:hover  { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232,176,75,.35); }
.btn--linea { background: transparent; color: var(--espuma); border: 1px solid var(--linea); }
.btn--linea:hover { border-color: var(--vidrio); color: var(--vidrio); }

/* ─── Hero con océano 3D ─── */
.hero { position: relative; height: 100svh; display: grid; place-items: center; overflow: hidden; }
#oceano { position: absolute; inset: 0; z-index: 0; }
.hero__contenido { position: relative; z-index: 1; text-align: center; padding: 0 6vw; }
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--vidrio); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.05;
  max-width: 14ch; margin-inline: auto;
}
.hero h1 em { font-style: italic; color: var(--arena); }
.hero p { max-width: 42ch; margin: 1.4rem auto 2.2rem; opacity: .8; }

/* ─── Secciones ─── */
.seccion { padding: 6rem 6vw; max-width: 1200px; margin-inline: auto; }
.seccion__titulo {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .6rem;
}
.seccion__sub { opacity: .7; margin-bottom: 3rem; max-width: 55ch; }

/* ─── Carrusel ─── */
.carrusel { position: relative; overflow: hidden; border-radius: 20px; }
.carrusel__pista { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.carrusel__item { min-width: 100%; position: relative; }
.carrusel__item img { width: 100%; height: clamp(320px, 55vh, 560px); object-fit: cover; }
.carrusel__pie {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 2rem 1.6rem;
  background: linear-gradient(transparent, rgba(6,18,26,.9));
}
.carrusel__pie h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.carrusel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea);
  background: rgba(6,18,26,.55); color: var(--espuma); font-size: 1.2rem;
  cursor: pointer; backdrop-filter: blur(4px); transition: background .2s;
}
.carrusel__btn:hover { background: rgba(111,188,171,.35); }
.carrusel__btn--prev { left: 1rem; }
.carrusel__btn--next { right: 1rem; }
.carrusel__puntos { display: flex; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.carrusel__punto {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--linea); transition: background .2s, transform .2s;
}
.carrusel__punto.activo { background: var(--vidrio); transform: scale(1.3); }

/* ─── Tarjetas de habitaciones ─── */
.habitaciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.habitacion {
  background: rgba(237,244,242,.04); border: 1px solid var(--linea);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s;
}
.habitacion:hover { transform: translateY(-4px); border-color: var(--vidrio); }
.habitacion img { height: 200px; object-fit: cover; }
.habitacion__cuerpo { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.habitacion h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; }
.habitacion p  { font-size: .92rem; opacity: .75; flex: 1; }
.habitacion__precio { color: var(--sol); font-weight: 700; font-size: 1.1rem; }
.habitacion__precio small { color: var(--espuma); opacity: .6; font-weight: 400; }

/* ─── Formularios ─── */
.tarjeta-form {
  max-width: 460px; margin: 8rem auto 4rem; padding: 2.4rem;
  background: rgba(237,244,242,.05); border: 1px solid var(--linea); border-radius: 20px;
}
.tarjeta-form h1 { font-family: var(--display); font-weight: 500; font-size: 2rem; margin-bottom: 1.5rem; }
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-size: .85rem; margin-bottom: .35rem; opacity: .8; }
.campo input, .campo select {
  width: 100%; padding: .75rem .9rem; border-radius: 10px;
  border: 1px solid var(--linea); background: rgba(6,18,26,.6);
  color: var(--espuma); font-family: var(--cuerpo); font-size: 1rem;
}
.campo input:focus-visible, .campo select:focus-visible {
  outline: 2px solid var(--vidrio); outline-offset: 1px; border-color: transparent;
}
.aviso { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .92rem; }
.aviso--error { background: rgba(224,90,90,.15); border: 1px solid rgba(224,90,90,.4); }
.aviso--ok    { background: rgba(111,188,171,.15); border: 1px solid rgba(111,188,171,.4); }

/* ─── Tabla de reservas ─── */
.tabla { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.tabla th, .tabla td { padding: .9rem .8rem; text-align: left; border-bottom: 1px solid var(--linea); }
.tabla th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.badge { padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; }
.badge--confirmada { background: rgba(111,188,171,.2); color: var(--vidrio); }
.badge--cancelada  { background: rgba(224,90,90,.18); color: #E08A8A; }

/* ─── Pie ─── */
.pie {
  border-top: 1px solid var(--linea); padding: 2.5rem 6vw; text-align: center;
  font-size: .85rem; opacity: .6;
}

/* ─── Accesibilidad y responsivo ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .nav__links { gap: 1rem; font-size: .85rem; }
  .seccion { padding: 4rem 6vw; }
}
