/* ==========================================================================
   SIX FILM SL — Hoja de estilos principal
   --------------------------------------------------------------------------
   Índice:
   1.  Variables y reset
   2.  Utilidades (contenedor, botones, animaciones de scroll)
   3.  Header y navegación (incluye menú hamburguesa)
   4.  Hero
   5.  Secciones y cabeceras
   6.  Tarjetas (servicios, bodas)
   7.  Compromisos
   8.  Sobre nosotros
   9.  Calculadora de desplazamiento
   10. Contacto y formulario
   11. Footer
   12. Páginas secundarias (legal / gracias)
   13. Responsive (escritorio), navegación horizontal y accesibilidad
   Enfoque mobile-first: los estilos base son para móvil y se amplían con
   media queries hacia arriba.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES Y RESET
   ========================================================================== */
:root {
  /* Identidad corporativa */
  --black: #000000;
  --white: #ffffff;
  --accent: #c0392b;
  --accent-soft: rgba(192, 57, 43, 0.14);
  --accent-hover: #d4452f;

  /* Grises derivados (solo blanco con transparencia sobre negro) */
  --text: rgba(255, 255, 255, 0.94);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.06);

  /* Tipografía */
  --font: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Ritmo vertical y medidas */
  --header-h: 64px;
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius: 4px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bloquea el scroll cuando el menú móvil está abierto */
body.is-locked { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

/* Textura de grano muy sutil, fija y no interactiva (atmósfera de cine) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Enlace de salto (visible solo al enfocar con teclado) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   2. UTILIDADES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg { padding: 0.95rem 1.6rem; font-size: 0.82rem; }

/* --- Etiqueta superior (eyebrow) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* --- Animaciones sutiles al hacer scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Rejilla reutilizable */
.grid { display: grid; gap: 1rem; }

/* ==========================================================================
   3. HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
/* Al hacer scroll se marca el borde inferior */
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* --- Logo: recorte del logotipo cuadrado para dejar solo la marca --- */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__mark {
  position: relative;
  display: block;
  width: 82px;
  height: 50px;
  overflow: hidden;
}
.brand__mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-52%, -49%);
}
.brand__mark--footer { width: 105px; height: 64px; }
.brand__mark--footer img { width: 180px; height: 180px; }

/* --- Menú: por defecto (móvil) es un panel desplegable a pantalla completa --- */
.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 2rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
}
.nav__link {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }

.nav__cta {
  margin-top: 1.5rem;
  width: 100%;
}

/* --- Hamburguesa --- */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.burger:hover { border-color: var(--line-strong); }

.burger__box {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}
.burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 5.25px; }
.burger__line:nth-child(3) { top: 10.5px; }

/* Estado abierto: se convierte en una X */
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;  /* fallback para navegadores antiguos */
  min-height: 100svh; /* altura real del viewport en móvil */
  padding: calc(var(--header-h) + 5rem) 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* Hueco para vídeo/imagen de fondo */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder cinematográfico mientras no hay vídeo: haz de luz + degradados */
.hero__media--placeholder {
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(192, 57, 43, 0.3), transparent 58%),
    radial-gradient(90% 70% at 8% 92%, rgba(255, 255, 255, 0.08), transparent 62%),
    linear-gradient(180deg, #0a0a0a, #000 70%);
}
/* Franjas verticales muy tenues, como una tira de película */
.hero__media--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 84px
  );
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 40%, #000 100%);
}

.hero__inner { position: relative; }

.hero__title {
  font-size: clamp(2.4rem, 10.5vw, 6.5rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero__title-em {
  position: relative;
  display: inline-block;
}
/* Subrayado de acento dibujado bajo la última línea del eslogan */
.hero__title-em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.09em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.65s forwards;
}
@keyframes underline {
  to { transform: scaleX(1); }
}

.hero__sub {
  margin: 1.75rem 0 2.25rem;
  max-width: 44ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Marcas de encuadre en las esquinas (detalle de cine) */
.frame-marks { display: none; }

/* ==========================================================================
   5. SECCIONES
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: var(--section-y) 0;
  scroll-margin-top: var(--header-h);
}
/* Alterna con un fondo mínimamente elevado para dar aire entre secciones */
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section__index {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}
.section__title {
  font-size: clamp(1.85rem, 6.5vw, 3.4rem);
}
.section__lead {
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.6vw, 1.1rem);
}

.block__title {
  margin: 2.5rem 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.block__title:first-of-type { margin-top: 0; }
.block__title--tight { margin-top: 0; }

.note {
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ==========================================================================
   6. TARJETAS
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hi);
  transform: translateY(-3px);
}

/* Tarjeta recomendada: acento discreto */
.card--featured {
  border-color: rgba(192, 57, 43, 0.55);
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.07), rgba(255, 255, 255, 0.03));
}
.card--featured:hover { border-color: var(--accent); }

