/* Fabiana Arenare — réplica del tema original (Format "Horizon"), ver _base/. */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; transition: color var(--transicion); }
a:hover { color: var(--tinta-suave); }

/* ---------- Utilidades ---------- */
.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--tinta); color: var(--fondo); padding: 8px 12px; }
.saltar:focus { top: 8px; color: var(--fondo); }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: relative;
  z-index: 20;
  height: var(--cabecera-alto);
  padding: 24px var(--margen-lateral);
  background: var(--fondo);
  flex: none;
}
.cabecera__interior { display: flex; justify-content: space-between; align-items: flex-start; height: 100%; }
.marca {
  position: relative; z-index: 2;
  font-family: var(--fuente-titulos);
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marca:hover { color: var(--tinta); }

.nav { display: flex; align-items: center; }
.nav__lista { display: flex; list-style: none; margin: 0; padding: 0; }
.nav__enlace { display: block; padding: 11.2px; font-size: 16px; line-height: 16px; text-transform: uppercase; }
.nav__enlace[aria-current="page"] { color: var(--tinta-suave); }
.nav__copy { display: none; }

.redes { display: flex; list-style: none; margin: 0 0 0 5px; padding: 0; }
.redes__enlace { display: block; padding: 10px 6px; }
.redes__enlace svg { width: 16px; height: 16px; }

.cabecera__menu { display: none; }

/* ---------- Pie ---------- */
.pie {
  flex: none;
  display: flex; justify-content: space-between; align-items: center;
  height: var(--pie-alto);
  padding: 0 18px 0 24px;
  font-size: 12px; line-height: 18px;
}
.pie__copy { margin: 0; }
.pie__enlace { font-size: 11px; color: var(--tinta-suave); border-bottom: 1px solid currentColor; line-height: 1.3; }
.pie__enlace[aria-current="page"] { color: var(--tinta); }

/* ---------- Galería horizontal ---------- */
.tipo-galeria { height: 100vh; height: 100svh; overflow: hidden; }
.galeria {
  height: calc(100vh - var(--cabecera-alto) - var(--pie-alto));
  height: calc(100svh - var(--cabecera-alto) - var(--pie-alto));
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.galeria::-webkit-scrollbar { display: none; }
.galeria:focus-visible { outline: none; }
.galeria__pista {
  display: flex; gap: var(--hueco-fotos);
  height: 100%; margin: 0; list-style: none;
  padding: 0 var(--margen-lateral);
  width: max-content;
}
.foto { height: 100%; flex: none; }
.foto__marco { position: relative; height: 100%; margin: 0; }
.foto__img { height: 100%; width: auto; max-width: none; background: #ececec; }

.foto__abrir {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 5px 10px; background: var(--velo);
  font-size: 14px; line-height: 20px;
}
.foto--info-no .foto__abrir, .foto--abierta .foto__abrir { display: none; }

.foto__pie {
  display: none;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 30px 10% 20px; background: var(--velo);
  font-size: 16px;
}
.foto--abierta .foto__pie { display: block; }
.foto__pie p { margin: 0; line-height: 24px; }
.foto__pie p:empty { display: none; }
.foto__personas { white-space: pre-line; }
.foto__pie .foto__detalle { line-height: 16px; margin-top: 4px; }
.foto__cerrar {
  position: absolute; top: 0; right: 0;
  padding: 12px; font-family: var(--fuente-titulos); font-weight: 200;
  font-size: 30px; line-height: 20px;
}

/* ---------- Páginas de contenido (rejilla de 12 columnas del original) ---------- */
.contenido { padding-bottom: 36px; }
.fila { display: flex; max-width: var(--ancho-fila); margin: 0 auto; padding: 36px 20px; }
.col { padding: 0 18px; flex: none; }
.col--2 { width: 16.6667%; }
.col--4 { width: 33.3333%; }
.col--8 { width: 66.6667%; }

.texto { line-height: 24px; }
.texto p { margin: 0 0 16px; line-height: 1.7; }
.texto a:hover { color: var(--tinta-suave); }
.titulo-seccion { font-family: var(--fuente-titulos); font-weight: 700; font-size: 36px; line-height: 1.4; margin: 0 0 0.4em; }
.titulo-xl { font-family: var(--fuente-titulos); font-weight: 400; font-size: 60px; line-height: 84px; margin: 0; }

.sobre-mi__foto { width: 100%; height: auto; }
.fila--divisor { justify-content: center; padding-top: 44px; padding-bottom: 36px; }
.divisor { width: 33.3333%; margin: 0 auto; border: 0; border-top: 1px solid var(--tinta); }

/* Formulario */
.formulario__campo { display: block; }
.formulario input, .formulario textarea {
  display: block; width: 100%; margin: 0 0 -1px;
  padding: 12px 14px; border: 1px solid var(--borde); border-radius: 0;
  background: var(--fondo); color: var(--tinta);
  font: 16px/22px var(--fuente-texto);
}
.formulario textarea { height: 122px; resize: vertical; line-height: 24px; }
.formulario ::placeholder { color: var(--tinta-placeholder); opacity: 1; }
.formulario__enviar {
  margin-top: 11px; padding: 15px 30px;
  border: 1px solid var(--borde); background: var(--fondo);
  font-size: 16px; line-height: 25px;
}
.formulario__enviar:hover { color: var(--tinta-suave); }
.formulario__enviar:disabled { opacity: 0.5; cursor: default; }
.formulario__estado { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.formulario__estado:empty { display: none; }

.legal h2 { font-family: var(--fuente-titulos); font-size: 22px; margin: 28px 0 10px; }
.legal__aviso { background: #f2f2f2; padding: 12px 16px; font-size: 14px; }

/* Aviso flotante (main.js → SITIO.avisar) */
.aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: var(--fondo); padding: 10px 16px; font-size: 14px; line-height: 1.4;
  transition: opacity var(--transicion), transform var(--transicion);
}
.aviso[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .marca { font-size: 28px; white-space: normal; max-width: 245px; }

  .cabecera__menu {
    display: block; position: relative; z-index: 2;
    width: 25px; height: 22px; margin-top: 10px;
  }
  .cabecera__menu-icono,
  .cabecera__menu-icono::before,
  .cabecera__menu-icono::after {
    position: absolute; left: 0; width: 25px; height: 2px; background: var(--tinta);
    transition: transform var(--transicion), opacity var(--transicion);
  }
  .cabecera__menu-icono { top: 10px; }
  .cabecera__menu-icono::before, .cabecera__menu-icono::after { content: ""; }
  .cabecera__menu-icono::before { top: -10px; }
  .cabecera__menu-icono::after { top: 10px; }
  .cabecera__menu[aria-expanded="true"] .cabecera__menu-icono { background: transparent; }
  .cabecera__menu[aria-expanded="true"] .cabecera__menu-icono::before { transform: translateY(10px) rotate(45deg); }
  .cabecera__menu[aria-expanded="true"] .cabecera__menu-icono::after { transform: translateY(-10px) rotate(-45deg); }

  .nav {
    display: none;
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch;
    padding: calc(var(--cabecera-alto) + 10px) 30px 30px;
    background: var(--fondo); overflow-y: auto;
  }
  .nav[data-abierto="true"] { display: flex; }
  .nav__lista { flex-direction: column; }
  .nav__enlace { padding: 12px 0; font-size: 21px; line-height: 21px; }
  .redes { margin: 14px 0 0; }
  .redes__enlace { padding: 8px; }
  .redes__enlace svg { width: 18px; height: 18px; }
  .nav__copy { display: block; margin: 50px 0 0; text-align: right; font-size: 12px; line-height: 18px; }
  .menu-abierto { overflow: hidden; }

  .tipo-galeria .pie { display: none; }
  .tipo-galeria .galeria { height: calc(100vh - var(--cabecera-alto) - var(--pie-alto)); height: calc(100svh - var(--cabecera-alto) - var(--pie-alto)); }

  .fila { flex-direction: column; padding: 36px 10px; }
  .col, .col--2, .col--4, .col--8 { width: 100%; margin: 6px 0; }
  .col--2:empty, .col--4:empty { display: none; }
  .titulo-seccion { font-size: 23.4px; }
  .titulo-xl { font-size: 48px; line-height: 1.2; }
  .texto p { font-size: 15.6px; }
  .fila--divisor { padding: 30px 10px; }
  .pie { height: auto; padding: 18px 24px; flex-wrap: wrap; gap: 8px; }
}
