/* ============================================================
   index.css — Estilos exclusivos de la página de inicio
   Depende de: css/vars.css (variables de marca y reset global)
   ============================================================ */

/* ── Reset & base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #ffffff;
  background: #0f1720;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Hero background ───────────────────────────────── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 70% 55%, rgba(0,46,59,0.85) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 5% 10%, rgba(57,205,204,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 95% 5%, rgba(4,170,109,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #0a1a12 0%, #0d1e28 35%, #0f1720 70%, #081018 100%);
}

/* ── Fixed Header ──────────────────────────────────── */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 20, 30, 0.65);
  border-bottom: 1px solid rgba(57,205,204,0.08);
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #04AA6D;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark-shift {
  font-weight: 900;
}

.wordmark-log {
  font-weight: 400;
}

.wordmark-sep {
  font-weight: 700;
  opacity: 0.9;
}

.logo .wordmark {
  font-size: 1.02em;
  color: #04AA6D;
}

.logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.main-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.22s ease, background 0.22s ease;
  letter-spacing: 0.01em;
}
.main-nav a:hover {
  color: #39cdcc;
  background: rgba(57,205,204,0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  letter-spacing: 0.02em;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.btn-outline:hover {
  border-color: #39cdcc;
  color: #39cdcc;
  box-shadow: 0 0 0 3px rgba(57,205,204,0.12);
}

.btn-primary {
  background: #04AA6D;
  color: #0a1a0f;
}
.btn-primary:hover {
  background: #05c47d;
  box-shadow: 0 6px 22px rgba(4,170,109,0.38);
  filter: brightness(1.05);
}

.btn-accent {
  background: #04AA6D;
  color: #0a1a0f;
  font-size: 0.92rem;
  padding: 0.75rem 1.6rem;
}
.btn-accent:hover {
  background: #05c47d;
  box-shadow: 0 8px 28px rgba(4,170,109,0.42);
  filter: brightness(1.05);
}

/* ── Hero Section ──────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 5% 5rem;
}

.hero-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  align-items: center;
}

/* ── Left: text ─────────────────────────────────────── */
.hero-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4,170,109,0.12);
  border: 1px solid rgba(4,170,109,0.28);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #04AA6D;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.hero-eyebrow::before {
  content: "●";
  font-size: 0.5rem;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-h1 .accent {
  color: #04AA6D;
}

.hero-h1 .accent.wordmark {
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(4,170,109,0.22);
}

.hero-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255,255,255,0.92);
}

.hero-p {
  font-size: 1.08rem;
  color: rgba(198,206,216,0.88);
  max-width: 480px;
  line-height: 1.75;
}

/* ── Waitlist form ─────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.waitlist-form input[type="email"]:focus {
  border-color: #04AA6D;
  box-shadow: 0 0 0 3px rgba(4,170,109,0.15);
}

.waitlist-feedback {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  min-height: 1.25rem;
  color: rgba(198,206,216,0.88);
}

.waitlist-feedback.success {
  color: #04AA6D;
}

.waitlist-feedback.error {
  color: #ff7a7a;
}

/* ── Right: phone mockup ───────────────────────────── */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Glow behind phone */
.phone-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(57,205,204,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(290px, 100%);
  background: #0a0f14;
  border-radius: 38px;
  padding: 14px 12px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.10),
    0 0 0 8px #141c26,
    0 0 0 9.5px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.7),
    0 10px 30px rgba(0,0,0,0.5);
}

/* Notch */
.phone-notch {
  width: 90px;
  height: 24px;
  background: #0a0f14;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.phone-notch::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #1a252f;
  border: 2px solid #222c38;
}
.phone-notch::after {
  content: "";
  width: 52px; height: 6px;
  border-radius: 3px;
  background: #1a252f;
}

/* ── App Content inside phone ───────────────────────── */
.app-screen {
  background: #0f2030;
  border-radius: 26px;
  overflow: hidden;
  font-family: inherit;
}

/* App top bar */
.app-topbar {
  background: #002e3b;
  padding: 10px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-topbar-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #04AA6D;
  text-transform: uppercase;
}
.app-topbar-month {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.app-topbar-icon {
  width: 22px; height: 22px;
  background: rgba(4,170,109,0.18);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* Calendar grid — using dashboard calendar colors */
.app-calendar {
  padding: 8px 8px 2px;
  background: #0f2030;
  flex: 1;
}

.app-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  width: 100%;
}

.app-calendar .cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  border-radius: 4px;
  position: relative;
  cursor: default;
  padding: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  min-height: 0;
}

.app-calendar .cal-day.header {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.5rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

.app-calendar .cal-day .day-num {
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 0.55rem;
  font-weight: 700;
  z-index: 2;
}

/* Type-based day styling — matching dashboard calendar.css */
.app-calendar .cal-day.type-completa {
  border: 2px solid rgba(0,128,0,0.32);
  background: rgba(0,128,0,0.06);
  color: rgba(0,128,0,0.95);
}

.app-calendar .cal-day.type-media {
  border: 2px solid rgba(255,165,0,0.32);
  background: rgba(255,165,0,0.04);
  color: rgba(255,165,0,0.95);
}

.app-calendar .cal-day.type-libre {
  border: 2px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.2);
}

.app-calendar .cal-day.type-viaje {
  border: 2px solid rgba(0,123,255,0.32);
  background: rgba(0,123,255,0.04);
  color: rgba(0,123,255,0.95);
}

