@charset "utf-8";

/* ==========================================================================
   Triplex Las Toninas Suites
   Sistema visual — paleta de mar profundo, arena y ladrillo de la costa
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #06272f;
  --profundo: #0b3d4a;
  --mar: #17869b;
  --mar-hondo: #0f6577;
  --espuma: #d9ecef;
  --arena: #efe6d5;
  --arena-honda: #ddcdad;
  --ladrillo: #a9502f;
  --papel: #ffffff;
  --gris: #4c626a;
  --linea: #dfe6e6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --ancho: 1180px;
  --angosto: 720px;
  --radio: 3px;
  --sombra: 0 18px 50px -28px rgba(6, 39, 47, .55);
  --alto-header: 76px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mar-hondo); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ladrillo); }

:focus-visible {
  outline: 3px solid var(--mar);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--tinta);
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.medida { max-width: 68ch; }
.oculto-visual {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.saltar {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--papel); color: var(--tinta); padding: .7rem 1.1rem; border-radius: var(--radio);
}
.saltar:focus { top: 1rem; }

/* --------------------------------------------------------- Encabezado --- */

.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--alto-header);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.cabecera__caja {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%;
}
.cabecera.es-solida,
.cabecera.es-fija {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--linea);
}

.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.marca__icono { width: 30px; height: 30px; flex: none; color: var(--mar); }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__nombre { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.marca__lugar { font-size: .72rem; letter-spacing: .09em; color: var(--gris); }

.cabecera:not(.es-solida):not(.es-fija) .marca { color: #fff; }
.cabecera:not(.es-solida):not(.es-fija) .marca__icono { color: #fff; }
.cabecera:not(.es-solida):not(.es-fija) .marca__lugar { color: rgba(255, 255, 255, .78); }

.menu { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.menu a {
  font-size: .95rem; text-decoration: none; color: var(--tinta);
  padding: .35rem 0; position: relative;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--mar); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--mar-hondo); }
.cabecera:not(.es-solida):not(.es-fija) .menu a { color: #fff; }
.cabecera:not(.es-solida):not(.es-fija) .menu a::after { background: #fff; }

.boton-menu {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  color: inherit; cursor: pointer; padding: 0;
}
.boton-menu svg { width: 26px; height: 26px; margin-inline: auto; }

/* --------------------------------------------------------------- Hero --- */

.hero { position: relative; min-height: min(92vh, 780px); display: flex; align-items: flex-end; }
.hero__foto { position: absolute; inset: 0; overflow: hidden; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6, 39, 47, .93) 0%, rgba(6, 39, 47, .55) 38%, rgba(6, 39, 47, .18) 70%, rgba(6, 39, 47, .45) 100%);
}
.hero__caja { position: relative; padding-block: 8rem 3.5rem; color: #fff; width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero__bajada {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, .9);
  max-width: 46ch; margin-bottom: 2rem;
}
.hero__rayita { width: 68px; height: 3px; background: var(--espuma); margin-bottom: 1.6rem; }

.hero__animar > * { opacity: 0; transform: translateY(14px); animation: entrar .8s cubic-bezier(.2, .7, .3, 1) forwards; }
.hero__animar > *:nth-child(1) { animation-delay: .05s; }
.hero__animar > *:nth-child(2) { animation-delay: .16s; }
.hero__animar > *:nth-child(3) { animation-delay: .27s; }
.hero__animar > *:nth-child(4) { animation-delay: .38s; }
.hero__animar > *:nth-child(5) { animation-delay: .48s; }
@keyframes entrar { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__animar > * { opacity: 1; transform: none; animation: none; }
}

/* ------------------------------------------------------------ Botones --- */

.acciones { display: flex; flex-wrap: wrap; gap: .8rem; }

.boton {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--radio); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.boton svg { width: 19px; height: 19px; flex: none; }
.boton--mar { background: var(--mar); color: #fff; }
.boton--mar:hover { background: var(--mar-hondo); color: #fff; }
.boton--borde { border-color: rgba(255, 255, 255, .55); color: #fff; }
.boton--borde:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.boton--tinta { background: var(--tinta); color: #fff; }
.boton--tinta:hover { background: var(--profundo); color: #fff; }
.boton--linea { border-color: var(--linea); color: var(--tinta); background: #fff; }
.boton--linea:hover { border-color: var(--mar); color: var(--mar-hondo); }

/* -------------------------------------------------------------- Ficha --- */

.ficha {
  position: relative; z-index: 2;
  background: var(--papel);
  box-shadow: var(--sombra);
  margin-top: -3.25rem;
}
.ficha__lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ficha__lista li {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.55rem clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--linea);
}
.ficha__lista li:first-child { border-left: 0; }
.ficha__lista svg { width: 27px; height: 27px; flex: none; color: var(--mar); }
.ficha__dato { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; display: block; }
.ficha__etiqueta { font-size: .85rem; color: var(--gris); line-height: 1.3; display: block; margin-top: .2rem; }

/* ------------------------------------------------------------ Bloques --- */

.bloque { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.bloque--ajustado { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.bloque--arena { background: var(--arena); }
.bloque--tinta { background: var(--tinta); color: rgba(255, 255, 255, .82); }
.bloque--tinta h2, .bloque--tinta h3 { color: #fff; }
.bloque--tinta a { color: var(--espuma); }

.titulo-bloque { margin-bottom: 2.5rem; max-width: 60ch; }
.titulo-bloque h2 { max-width: 20ch; }
.titulo-bloque p { color: var(--gris); font-size: 1.08rem; margin-top: -.2em; max-width: 54ch; }
.bloque--tinta .titulo-bloque p { color: rgba(255, 255, 255, .75); }

/* Página interior: encabezado */
.tapa { position: relative; padding-block: calc(var(--alto-header) + 4.5rem) 3.5rem; background: var(--tinta); color: #fff; overflow: hidden; }
.tapa::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(23, 134, 155, .55), transparent 62%);
}
.tapa h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); position: relative; z-index: 1; }
.tapa p { color: rgba(255, 255, 255, .8); max-width: 58ch; position: relative; z-index: 1; }
.miga { position: relative; z-index: 1; font-size: .85rem; letter-spacing: .06em; color: rgba(255, 255, 255, .6); margin-bottom: 1.1rem; }
.miga a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.miga a:hover { color: #fff; text-decoration: underline; }

/* ----------------------------------------------------------- Editorial -- */

.texto { max-width: 68ch; }
.texto p { margin-bottom: 1.2em; }
.texto .destacado { font-size: 1.2rem; line-height: 1.62; color: var(--profundo); }

.editorial { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .editorial { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .editorial--invertido > *:first-child { order: 2; }
}
.editorial figure { margin: 0; }
.editorial figure img { width: 100%; border-radius: var(--radio); }
.pila-fotos { display: grid; gap: 1rem; }
.pila-fotos img { width: 100%; border-radius: var(--radio); }

figure figcaption { font-size: .88rem; color: var(--gris); margin-top: .6rem; }

/* -------------------------------------------------------------- Listas -- */

.lista-marcada { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.lista-marcada li { position: relative; padding-left: 1.7rem; }
.lista-marcada li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border: 2px solid var(--mar); border-radius: 50%;
}

/* ------------------------------------------------------------- Plantas -- */

.plantas { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .plantas { grid-template-columns: repeat(3, 1fr); } }

.planta { background: #fff; border: 1px solid var(--linea); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.planta__nivel {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1;
  color: var(--arena-honda);
}
.planta h3 { margin: 0; }
.planta--destacada { background: var(--profundo); border-color: var(--profundo); color: rgba(255, 255, 255, .85); }
.planta--destacada h3 { color: #fff; }
.planta--destacada .planta__nivel { color: rgba(255, 255, 255, .38); }
.planta--destacada .lista-marcada li::before { border-color: var(--espuma); }

/* --------------------------------------------------------------- Fotos -- */

.galeria {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  grid-auto-rows: clamp(170px, 17vw, 250px);
}
.galeria__item {
  position: relative; display: block; padding: 0; border: 0; background: var(--espuma);
  cursor: zoom-in; overflow: hidden; border-radius: var(--radio);
  width: 100%; height: 100%;
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.galeria__item:hover img, .galeria__item:focus-visible img { transform: scale(1.045); }
.galeria__pie {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(to top, rgba(6, 39, 47, .8), transparent);
  color: #fff; font-size: .9rem; text-align: left;
}
.galeria__item--ancho { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) {
  .galeria { grid-auto-rows: 46vw; }
  .galeria__item--ancho { grid-column: span 1; grid-row: span 1; }
}

/* Visor */
.visor {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4, 26, 32, .96); padding: clamp(1rem, 4vw, 3rem);
}
.visor[open], .visor.esta-abierto { display: flex; align-items: center; justify-content: center; }
.visor img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radio); }
.visor__pie { position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem); text-align: center; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.visor__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.visor__btn:hover { background: rgba(255, 255, 255, .18); }
.visor__btn svg { width: 22px; height: 22px; }
.visor__cerrar { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.visor__ant { left: clamp(.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.visor__sig { right: clamp(.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------- Formulario -- */

.form { display: grid; gap: 1.15rem; max-width: 620px; }
.campo { display: grid; gap: .4rem; }
.campo label { font-size: .92rem; font-weight: 600; color: var(--profundo); }
.campo input, .campo textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--tinta);
  padding: .85rem 1rem; border: 1px solid var(--linea); border-radius: var(--radio);
  background: #fff; width: 100%;
}
.campo input:focus, .campo textarea:focus { border-color: var(--mar); outline: 2px solid rgba(23, 134, 155, .25); outline-offset: 0; }
.campo textarea { min-height: 150px; resize: vertical; }
.form__nota { font-size: .88rem; color: var(--gris); }

.datos-contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.datos-contacto li { display: flex; gap: .9rem; align-items: flex-start; }
.datos-contacto svg { width: 22px; height: 22px; color: var(--mar); flex: none; margin-top: .2rem; }
.datos-contacto span { display: block; font-size: .85rem; color: var(--gris); }
.datos-contacto a, .datos-contacto strong { font-size: 1.05rem; font-weight: 600; color: var(--tinta); text-decoration: none; }
.datos-contacto a:hover { color: var(--mar-hondo); text-decoration: underline; }
.bloque--tinta .datos-contacto span { color: rgba(255, 255, 255, .6); }
.bloque--tinta .datos-contacto a, .bloque--tinta .datos-contacto strong { color: #fff; }

.doble { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .doble { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* --------------------------------------------------------------- Cinta -- */

.cinta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.cinta > div { background: #fff; padding: 1.6rem; }
.cinta h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.cinta p { font-size: .96rem; color: var(--gris); }

/* ----------------------------------------------------------------- Pie -- */

.pie { background: var(--tinta); color: rgba(255, 255, 255, .72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .96rem; }
.pie a { color: rgba(255, 255, 255, .85); }
.pie__grilla { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; color: rgba(255, 255, 255, .5); margin-bottom: 1rem; font-weight: 600; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pie ul a { text-decoration: none; }
.pie ul a:hover { text-decoration: underline; }
.pie__marca { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: .6rem; }
.pie__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .86rem; color: rgba(255, 255, 255, .5); display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; }

/* ------------------------------------------------------------ Flotante -- */

.wsp-flotante {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(6, 39, 47, .5);
}
.wsp-flotante svg { width: 30px; height: 30px; }
.wsp-flotante:hover { background: #1fb455; color: #fff; }

/* ------------------------------------------------------------- Celular -- */

@media (max-width: 880px) {
  .boton-menu { display: block; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--tinta); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.4rem; padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
    transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .7, .3, 1);
    box-shadow: var(--sombra);
  }
  .menu.esta-abierto { transform: none; }
  .menu a, .cabecera:not(.es-solida):not(.es-fija) .menu a { color: #fff; font-size: 1.15rem; font-family: var(--serif); }
  .ficha__lista { grid-template-columns: repeat(2, 1fr); }
  .ficha__lista li:nth-child(odd) { border-left: 0; }
  .ficha__lista li:nth-child(n + 3) { border-top: 1px solid var(--linea); }
}

@media (max-width: 520px) {
  .hero { min-height: 88vh; }
  .hero__caja { padding-block: 7rem 2.5rem; }
  .ficha { margin-top: -2rem; }
  .ficha__lista li { padding: 1.15rem 1rem; }
  .ficha__dato { font-size: 1.2rem; }
  .acciones .boton { width: 100%; justify-content: center; }
}

@media print {
  .cabecera, .wsp-flotante, .visor { display: none !important; }
  body { color: #000; }
}
