/* ───────────────────────── FONTS ───────────────────────── */
@font-face {
  font-family: "Catchye";
  src: url("assets/fonts/Catchye.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("assets/fonts/CaviarDreams.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("assets/fonts/CaviarDreams_Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("assets/fonts/CaviarDreams_Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("assets/fonts/CaviarDreams_BoldItalic.ttf") format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ───────────────────────── TOKENS ───────────────────────── */
:root {
  --orange: #E94E2B;
  --teal: #30B3A1;
  --accent: var(--orange);
}

html[data-theme="dark"] {
  --bg-deep: #050403;
  --fg: #F4EAE0;
  --fg-muted: rgba(244, 234, 224, 0.62);
  --fg-dim: rgba(244, 234, 224, 0.38);
  --rule: rgba(244, 234, 224, 0.12);
  --card: rgba(244, 234, 224, 0.04);
  --arc-color: #7A3A1E;
  --ember-warm: #5A2A14;
  --ember-deep: #1A0A06;
}

html[data-theme="light"] {
  --bg-deep: #F8D9BE;
  --fg: #1D1D1B;
  --fg-muted: rgba(29, 29, 27, 0.6);
  --fg-dim: rgba(29, 29, 27, 0.4);
  --rule: rgba(29, 29, 27, 0.16);
  --card: rgba(29, 29, 27, 0.04);
  --arc-color: rgba(29, 29, 27, 0.92);
  --ember-warm: #FFD7B5;
  --ember-deep: #FBC9A0;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-deep);
  color: var(--fg);
  font-family: "Caviar Dreams", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; min-height: 100dvh; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ───────────────────────── PAGE ───────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3.5vw, 40px) clamp(20px, 5vw, 80px);
  gap: clamp(24px, 3vw, 40px);
  z-index: 1;
}

/* ───────── BACKDROP — copper ember on black ───────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 65% at 35% 55%,
      var(--ember-warm) 0%,
      var(--ember-deep) 30%,
      var(--bg-deep) 65%),
    var(--bg-deep);
}
.ember {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 1100px; max-height: 1100px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  background: radial-gradient(circle, rgba(233, 78, 43, 0.55) 0%, rgba(122, 34, 12, 0.20) 45%, transparent 70%);
  left: 8%; top: 38%;
  animation: emberDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.ember-2 {
  width: 45vw; height: 45vw;
  max-width: 700px; max-height: 700px;
  left: 28%; top: 50%;
  opacity: 0.4;
  background: radial-gradient(circle, rgba(233, 78, 43, 0.40) 0%, transparent 60%);
  filter: blur(80px);
  animation-delay: -8s; animation-duration: 16s;
}
html[data-theme="light"] .ember,
html[data-theme="light"] .ember-2 { opacity: 0.35; }

@keyframes emberDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2vw, -1vw) scale(1.04); }
  100% { transform: translate(-2vw, 1vw) scale(0.97); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ───────── ARC — inline SVG crescent on the right ───────── */
.arc-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.arc {
  position: absolute;
  right: -12vw;
  top: 50%;
  transform: translateY(-50%);
  height: 140vh;
  width: auto;
  max-width: none;
  opacity: 0.55;
  animation: arcDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes arcDrift {
  0%   { transform: translateY(-50%) rotate(-1deg); }
  100% { transform: translateY(-49%) rotate(1.5deg); }
}

/* ───────── TOP BAR ───────── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 16px;
}
.logo {
  height: clamp(36px, 4vw, 52px);
  width: auto;
  display: block;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10px, 0.9vw, 11px);
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  font-weight: 700;
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(233, 78, 43, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(233, 78, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 78, 43, 0); }
}

/* ───────── MAIN ───────── */
.main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: min(900px, 92vw);
  padding: clamp(16px, 3.5vw, 48px) 0;
  overflow: visible;
}

/* ───────── PRÓXIMAMENTE chip ───────── */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 16px;
  border: 1px solid rgba(233, 78, 43, 0.4);
  border-radius: 999px;
  background: rgba(233, 78, 43, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: clamp(20px, 3vw, 32px);
  animation: fadeUp 0.7s ease-out both;
  box-shadow: 0 0 24px rgba(233, 78, 43, 0.15);
}
.cs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(233, 78, 43, 0.7);
  flex-shrink: 0;
  animation: pulse 2s ease-out infinite;
}
.cs-text {
  font-family: "Caviar Dreams", sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.34em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ───────── TITLE ───────── */
.hero-title {
  font-family: "Catchye", "Caviar Dreams", serif;
  font-weight: 400;
  font-size: clamp(44px, 8.5vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  overflow: visible;
}
.hero-line {
  display: block;
  white-space: nowrap;
  animation: fadeUp 1s ease-out both;
}
.hero-line:nth-child(2) {
  animation-delay: 0.18s;
  padding-left: clamp(12px, 4vw, 72px);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title .dot { color: var(--accent); display: inline-block; }

.hero-sub {
  font-family: "Caviar Dreams", sans-serif;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.6;
  max-width: 540px;
  color: var(--fg-muted);
  margin: clamp(24px, 3vw, 36px) 0 0;
  animation: fadeUp 1s ease-out 0.4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────── NOTIFY ───────── */
.notify {
  margin-top: clamp(32px, 4vw, 48px);
  width: 100%;
  max-width: 480px;
  animation: fadeUp 1s ease-out 0.7s both;
}
.notify-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 5px 5px 22px;
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
  gap: 8px;
}
.notify-field:focus-within { border-color: var(--accent); }
.notify-field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  color: var(--fg);
  font-family: "Caviar Dreams", sans-serif;
  font-size: clamp(14px, 1.1vw, 15px);
  padding: 12px 0;
  outline: none;
}
.notify-field input::placeholder { color: var(--fg-dim); }
.notify-field button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: "Caviar Dreams", sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1vw, 14px);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.notify-field button:hover { transform: translateX(2px); }
.notify-field button .arrow { transition: transform 0.2s ease; }
.notify-field button:hover .arrow { transform: translateX(3px); }
.notify-hint {
  font-size: clamp(11px, 0.95vw, 12px);
  color: var(--fg-dim);
  margin: 12px 0 0 22px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ───────── BOTTOM ───────── */
.bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
  padding-top: clamp(24px, 3vw, 32px);
  animation: fadeUp 1s ease-out 0.9s both;
}
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cb-label {
  font-size: clamp(10px, 0.9vw, 11px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
  margin-bottom: 6px;
}
.cb-link, .cb-text {
  font-size: clamp(13px, 1.1vw, 14px);
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}
.cb-link:hover { color: var(--accent); }
.cb-text.muted { color: var(--fg-muted); }

.socials { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.social {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: clamp(10px, 0.9vw, 11px);
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  gap: 12px;
  flex-wrap: wrap;
}
.bottom-bar .muted { color: var(--fg-dim); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 900px) {
  .arc { right: -25vw; height: 110vh; }
}

@media (max-width: 720px) {
  .page { padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 24px); gap: 18px; }
  .bottom-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .contact-block:last-child { grid-column: 1 / -1; }
  .bottom-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-line:nth-child(2) { padding-left: clamp(10px, 3.5vw, 20px); }
  .arc { right: -45vw; top: 60%; height: 95vh; opacity: 0.45; }
  .notify-field button .arrow { display: none; }
  .notify-field button { padding: 12px 16px; }
  /* Prevent iOS auto-zoom on input focus */
  .notify-field input { font-size: 16px; }
}

@media (max-width: 540px) {
  /* 16vw llena el ancho del contenido en todos los mobile */
  .hero-title { font-size: clamp(30px, 16vw, 90px); }
  .notify { max-width: 100%; }
  .notify-field { padding: 4px 4px 4px 18px; }
  .arc { right: -60vw; opacity: 0.35; }
}

@media (max-width: 460px) {
  .bottom-grid { grid-template-columns: 1fr; }
  .contact-block:last-child { grid-column: auto; }
  .hero-line:nth-child(2) { padding-left: clamp(6px, 2.5vw, 14px); }
  .coming-soon { padding: 8px 16px 8px 14px; gap: 10px; }
  .cs-text { font-size: 11px; letter-spacing: 0.28em; }
  .hero-sub { font-size: clamp(13px, 3.5vw, 16px); max-width: 100%; }
}

@media (max-width: 380px) {
  .page { padding: 14px 12px; }
  .hero-line:nth-child(2) { padding-left: 6px; }
  .logo { height: clamp(30px, 8vw, 40px); }
}

@media (max-width: 360px) {
  .page { padding: 12px 10px; }
  .logo { height: 30px; }
  .hero-line:nth-child(2) { padding-left: 4px; }
  .notify-field { padding: 4px 4px 4px 14px; }
  .notify-field input { font-size: 16px; padding: 10px 0; }
  .notify-field button { padding: 10px 12px; font-size: 12px; }
}

/* Landscape mobile / short viewport */
@media (max-height: 680px) and (min-width: 720px) {
  .main { padding: 8px 0; }
  .hero-title { font-size: clamp(40px, 7vw, 88px); }
  .notify { margin-top: 20px; }
  .hero-sub { margin-top: clamp(16px, 2vw, 24px); }
}

@media (max-height: 520px) {
  .page { gap: 14px; }
  .hero-sub { display: none; }
  .notify { margin-top: 16px; }
}

/* Very wide / large monitors */
@media (min-width: 1600px) {
  .main { max-width: min(1100px, 92vw); }
  .hero-sub { max-width: 640px; }
  .notify { max-width: 560px; }
}