.app-calendar .cal-day.today {
  background: #04AA6D;
  color: #fff;
  border: 2px solid #04AA6D;
  font-weight: 800;
}

.app-calendar .cal-day.today .day-num {
  color: #fff;
}

/* Shift legend — matching dashboard colors */
.app-legend {
  display: flex;
  gap: 6px;
  padding: 4px 8px 2px;
  background: #0f2030;
  font-size: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5rem;
  font-weight: 600;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.media {
  background: rgba(255,165,0,0.95);
}

.legend-dot.completa {
  background: rgba(0,128,0,0.95);
}

.legend-dot.libre {
  background: rgba(255,255,255,0.15);
}

.legend-label.media {
  color: rgba(255,165,0,0.85);
}

.legend-label.completa {
  color: rgba(0,128,0,0.85);
}

.legend-label.libre {
  color: rgba(255,255,255,0.25);
}

/* Divider */
.app-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0;
}

/* Stats row — Resumen del mes en grid 2x2 con colores del dashboard */
.app-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 78px;
  gap: 8px;
  padding: 10px 12px;
  background: #0f2030;
}

.stat-card {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  position: relative;
  min-height: 0;
  height: 100%;
}

.stat-icon {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Colores de los iconos según el tipo — del dashboard */
.stat-card.trabajadas .stat-icon {
  background: rgba(46,204,113,0.6);
}

.stat-card.extras .stat-icon {
  background: rgba(229,57,53,0.6);
}

.stat-card.dietas .stat-icon {
  background: rgba(255,165,0,0.6);
}

.stat-card.complementos .stat-icon {
  background: rgba(25,118,210,0.6);
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  text-align: left;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  line-height: 1.1;
}

.stat-sub {
  display: none;
}

/* CTA button inside app */
.app-cta-wrap {
  padding: 6px 10px 12px;
  background: #0f2030;
}

.app-cta {
  width: 100%;
  background: #04AA6D;
  color: #0a1a0f;
  border: none;
  border-radius: 10px;
  padding: 9px 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(4,170,109,0.35);
}

.app-cta::before {
  content: "✦";
  font-size: 0.6rem;
}

/* ── Bottom accent ─────────────────────────────────── */
.accent-icon {
  position: fixed;
  bottom: 2.5rem;
  right: 4%;
  font-size: 1.6rem;
  color: rgba(57,205,204,0.45);
  pointer-events: none;
  user-select: none;
  animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem 5%;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0;
}

.site-footer a {
  color: rgba(57,205,204,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #39cdcc;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-container {
    gap: 2.8rem;
  }

  .hero-h1 .accent.wordmark {
    letter-spacing: 0.04em;
  }
}

@media (max-width: 960px) {
  .main-header {
    padding: 1rem 4%;
  }

  .main-nav {
    display: none;
  }

  .hero-section {
    padding: 8.25rem 4% 4.25rem;
  }

  .hero-container {
    flex-direction: column;
    gap: 2.25rem;
    padding-top: 0.5rem;
  }

  .hero-text {
    align-items: center;
    text-align: center;
    max-width: 680px;
  }

  .hero-p {
    text-align: center;
    max-width: 62ch;
  }

  .waitlist-form {
    width: 100%;
    max-width: 520px;
    justify-content: center;
  }

  .waitlist-form input[type="email"] {
    flex: 1 1 100%;
  }

  .hero-visual {
    width: 100%;
  }

  .phone-frame {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .main-header {
    gap: 0.6rem;
  }

  .logo {
    font-size: 1.12rem;
  }

  .logo img {
    width: 24px;
    height: 24px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn {
    padding: 0.48rem 0.9rem;
    font-size: 0.78rem;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .hero-h2 {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .hero-p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .waitlist-form {
    gap: 0.55rem;
  }

  .waitlist-form .btn-accent {
    width: 100%;
  }

  .accent-icon {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-section {
    min-height: auto;
    padding: 7.5rem 4% 3.2rem;
  }

  .phone-frame {
    width: min(282px, 100%);
    border-radius: 34px;
  }

  .app-stats {
    gap: 7px;
    padding: 9px 10px;
    grid-auto-rows: 76px;
  }

  .stat-card {
    padding: 9px 8px;
    gap: 6px;
    border-radius: 10px;
  }

  .stat-icon {
    margin-top: 1px;
  }

  .stat-label {
    font-size: 0.64rem;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .stat-value {
    font-size: 0.8rem;
    line-height: 1;
  }

  .stat-label br {
    display: none;
  }

  .site-footer {
    font-size: 0.75rem;
    line-height: 1.55;
  }
}

@media (max-width: 390px) {
  .main-header {
    padding: 0.85rem 3.5%;
  }

  .logo {
    font-size: 1rem;
    gap: 5px;
  }

  .header-actions .btn {
    padding: 0.42rem 0.75rem;
    font-size: 0.72rem;
  }

  .hero-section {
    padding: 7rem 3.5% 3rem;
  }

  .hero-h1 .accent.wordmark {
    letter-spacing: 0.03em;
  }

  .waitlist-feedback {
    font-size: 0.8rem;
  }

  .app-stats {
    grid-auto-rows: 72px;
    gap: 6px;
    padding: 8px 9px;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-value {
    font-size: 0.76rem;
  }
}

