/* Alex Albors · demo de web
   Tema único oscuro (las fotos lucen más sobre fondo oscuro, como en su web actual).
   Esquinas rectas en todo; solo el botón flotante de WhatsApp es redondo. */

:root {
  --fondo: #121212;
  --fondo-2: #1a1918;
  --fondo-3: #232120;
  --texto: #f3efe8;
  --suave: #b9b2a7;
  --acento: #d6b98f;
  --acento-hover: #e4cba6;
  --sobre-acento: #17140f;
  --linea: rgba(243, 239, 232, 0.14);
  --error: #f0a08c;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 1320px;
  --margen: clamp(16px, 4vw, 48px);
  --seccion: clamp(88px, 11vw, 160px);
  --curva: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.seccion { padding-block: var(--seccion); }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--acento); color: var(--sobre-acento);
  padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.saltar:focus { top: 16px; }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Tipografía ---------- */

.titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.titulo em, .portada__titulo em { font-style: italic; color: var(--acento); }

.antetitulo {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acento);
  margin-bottom: 1.4em;
}

.entradilla { color: var(--suave); max-width: 52ch; }

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

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px;
  padding: 0 1.6em;
  font: 600 0.82rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.16s ease;
}
.boton:active { transform: scale(0.97); }
.boton i { font-size: 1.25em; }

.boton--acento { background: var(--acento); color: var(--sobre-acento); }
.boton--acento:hover { background: var(--acento-hover); }

.boton--linea { border-color: rgba(243, 239, 232, 0.55); color: var(--texto); background: rgba(18, 18, 18, 0.25); }
.boton--linea:hover { background: var(--texto); color: var(--fondo); border-color: var(--texto); }

.boton--claro { border-color: rgba(243, 239, 232, 0.5); color: var(--texto); min-height: 42px; padding: 0 1.2em; }
.boton--claro:hover { background: var(--texto); color: var(--fondo); }

.enlace {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--acento);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.enlace:hover { color: var(--acento-hover); }

/* ---------- Cabecera ---------- */

.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0));
}
.cabecera.solida {
  background: rgba(18, 18, 18, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--linea);
}

.cabecera__fila {
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.marca { text-decoration: none; display: flex; flex-direction: column; line-height: 1; position: relative; z-index: 2; }
.marca__nombre { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.01em; }
.marca__oficio { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--suave); margin-top: 6px; }

.menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.menu a:not(.boton) {
  font-size: 0.86rem; font-weight: 500; text-decoration: none; letter-spacing: 0.02em;
  color: rgba(243, 239, 232, 0.86);
  position: relative; padding: 6px 0;
}
.menu a:not(.boton)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--acento); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--curva);
}
.menu a:not(.boton):hover { color: var(--texto); }
.menu a:not(.boton):hover::after { transform: scaleX(1); }

.hamburguesa {
  display: none;
  width: 44px; height: 44px; padding: 0; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.hamburguesa span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--texto);
  transition: transform 0.3s var(--curva), top 0.3s var(--curva);
}
.hamburguesa span:first-child { top: 17px; }
.hamburguesa span:last-child { top: 26px; }
.hamburguesa[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .hamburguesa { display: block; z-index: 2; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--fondo);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .menu a:not(.boton) { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
  .menu__cta { margin-top: 18px; min-height: 50px; }
  .cabecera.abierta .menu { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
  .cabecera.abierta { background: var(--fondo); }
}

/* ---------- Portada ---------- */

.portada {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.portada__foto, .portada__foto img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.portada__foto { z-index: -2; }
.portada__foto img { object-fit: cover; object-position: 62% 40%; }
.portada__velo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.45) 38%, rgba(12, 12, 12, 0) 62%),
    linear-gradient(to top, rgba(12, 12, 12, 0.85) 0%, rgba(12, 12, 12, 0) 45%);
}
.portada__texto { padding-top: 120px; padding-bottom: clamp(56px, 9vh, 104px); }
.portada__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.6rem + 3.9vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin: 0 0 0.45em;
  padding-bottom: 0.05em;
}
.portada__sub { max-width: 42ch; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: rgba(243, 239, 232, 0.88); margin-bottom: 2em; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 700px) {
  .portada__foto img { object-position: 66% 30%; }
  .portada__velo {
    background: linear-gradient(to top, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.55) 42%, rgba(12, 12, 12, 0.05) 70%);
  }
  .portada__botones .boton { flex: 1 1 auto; }
}

