/* ============================================================
   HEUREX · Institutional site
   Paleta sobria, tipografía editorial, sin ornamentación.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&family=JetBrains+Mono:wght@300;400&display=swap');

:root {
  --bg: #0A0A0F;
  --text: #F5F5F0;
  --text-secondary: #888888;
  --text-faint: #444450;
  --accent: #6B9BD8;
  --rule: rgba(245, 245, 240, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ============================================================
   HOME
   ============================================================ */
.home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}

.constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Las opacidades de cada capa las gestiona el propio canvas */
}

.corner-links {
  position: fixed;
  top: 28px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 2;
  align-items: center;
}
.corner-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.corner-link:hover {
  color: var(--text-secondary, var(--text));
  border-color: var(--text-faint);
}
.corner-link--admin {
  opacity: 0.55;
}
.corner-link--admin:hover {
  opacity: 1;
}
@media (max-width: 720px) {
  .corner-links { top: 18px; right: 18px; gap: 4px; }
  .corner-link { font-size: 9px; padding: 3px 7px; letter-spacing: 0.12em; }
  .corner-link--admin { display: none; }
}

.corner-id {
  position: fixed;
  top: 28px;
  left: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  z-index: 2;
}



@media (max-width: 720px) {
  
}

.home-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.42em;
  color: var(--text);
  text-transform: uppercase;
  padding-right: 0.42em;
}

.brand-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.34em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 14px;
  padding-right: 0.34em;
}

.headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 88px 0 28px;
  max-width: 12em;
}

.headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.subheadline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36em;
  margin: 0 auto;
  letter-spacing: 0.005em;
}

.cta-block {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 28px;
  border: 1px solid var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.cta:hover {
  background: var(--text);
  color: var(--bg);
}

.cta-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.cta-secondary:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

.footer-home {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.footer-home > span { display: block; line-height: 1.8; }
.footer-home a { color: var(--text-faint); }
.footer-home a:hover { color: var(--text-secondary); }

/* ============================================================
   PÁGINAS INTERIORES (manifesto, contact, legales)
   ============================================================ */
.page {
  min-height: 100vh;
  padding: 56px 32px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header {
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}
.page-header .brand {
  font-size: 14px;
  letter-spacing: 0.36em;
}
.page-header nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-left: 28px;
}
.page-header nav a:hover { color: var(--text); }

.page-content {
  width: 100%;
  max-width: 720px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
}
.page-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.1;
  margin-bottom: 56px;
  letter-spacing: -0.005em;
}
.page-content h1 em { color: var(--accent); }
.page-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}
.page-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 48px;
  margin-bottom: 14px;
}
.page-content p { margin-bottom: 18px; }
.page-content p.lede {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 36px;
}
.page-content blockquote {
  border-left: 1px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.page-content ul, .page-content ol {
  margin-left: 22px;
  margin-bottom: 22px;
}
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--accent); border-bottom: 1px solid rgba(107, 155, 216, 0.3); }
.page-content a:hover { border-color: var(--accent); }
.page-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

.page-footer {
  margin-top: 88px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 880px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.page-footer a { color: var(--text-faint); }
.page-footer a:hover { color: var(--text-secondary); }

/* ============================================================
   /manifesto · objeto editorial (no página web)
   ============================================================ */
.page-manifesto { padding-top: 56px; padding-bottom: 96px; }

.manifesto {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0 0;
}

.manifesto-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 5.6vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  margin: 0;
}

.manifesto-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 14px;
  padding-right: 0.32em;
}

.manifesto-section {
  margin-top: 4rem;
}
.manifesto-section:first-of-type { margin-top: 5.5rem; }

.manifesto-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 26px;
  padding-right: 0.28em;
}

.manifesto-section p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: 0.005em;
}

.manifesto-section p strong {
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
}

.manifesto .rule {
  border: none;
  border-top: 1px solid var(--text-faint);
  width: 60px;
  margin: 4rem auto 0;
}

.manifesto-signature {
  margin-top: 6rem;
  text-align: center;
}

.manifesto-firma {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

.manifesto-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0 0 36px;
  letter-spacing: 0.005em;
}
.manifesto-tagline em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.manifesto-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 720px) {
  .manifesto-section p { font-size: 17px; line-height: 1.65; }
  .manifesto-section { margin-top: 3rem; }
  .manifesto-title { font-size: 42px; }
  .manifesto-firma { font-size: 36px; }
  .manifesto-tagline { font-size: 19px; }
}

/* ============================================================
   FORMULARIO /contact
   ============================================================ */
.form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
}
.form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form input, .form textarea, .form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 12px 0;
  outline: none;
  transition: border-color 160ms ease;
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--accent);
}
.form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  padding-right: 24px;
}
.form select option { background: var(--bg); color: var(--text); }
.form .submit {
  margin-top: 24px;
  align-self: flex-start;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.form .submit:hover { background: var(--text); color: var(--bg); }
.form .submit:disabled { opacity: 0.4; cursor: wait; }
.form-status {
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}
.form-status.error { color: #d08080; }
.form-status.success { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .home { padding: 44px 22px; }
  .corner-id, .constellation { display: none; }
  .headline { margin: 60px 0 22px; }
  .cta-block { margin-top: 60px; }
  .footer-home { font-size: 9px; }

  .page { padding: 40px 22px 60px; }
  .page-header { margin-bottom: 48px; }
  .page-header nav a { margin-left: 16px; }
  .page-content h1 { margin-bottom: 36px; }
}
