/* =============================================
   RUTY — Sitio en Construcción
   styles.css
   ============================================= */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Variables --- */
:root {
  --green-dark:    #173404;
  --green-mid:     #27500a;
  --green-base:    #3b6d11;
  --green-accent:  #1d9e75;
  --green-light:   #639922;
  --green-bright:  #97c459;
  --green-pale:    #c0dd97;
  --green-wash:    #eaf3de;
  --bg-page:       #f7faf7;
  --white:         #ffffff;
  --font-mono:     'JetBrains Mono', monospace;
  --font-display:  'Syne', sans-serif;
}

/* --- Base --- */
body {
  background: var(--bg-page);
  color: var(--green-dark);
  font-family: var(--font-mono);
  min-height: 100vh;
}

/* --- Page wrapper --- */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* --- Background grid --- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- Radial glow --- */
.glow-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.07) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   TOPBAR / NAVBAR
   ============================================= */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--green-pale);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}

.status-pill {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--green-accent);
  background: var(--green-wash);
  border: 1px solid var(--green-bright);
  padding: 5px 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-accent);
  animation: pulse 1.8s ease infinite;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 36px 40px;
  text-align: center;
}

/* --- Eyebrow --- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--green-pale);
}

/* --- Mascot --- */
.mascot-wrap {
  margin-bottom: 4px;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.mascot-wrap img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

/* --- Headline --- */
.headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 100px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.headline .accent { color: var(--green-accent); }
.headline .light  { color: var(--green-bright); font-weight: 400; }

/* --- Tagline --- */
.tagline {
  font-size: 15px;
  color: var(--green-base);
  letter-spacing: 0.14em;
  margin: 22px 0 48px;
  line-height: 2.2;
}

/* =============================================
   COUNTDOWN
   ============================================= */
.counter-strip {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 48px;
}

.cnt-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cnt-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  background: var(--green-accent);
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cnt-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--green-bright);
  text-transform: uppercase;
}

.cnt-sep {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--green-pale);
  width: 22px;
  text-align: center;
  margin-top: 14px;
}

/* =============================================
   TERMINAL
   ============================================= */
.terminal {
  background: var(--white);
  border: 1px solid var(--green-pale);
  width: 100%;
  max-width: 580px;
  margin-bottom: 44px;
  text-align: left;
}

.term-bar {
  background: var(--green-wash);
  padding: 10px 16px;
  border-bottom: 1px solid var(--green-pale);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tb-red   { background: #f09595; }
.tb-amber { background: #ef9f27; }
.tb-green { background: var(--green-bright); }

.term-title {
  font-size: 10px;
  color: var(--green-base);
  margin-left: 8px;
  letter-spacing: 0.1em;
}

.term-body {
  padding: 18px 22px 22px;
  font-size: 11px;
  line-height: 2.1;
  color: var(--green-base);
}

.term-line {
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
}

.term-line.mt { margin-top: 6px; }

.term-prompt { color: var(--green-bright); font-weight: 700; }
.term-cmd    { color: var(--green-accent); font-weight: 700; }
.term-out    { color: var(--green-light); padding-left: 20px; display: block; }
.term-ok     { color: var(--green-accent); }
.term-wip    { color: var(--green-light); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: var(--green-accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-wrap {
  width: 100%;
  max-width: 580px;
  margin-bottom: 44px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--green-bright);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pbar {
  height: 3px;
  background: var(--green-wash);
  border: 1px solid var(--green-pale);
  position: relative;
}

.pfill {
  height: 100%;
  background: var(--green-accent);
  width: 0;
  transition: width 2.2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}

.pfill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -5px;
  width: 11px;
  height: 11px;
  background: var(--white);
  border: 2px solid var(--green-accent);
  border-radius: 50%;
}

/* =============================================
   MODULES GRID
   ============================================= */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 580px;
  margin-bottom: 44px;
}

.mod {
  background: var(--white);
  border: 1px solid var(--green-pale);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.mod-status {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mod-status.done { color: var(--green-accent); }
.mod-status.wip  { color: var(--green-light); }
.mod-status.pend { color: var(--green-pale); }

.mod-name {
  font-size: 11px;
  color: var(--green-mid);
  letter-spacing: 0.05em;
}

.mod-bar {
  height: 2px;
  background: var(--green-wash);
  margin-top: 8px;
}

.mfd { height: 100%; background: var(--green-accent); }
.mfw { height: 100%; background: var(--green-bright); }
.mfp { height: 100%; background: var(--green-wash); }

/* =============================================
   EMAIL NOTIFY
   ============================================= */
.notify-row {
  display: flex;
  width: 100%;
  max-width: 580px;
}

.notify-input {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--green-pale);
  border-right: none;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.notify-input::placeholder { color: var(--green-pale); }
.notify-input:focus { border-color: var(--green-accent); }

.notify-btn {
  background: var(--green-accent);
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.notify-btn:hover { background: #0f6e56; }

.ok {
  display: none;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--green-accent);
  text-align: center;
  margin-top: 12px;
  text-transform: uppercase;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-strip {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-top: 1px solid var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  margin-top: 56px;
}

.fs {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--green-bright);
  text-transform: uppercase;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .main         { padding: 24px 16px 30px; }
  .footer-strip { padding: 14px 20px; flex-direction: column; gap: 4px; text-align: center; }

  .eyebrow {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .mascot-wrap img {
    width: 180px;
    height: 180px;
  }

  .headline {
    font-size: clamp(26px, 8vw, 48px);
  }

  .tagline {
    font-size: 12px;
    letter-spacing: 0.06em;
    margin: 16px 0 32px;
  }

  .modules {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .notify-row {
    flex-direction: column;
  }

  .notify-input {
    border-right: 1px solid var(--green-pale);
    border-bottom: none;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .main { padding: 36px 28px 36px; }

  .mascot-wrap img {
    width: 220px;
    height: 220px;
  }

  .modules {
    max-width: 100%;
  }
}