/* ---------- Datos ---------- */

.datos { border-bottom: 1px solid var(--linea); }
.datos__fila {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(40px, 5vw, 64px);
}
.dato { padding-inline: clamp(12px, 2vw, 28px); border-left: 1px solid var(--linea); }
.dato:first-child { border-left: 0; padding-left: 0; }
.dato__cifra {
  font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.8rem);
  line-height: 1; margin-bottom: 0.25em; letter-spacing: -0.02em;
}
.dato__cifra span { color: var(--acento); }
.dato__texto { color: var(--suave); font-size: 0.92rem; max-width: 18ch; line-height: 1.45; }

@media (max-width: 760px) {
  .datos__fila { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .dato:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Enfoque ---------- */

.enfoque__rejilla {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center;
}
.enfoque__texto p:not(.firma) { color: var(--suave); max-width: 46ch; }
.firma { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--texto); margin-top: 1.4em; }

.enfoque__fotos { position: relative; padding-bottom: 18%; }
.enfoque__grande { width: 72%; margin-left: auto; }
.enfoque__grande img, .enfoque__pequena img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.enfoque__pequena {
  position: absolute; left: 0; bottom: 0; width: 44%;
  outline: 10px solid var(--fondo);
}

@media (max-width: 900px) {
  .enfoque__rejilla { grid-template-columns: 1fr; }
  .enfoque__fotos { max-width: 560px; }
}

/* ---------- Galería ---------- */

.galeria { background: var(--fondo-2); }
.galeria__cabeza { margin-bottom: clamp(36px, 5vw, 64px); }
.galeria__cabeza .titulo { margin-bottom: 0.3em; }

/* app.js reparte las fotos en columnas por altura; la última de cada columna
   se estira un poco para que todas acaben a la misma altura. */
.galeria__muro { --hueco: clamp(8px, 1.4vw, 18px); display: flex; gap: var(--hueco); align-items: stretch; }
.galeria__columna { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--hueco); }
.galeria__muro button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--fondo-3);
  cursor: zoom-in; overflow: hidden; position: relative;
}
.galeria__muro img { width: 100%; transition: transform 0.9s var(--curva), opacity 0.4s ease; }
.galeria__columna button:last-child { flex: 1 0 auto; }
.galeria__columna button:last-child img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.galeria__muro button:hover img { transform: scale(1.035); }

/* ---------- El día ---------- */

.dia__cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.dia__cabeza .titulo { margin: 0; max-width: 16ch; }
.dia__flechas { display: flex; gap: 8px; }
.flecha {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: none; color: var(--texto); border: 1px solid var(--linea); cursor: pointer;
  font-size: 1.2rem; transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.16s ease;
}
.flecha:hover:not(:disabled) { background: var(--texto); color: var(--fondo); }
.flecha:active:not(:disabled) { transform: scale(0.95); }
.flecha:disabled { opacity: 0.3; cursor: default; }

.dia__tira {
  list-style: none; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(272px, 28vw, 400px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--margen), calc((100vw - var(--ancho)) / 2 + var(--margen))) 8px;
  scroll-padding-inline: max(var(--margen), calc((100vw - var(--ancho)) / 2 + var(--margen)));
  overscroll-behavior-x: contain;
}
.dia__tira::-webkit-scrollbar { display: none; }
.momento { scroll-snap-align: start; counter-increment: momento; }
.momento img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 20px; }
.momento h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 0.35em; }
.momento p { color: var(--suave); font-size: 0.97rem; max-width: 34ch; }

@media (max-width: 700px) { .dia__flechas { display: none; } }

/* ---------- Servicios (bento) ---------- */

.servicios { background: var(--fondo-2); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  min-height: min(84vh, 820px);
}
.bento__celda { position: relative; overflow: hidden; isolation: isolate; background: var(--fondo-3); }
.bento__celda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--curva); }
.bento__celda:hover img { transform: scale(1.03); }
.bento__celda::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.25) 50%, rgba(10, 10, 10, 0) 72%);
}
.bento__texto { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.6vw, 40px); }
.bento__texto h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); margin: 0 0 0.3em; }
.bento__texto p { color: rgba(243, 239, 232, 0.86); max-width: 40ch; }

