/* =============================================
   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: 12px 36px 24px;
  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: 12px;
  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: 260px;
  height: 260px;
  object-fit: contain;
}

/* --- Headline --- */
.headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 72px);
  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,
.contact-headline .light { color: var(--green-bright); font-weight: 400; }

/* --- Tagline --- */
.tagline {
  font-size: 15px;
  color: var(--green-base);
  letter-spacing: 0.14em;
  margin: 14px 0 28px;
  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: 10px;
  width: 100%;
  max-width: 580px;
  margin-bottom: 0;
}

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

.mod .mod-name {
  flex: 1;
}

.mod .mod-bar {
  margin-top: 12px;
}

.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;
}

/* =============================================
   CONTACT SECTION — dark theme
   ============================================= */
.contact-section {
  position: relative;
  z-index: 1;
  background: #0d1a09;
  padding: 48px 36px 64px;
  margin-top: 0;
}

/* Subtle grid overlay on dark bg */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Left column */
.contact-left {
  text-align: left;
  padding-top: 8px;
}

.eyebrow-sm {
  font-size: 11px !important;
  margin-bottom: 16px !important;
}
.eyebrow-sm::before,
.eyebrow-sm::after { display: none; }

.eyebrow-dark {
  color: var(--green-accent) !important;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.06em;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* Hints */
.contact-hints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.contact-hints li {
  font-size: 11px;
  color: rgba(151, 196, 89, 0.55);
  letter-spacing: 0.04em;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.hint-prompt {
  color: rgba(29, 158, 117, 0.5);
  font-weight: 700;
  flex-shrink: 0;
}

/* Right column — dark terminal */
.contact-terminal {
  margin-bottom: 0;
  max-width: 100%;
  background: #111f0c !important;
  border-color: rgba(97, 153, 34, 0.2) !important;
}

.contact-terminal .term-bar {
  background: #1a2f12 !important;
  border-bottom-color: rgba(97, 153, 34, 0.2) !important;
}

.contact-terminal .term-title {
  color: rgba(151, 196, 89, 0.55) !important;
}

.contact-terminal .term-body {
  background: #111f0c;
}

.cf-field {
  margin-bottom: 18px;
}

.cf-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(151, 196, 89, 0.55);
  text-transform: lowercase;
  margin-bottom: 6px;
}

.cf-input {
  width: 100%;
  background: #0a1507;
  border: 1px solid rgba(97, 153, 34, 0.25);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.cf-input::placeholder { color: rgba(97, 153, 34, 0.3); }
.cf-input:focus        { border-color: var(--green-accent); }
.cf-input.cf-error     { border-color: #f09595; }

.cf-textarea { line-height: 1.8; }

.cf-footer { margin-top: 20px; }

.cf-btn {
  background: var(--green-accent);
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  width: 100%;
}

.cf-btn:hover    { background: #0f6e56; }
.cf-btn:disabled { opacity: 0.6; cursor: default; }

.cf-ok,
.cf-err {
  display: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-top: 12px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-strip {
  position: relative;
  z-index: 2;
  background: #0a1507;
  border-top: 1px solid rgba(97, 153, 34, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  margin-top: 0;
}

.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) {
  .contact-section { padding: 48px 16px 56px; }
  .contact-inner   { grid-template-columns: 1fr; gap: 32px; }
  .contact-left    { text-align: left; }
  .tags-grid       { gap: 6px; }

  .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: 150px;
    height: 150px;
  }

  .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; }
  .contact-section { padding: 56px 28px 64px; }
  .contact-inner { gap: 36px; }

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

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