/* ==========================================================================
   Grupo Baikán — Coming soon
   Colores, tipografías y medidas principales están en :root.
   ========================================================================== */

:root {
  /* Paleta de marca (códigos oficiales) */
  --negro-profundo: #000000;
  --beige-arena: #bfb5a9;
  --caoba-claro: #8b7d63;
  --oliva-oscuro: #554c3b;

  /* Roles en la página */
  --bg: var(--negro-profundo);
  --fg: var(--beige-arena);
  --fg-muted: var(--caoba-claro);
  --accent: var(--beige-arena);
  --line: rgba(139, 125, 99, 0.35);

  /* Tipografía de marca: Kigelia LGC (títulos y frases cortas) y Redonda (cuerpo).
     Mientras no estén cargados sus @font-face, se usan Spectral y Outfit (Google Fonts, en index.html). */
  --font-display: "Kigelia LGC", "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Redonda", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 40rem;
  --fade: 0.35s;
}

/* Fuentes de marca (descomentar cuando estén los .woff2 en cs-assets/fonts/)
@font-face {
  font-family: "Kigelia LGC";
  src: url("fonts/KigeliaLGC-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kigelia LGC";
  src: url("fonts/KigeliaLGC-SemiboldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Redonda";
  src: url("fonts/Redonda-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*/

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: var(--fg-muted);
  text-underline-offset: 0.25em;
  transition: color 0.2s ease;
}
a:hover, a:focus-visible { color: #fff; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fondo fijo: resplandor + cañas ---------- */

.decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  background: radial-gradient(ellipse 70% 55% at 50% 22%, rgba(139, 125, 99, 0.2), transparent 70%);
}

.decor-canas {
  position: absolute;
  bottom: 0;
  width: clamp(200px, 27vw, 430px);
  height: auto;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%),
                      linear-gradient(to right, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to top, #000 55%, transparent 100%),
                      linear-gradient(to right, #000 55%, transparent 100%);
          mask-composite: intersect;
}
.decor-canas--left { left: 0; }
.decor-canas--right { right: 0; transform: scaleX(-1); }

/* ---------- Selector de idioma ---------- */

.lang-switch {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  gap: 0.75rem;
}

.lang-btn {
  padding: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--caoba-claro);
  border-radius: 50%;
  background: none;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover,
.lang-btn:focus-visible { opacity: 1; transform: scale(1.12); border-color: var(--accent); }
.lang-btn[hidden] { display: none; }
.lang-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Estructura ---------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(4.5rem, 9vh, 6rem) var(--gutter) 3rem;
  text-align: center;
}

.hero,
.manifesto,
.contact { width: 100%; max-width: var(--measure); }

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

.logo { margin: 0 0 clamp(3rem, 8vh, 5rem); }
.logo img {
  margin: 0 auto;
  width: clamp(220px, 34vw, 390px);
  height: auto;
}

/* ---------- Contenido multi-idioma ----------
   Todos los idiomas viven en el HTML; solo se muestra el que coincide con <html lang>.
   Sin JavaScript queda en español (lang="es" en <html>). */
.copy { display: none; }
html[lang="es"] .copy[data-lang="es"],
html[lang="en"] .copy[data-lang="en"],
html[lang="fr"] .copy[data-lang="fr"] {
  display: block;
  animation: fade-in var(--fade) ease both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.lead {
  margin: 0 auto;
  max-width: 34rem;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}
.lead a { color: var(--fg); text-decoration-color: var(--caoba-claro); }

/* ---------- Divisores ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 34rem;
  margin: clamp(3.5rem, 10vh, 6rem) 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line));
}
.divider::after { background: linear-gradient(to left, transparent, var(--line)); }
.divider img { height: 100px; width: auto; opacity: 0.85; }
.divider--line { gap: 0; margin: clamp(2.5rem, 6vh, 3.5rem) 0; max-width: var(--measure); }
.divider--line::before,
.divider--line::after { background: var(--line); }

/* ---------- Manifiesto ---------- */

.manifesto h2 {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.2;
}
.manifesto p {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  font-weight: 300;
}
.manifesto .closing {
  margin-top: 2.25rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

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

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-list a:hover .icon-circle,
.contact-list a:focus-visible .icon-circle { border-color: var(--accent); color: var(--accent); }

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

.form {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form textarea { display: block; min-height: 7rem; resize: vertical; }
.form ::placeholder { color: var(--fg-muted); opacity: 1; }
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--accent); }
.form input:user-invalid,
.form textarea:user-invalid { border-color: #b4563f; }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--caoba-claro);
  color: #000;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--beige-arena); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.form-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  text-align: center;
  color: var(--fg-muted);
}
.form-status[data-state="ok"] { color: var(--beige-arena); }
.form-status[data-state="error"] { color: #d98a73; }

/* ---------- Footer ---------- */

.footer { margin-top: clamp(2.5rem, 6vh, 3.5rem); }

.social {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social a:hover,
.social a:focus-visible { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Móvil ---------- */

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .decor-canas { opacity: 0.14; width: 60vw; }
  .divider img { height: 80px; }
}

/* ---------- Preferencias del usuario ---------- */

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