.bento__celda--foto { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.bento__celda--video { grid-column: 6 / span 7; grid-row: 1; }
.bento__celda--album { grid-column: 6 / span 7; grid-row: 2; display: grid; grid-template-columns: 2fr 3fr; background: var(--fondo-3); }
.bento__celda--album::after { display: none; }
.bento__celda--album img { position: relative; grid-column: 1; z-index: 0; }
.bento__celda--album .bento__texto { position: relative; grid-column: 2; align-self: end; }
.bento__celda--album .bento__texto p { color: var(--suave); }

.servicios__pie {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 52px);
}
.servicios__pie p { color: var(--suave); max-width: 56ch; margin: 0; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .bento__celda--foto, .bento__celda--video, .bento__celda--album { grid-column: auto; grid-row: auto; }
  .bento__celda--foto { aspect-ratio: 4 / 5; }
  .bento__celda--video { aspect-ratio: 4 / 3; }
  .bento__celda--album { grid-template-columns: 1fr 1.3fr; min-height: 300px; }
}
@media (max-width: 520px) {
  .bento__celda--album { grid-template-columns: 1fr; }
  .bento__celda--album img { aspect-ratio: 16 / 10; height: auto; }
  .bento__celda--album .bento__texto { grid-column: 1; }
}

/* ---------- Opiniones ---------- */

.opiniones__caja { text-align: center; max-width: 980px; }
.nota { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.nota p { color: var(--suave); margin: 0; }
.nota strong { color: var(--texto); font-weight: 600; }
.nota__estrellas { color: var(--acento); font-size: 1.15rem; display: flex; gap: 4px; }

.citas { display: grid; }
.cita {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.8s var(--curva), visibility 0s linear 0.6s;
}
.cita.activa { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s ease 0.1s, transform 0.8s var(--curva) 0.1s; }
.cita blockquote {
  margin: 0 auto 0.8em;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.3rem);
  line-height: 1.18; max-width: 24ch; text-wrap: balance;
  padding-bottom: 0.08em;
}
.cita figcaption { color: var(--suave); font-size: 0.95rem; }

.citas__puntos { display: flex; justify-content: center; gap: 4px; margin: 28px 0 32px; }
.citas__puntos button {
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative;
}
.citas__puntos button::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 21px; height: 2px;
  background: var(--linea); transition: background-color 0.3s ease;
}
.citas__puntos button[aria-selected="true"]::before { background: var(--acento); }

/* ---------- Sobre mí ---------- */

.sobre { background: var(--fondo-2); }
.sobre__rejilla { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.sobre__foto { grid-column: 1 / span 8; grid-row: 1; }
.sobre__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); }
.sobre__texto {
  grid-column: 7 / span 6; grid-row: 1; z-index: 1; align-self: end;
  background: var(--fondo); padding: clamp(32px, 4vw, 60px);
  margin-bottom: clamp(-96px, -6vw, -48px);
}
.sobre__texto p { color: var(--suave); }

@media (max-width: 900px) {
  .sobre__rejilla { grid-template-columns: 1fr; }
  .sobre__foto, .sobre__texto { grid-column: 1; }
  .sobre__texto { grid-row: 2; margin: -48px 16px 0; }
}
@media (max-width: 520px) {
  .sobre__texto { margin: -32px 0 0; padding: 28px 20px 0; background: var(--fondo-2); }
}

/* ---------- Pasos ---------- */

.pasos__lista {
  list-style: none; margin: clamp(16px, 2vw, 24px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px);
}
.pasos__lista li { border-top: 1px solid var(--linea); padding-top: 28px; }
.pasos__num { font-family: var(--serif); font-style: italic; color: var(--acento); font-size: 1.2rem; }
.pasos__lista h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin: 0.3em 0 0.4em; }
.pasos__lista p { color: var(--suave); max-width: 36ch; }