.card__badge {
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  margin: 0;
  padding: 0.25rem 0.6rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card__top {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.card__title {
  font-size: 1.05rem;
  letter-spacing: 0;
}
.card__tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}
.card__price {
  margin: 0.7rem 0 0;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.card__price--text {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card__price-unit {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card__price-pre {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.card__list {
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.card__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
/* El botón queda pegado al fondo: así todas las tarjetas de una fila
   alinean su llamada a la acción a la misma altura. */
.card__desc:not(:last-child) { margin-bottom: 1.15rem; }
.card__cta { margin-top: auto; padding-top: 1.75rem; }

/* ==========================================================================
   7. COMPROMISOS
   ========================================================================== */
.commitments {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.commitment {
  display: flex;
  gap: 1rem;
  padding: 1.6rem 1.35rem;
  background: var(--black);
  transition: background-color 0.25s ease;
}
.commitment:hover { background: rgba(255, 255, 255, 0.03); }

.commitment__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(192, 57, 43, 0.45);
  border-radius: 50%;
  color: var(--accent);
}
.commitment__icon svg { width: 20px; height: 20px; }

.commitment__title {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.commitment p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ==========================================================================
   8. SOBRE NOSOTROS
   ========================================================================== */
.manifesto {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}
.manifesto p {
  font-size: clamp(1.35rem, 5.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.prose {
  max-width: 66ch;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
}

.purpose { margin-top: clamp(3rem, 8vw, 5rem); }
.purpose__head { margin-bottom: 1.5rem; }
.purpose__claim {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 700;
}

.panel {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel__title {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.panel p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ==========================================================================
   9. CALCULADORA DE DESPLAZAMIENTO
   ========================================================================== */
.calc {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.calc__controls,
.calc__result {
  background: var(--black);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.calc__label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.calc__input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 200px;
}
.calc__number {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--surface-hi);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}
.calc__number:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.calc__unit {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Slider: estilizado en WebKit y Firefox */
.calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 1.75rem 0 0.5rem;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.calc__slider::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -9px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: transform 0.15s ease;
}
.calc__slider:hover::-webkit-slider-thumb { transform: scale(1.12); }
.calc__slider::-moz-range-track {
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}
.calc__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.calc__slider:focus-visible { outline: none; }
.calc__slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.4);
}
.calc__slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.4);
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.calc__help {
  margin: 1.5rem 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.calc__result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.06), transparent);
}
.calc__result-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.calc__amount {
  margin: 0.5rem 0 0.75rem;
  color: var(--accent);
  font-size: clamp(3.2rem, 15vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.calc__copy {
  margin: 0;
  max-width: 34ch;
  color: var(--text);
  font-size: 0.98rem;
}
.calc__cta { margin-top: 1.75rem; }

/* ==========================================================================
   10. CONTACTO Y FORMULARIO
   ========================================================================== */
.contact { display: grid; gap: 1.5rem; }

.form {
  padding: clamp(1.35rem, 5vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form__honeypot { display: none; }
.form__grid { display: grid; gap: 1.1rem; }

.field { display: block; margin-bottom: 1.1rem; }
.form__grid .field { margin-bottom: 0; }

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.req { color: var(--accent); }

.field__input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.34); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Mensaje de error nativo cuando el campo se ha tocado y es inválido */
.field__input:not(:placeholder-shown):invalid { border-color: rgba(192, 57, 43, 0.8); }
.field__input--area { resize: vertical; min-height: 130px; }
select.field__input { color-scheme: dark; cursor: pointer; }

.form__submit { margin-top: 1.5rem; width: 100%; }
.form__legal {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.form__legal a { color: var(--text-muted); text-decoration: underline; }
.form__legal a:hover { color: var(--accent); }

/* Columna lateral de contacto */
.contact__aside {
  padding: clamp(1.35rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact__aside-title {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.contact__aside-title + * { margin-bottom: 2rem; }

.contact__list { display: grid; gap: 0.9rem; }
.contact__key {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.contact__value { font-size: 0.98rem; font-weight: 600; word-break: break-word; }
a.contact__value:hover { color: var(--accent); }

.socials { display: grid; gap: 0.65rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.socials a:hover { color: var(--accent); }
.socials__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.socials__icon svg { width: 20px; height: 20px; }

.contact__time {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__slogan {
  margin: 1rem 0 0;
  max-width: 26ch;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer__title {
  margin-bottom: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.footer__nav ul,
.footer__col ul { display: grid; gap: 0.6rem; font-size: 0.92rem; }
.footer__nav a,
.footer__col a { color: var(--text-muted); }
.footer__nav a:hover,
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
}
.footer__bottom p { margin: 0; }
.footer__meta { color: rgba(255, 255, 255, 0.28); }

/* ==========================================================================
   12. PÁGINAS SECUNDARIAS (aviso legal, privacidad, gracias)
   ========================================================================== */
.page {
  padding: calc(var(--header-h) + clamp(3rem, 9vw, 6rem)) 0 clamp(3rem, 9vw, 6rem);
}
.page__title { font-size: clamp(1.8rem, 6.5vw, 3rem); margin-bottom: 1.5rem; }
.page__body {
  max-width: 68ch;
  color: var(--text-muted);
}
.page__body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.page__body h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}
.page__body p { margin: 0 0 1rem; }
.page__body ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.page__body li + li { margin-top: 0.6rem; }
.page__body a { color: var(--white); text-decoration: underline; }
.page__body a:hover { color: var(--accent); }

/* Pantalla de agradecimiento tras enviar el formulario */
.thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 4rem 1.25rem;
  text-align: center;
}
.thanks__inner { max-width: 46ch; }
.thanks__rule {
  display: block;
  width: 48px;
  height: 2px;
  margin: 2rem auto 1.75rem;
  background: var(--accent);
}
.thanks h1 { font-size: clamp(1.9rem, 8vw, 3rem); }
.thanks p { margin-top: 1.25rem; color: var(--text-muted); }
.thanks .btn { margin-top: 2rem; }
.thanks .brand__mark { margin: 0 auto; }

/* ==========================================================================
   13. RESPONSIVE (tablet / escritorio)
   ========================================================================== */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .commitments { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1.05fr 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .form__submit { width: auto; min-width: 200px; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .grid--2 { gap: 1.5rem; }
  .contact { grid-template-columns: 1.55fr 1fr; gap: 1.5rem; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .card { padding: 2rem 1.75rem; }
  .commitment { padding: 2.25rem 2rem; gap: 1.35rem; }
  .manifesto { padding-left: 2rem; }

  /* Marcas de encuadre visibles solo en pantallas grandes */
  .frame-marks { display: block; }
  .frame-marks span {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  .frame-marks span:nth-child(1) { top: calc(var(--header-h) + 24px); left: 24px; border-right: 0; border-bottom: 0; }
  .frame-marks span:nth-child(2) { top: calc(var(--header-h) + 24px); right: 24px; border-left: 0; border-bottom: 0; }
  .frame-marks span:nth-child(3) { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
  .frame-marks span:nth-child(4) { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

  .hero { align-items: center; }
  .hero__title { max-width: 22ch; }
}

/* Entre tablet y escritorio el menú sigue siendo desplegable: alineamos su
   contenido con el contenedor para que no quede pegado al borde. */
@media (min-width: 700px) and (max-width: 1199.98px) {
  .nav { padding-inline: clamp(1.25rem, 4vw, 3rem); }
  .nav__cta { max-width: 320px; }
}

/* ==========================================================================
   13b. NAVEGACIÓN HORIZONTAL (solo cuando hay sitio para todos los enlaces)
   --------------------------------------------------------------------------
   La barra completa (7 enlaces + botón) necesita ~1200px. Por debajo de eso
   se mantiene el menú hamburguesa para que el botón "Solicitar presupuesto"
   no se salga de la pantalla. Los espacios y tamaños son fluidos para que
   la fila quepa también en portátiles de 1280px.
   ========================================================================== */
@media (min-width: 1200px) {
  /* El menú pasa a ser horizontal y la hamburguesa desaparece */
  .burger { display: none; }
  .nav {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 1.3vw, 1.75rem);
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.85rem, 1.15vw, 1.75rem);
  }
  .nav__link {
    position: relative;
    padding: 0.25rem 0;
    border: 0;
    font-size: clamp(0.7rem, 0.34rem + 0.49vw, 0.78rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
  }
  /* Subrayado de acento en hover y en la sección activa */
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav__link:hover,
  .nav__link.is-active { color: var(--white); }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__cta {
    margin-top: 0;
    width: auto;
    flex: 0 0 auto;
    padding: 0.62rem clamp(0.9rem, 1vw, 1.15rem);
    font-size: clamp(0.72rem, 0.4rem + 0.45vw, 0.78rem);
    white-space: nowrap;
  }
}

@media (min-width: 1360px) {
  .container { padding: 0 2.5rem; }
}

/* Menos animación si el usuario lo ha pedido en su sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title-em::after { transform: scaleX(1); }
}

/* Foco visible y coherente en toda la web (navegación por teclado) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