@media (max-width: 860px) { .pasos__lista { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */

.preguntas { padding-top: 0; }
.preguntas__rejilla { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.preguntas__rejilla .titulo { max-width: 10ch; }

.acordeon details { border-bottom: 1px solid var(--linea); }
.acordeon details:first-child { border-top: 1px solid var(--linea); }
.acordeon summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary i { font-size: 1.2rem; color: var(--acento); flex: none; transition: transform 0.35s var(--curva); }
.acordeon details[open] summary i { transform: rotate(45deg); }
.acordeon summary:hover { color: var(--acento-hover); }
.acordeon details p { color: var(--suave); max-width: 56ch; padding-bottom: 26px; margin: 0; }

@media (max-width: 860px) { .preguntas__rejilla { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */

.contacto { position: relative; isolation: isolate; padding-block: var(--seccion); overflow: hidden; }
.contacto__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contacto__velo { position: absolute; inset: 0; z-index: -1; background: rgba(12, 12, 12, 0.8); }
.contacto__rejilla { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contacto__texto > p:not(.antetitulo) { color: rgba(243, 239, 232, 0.82); max-width: 40ch; }

.vias { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 4px; }
.vias a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px 0; color: var(--texto); }
.vias a:hover { color: var(--acento-hover); }
.vias i { font-size: 1.3rem; color: var(--acento); }

.formulario {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid var(--linea);
  padding: clamp(24px, 3.4vw, 44px);
}
.campo { grid-column: 1 / -1; display: grid; gap: 8px; }
.campo--mitad { grid-column: auto; }
.campo label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--texto); }
.opcional { font-weight: 400; color: var(--suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px;
  font: 400 1rem/1.4 var(--sans); color: var(--texto);
  background: var(--fondo-2);
  border: 1px solid rgba(243, 239, 232, 0.24);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.campo select {
  background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.campo input::placeholder, .campo textarea::placeholder { color: #8f887e; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--acento); background: var(--fondo-3); }
.campo input::-webkit-calendar-picker-indicator { filter: invert(0.85); cursor: pointer; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo.con-error input { border-color: var(--error); }
.campo__error { color: var(--error); font-size: 0.85rem; margin: 0; min-height: 0; }
.campo__error:empty { display: none; }

.formulario__enviar { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.formulario__nota { grid-column: 1 / -1; color: var(--suave); font-size: 0.85rem; text-align: center; margin: 0; }

@media (max-width: 900px) { .contacto__rejilla { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .formulario { grid-template-columns: 1fr; padding: 22px 18px; }
  .campo--mitad { grid-column: 1 / -1; }
}

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

.pie { border-top: 1px solid var(--linea); padding-block: 56px 32px; color: var(--suave); font-size: 0.92rem; }
.pie__fila { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.pie__marca { font-family: var(--serif); font-size: 1.6rem; color: var(--texto); margin-bottom: 0.2em; }
.pie__enlaces { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: flex-start; }
.pie__enlaces a { text-decoration: none; }
.pie__enlaces a:hover { color: var(--texto); }
.pie__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: #8f887e; }
.pie__legal p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */

.flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acento); color: var(--sobre-acento); font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--curva), background-color 0.25s ease, opacity 0.3s ease;
}
.flotante:hover { background: var(--acento-hover); transform: translateY(-2px); }
.flotante:active { transform: scale(0.95); }
.flotante.oculto { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- Visor de fotos ---------- */

.visor {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 8, 8, 0.96); color: var(--texto);
  overflow: hidden;
}
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(8, 8, 8, 0.9); }
.visor img {
  max-width: min(92vw, 1600px); max-height: 86dvh; width: auto; height: auto; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.visor[open] img { animation: aparecer 0.45s var(--curva); }
.visor__cerrar, .visor__flecha {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(18, 18, 18, 0.6); color: var(--texto); border: 1px solid var(--linea);
  font-size: 1.4rem; cursor: pointer; transition: background-color 0.2s ease;
}
.visor__cerrar:hover, .visor__flecha:hover { background: var(--texto); color: var(--fondo); }
.visor__cerrar { top: 16px; right: 16px; }
.visor__flecha--ant { left: 16px; top: 50%; translate: 0 -50%; }
.visor__flecha--sig { right: 16px; top: 50%; translate: 0 -50%; }
.visor__cuenta { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--suave); font-size: 0.85rem; margin: 0; }

@media (max-width: 700px) {
  .visor__flecha { top: auto; bottom: 8px; translate: none; }
  .visor__cuenta { bottom: 24px; }
}

/* ---------- Movimiento ---------- */

@keyframes aparecer { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .portada__foto img { animation: acercar 2.6s var(--curva) both; }
  .entra { animation: subir 1s var(--curva) both; animation-delay: calc(0.25s + var(--i, 0) * 0.12s); }

  .revelar { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1.1s var(--curva); transition-delay: calc(var(--d, 0) * 0.1s); }
  .revelar.visible { opacity: 1; transform: none; }
}
@keyframes acercar { from { transform: scale(1.08); } to { transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

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