:root {
  --ink: #17211d;
  --muted: #66736b;
  --accent: #d8ff4d;
  --accent-dark: #76990c;
  --line: #dfe6e0;
  --paper: #f7f9f6;
  --card: #ffffff;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 50% 18%, rgba(216, 255, 77, .26), transparent 29rem), var(--paper); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.container { display: flex; width: min(720px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: 44px 0; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand { margin-bottom: 44px; color: var(--ink); font-size: 1.2rem; font-weight: 850; letter-spacing: -.07em; text-decoration: none; }
.brand span { color: var(--accent-dark); }
.topbar { display: flex; width: 100%; margin-bottom: 44px; align-items: center; justify-content: space-between; }
.topbar .brand { margin-bottom: 0; }
.language-switcher { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 750; text-decoration: none; transition: border-color .18s, background .18s; }
.language-switcher:hover { border-color: var(--accent-dark); background: #f8fce9; }
.hero { max-width: 640px; }
.eyebrow { display: inline-block; margin: 0 0 13px; padding: 7px 11px; color: #536d0b; border: 1px solid rgba(118, 153, 12, .23); border-radius: 99px; background: rgba(216, 255, 77, .23); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(3.15rem, 9vw, 5.6rem); letter-spacing: -.08em; line-height: .9; }
.intro { max-width: 560px; margin: 24px auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.card { width: 100%; margin-top: 38px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 20px 55px rgba(25, 39, 30, .09); text-align: left; }
h2 { margin: 0 0 19px; font-size: 1rem; letter-spacing: -.02em; }
.drop-zone { display: flex; min-height: 166px; padding: 25px; cursor: pointer; border: 1.5px dashed #b3c0b6; border-radius: 13px; background: #fbfdf9; align-items: center; flex-direction: column; justify-content: center; text-align: center; transition: border-color .18s, background .18s, transform .18s; }
.drop-zone:hover { border-color: var(--accent-dark); background: #f8fce9; transform: translateY(-1px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.drop-zone strong { margin-top: 11px; font-size: .96rem; }
small { margin-top: 6px; color: var(--muted); }
.upload-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: var(--accent); font-size: 1.45rem; line-height: 1; }
.field-label { display: block; margin: 24px 0 8px; font-size: .87rem; font-weight: 750; }
select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff; color: var(--ink); font: inherit; }
select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(216, 255, 77, .3); }
button { width: 100%; margin-top: 18px; padding: 15px 18px; cursor: pointer; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fff; font: 750 1rem inherit; transition: transform .18s, background .18s; }
button:hover { background: #304139; transform: translateY(-1px); }
button span { margin-left: 8px; }
.secondary-button { width: auto; margin-top: 0; border-color: var(--line); background: #fff; color: var(--ink); }
.secondary-button:hover { background: #f8fce9; }
.notice { max-width: 540px; margin: 18px auto 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.success-page, .error-page { max-width: 700px; }
.success-page h1, .error-page h1 { font-size: clamp(2.9rem, 8vw, 4.9rem); }
.success-page > p:not(.eyebrow), .error-page p { max-width: 540px; color: var(--muted); line-height: 1.65; }
.share { width: min(100%, 620px); margin: 30px 0; }
.share-link { display: block; overflow: hidden; padding: 15px 18px; border: 1px solid #cddbb2; border-radius: 11px; background: #fbfef3; color: #49650b; font-weight: 750; text-align: left; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; transition: background .18s, border-color .18s; }
.share-link:hover { border-color: var(--accent-dark); background: #f3facd; }
.text-link { color: var(--ink); font-weight: 750; }
.site-footer { display: flex; margin-top: 34px; flex-wrap: wrap; justify-content: center; gap: 14px 18px; color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.cookie-banner { position: fixed; right: 18px; bottom: 18px; left: 18px; display: flex; max-width: 980px; margin: 0 auto; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 55px rgba(25, 39, 30, .14); align-items: center; justify-content: space-between; gap: 18px; text-align: left; backdrop-filter: blur(12px); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 5px; }
.cookie-banner p { max-width: 620px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.cookie-actions { display: flex; flex: none; align-items: center; gap: 10px; }
.cookie-actions button { width: auto; min-width: 110px; margin-top: 0; padding: 10px 13px; font-size: .86rem; }
.legal-page { justify-content: flex-start; text-align: left; }
.legal-page .topbar { flex: none; }
.legal-page .eyebrow, .legal-page h1, .legal-draft, .legal-page > .text-link { align-self: center; text-align: center; }
.legal-page h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.legal-draft { max-width: 560px; color: var(--muted); line-height: 1.55; }
.legal-card { width: 100%; margin: 30px 0 8px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 20px 55px rgba(25, 39, 30, .07); }
.legal-card h2 { margin: 22px 0 8px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0; color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .cookie-banner { align-items: stretch; flex-direction: column; } .cookie-actions { align-items: stretch; flex-direction: column; } .cookie-actions button { width: 100%; } }
@media (max-width: 560px) { .container { width: min(100% - 28px, 720px); padding: 30px 0; } .brand { margin-bottom: 34px; } .topbar { margin-bottom: 34px; } .card, .legal-card { margin-top: 30px; padding: 17px; border-radius: 17px; } h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); } .intro { font-size: 1rem; } .site-footer { margin-top: 28px; } }

.email-share { width: min(100%, 620px); margin: 28px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.email-share h2 { margin: 0 0 12px; }
.email-share form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.email-share input[type="email"] { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff; color: var(--ink); font: inherit; }
.email-share input[type="email"]:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(216, 255, 77, .3); }
.email-share button { width: auto; margin-top: 0; white-space: nowrap; }
.field-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .email-share form { grid-template-columns: 1fr; } .email-share button { width: 100%; } }
.info-section {
  width: 100%;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.info-section > h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.info-section > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 2rem;
}

.info-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.info-item h3 {
  margin: 0 0 8px;
  font-size: .92rem;
  letter-spacing: -.02em;
}

.info-item p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
.seo-card {
  width: 100%;
  margin: 30px 0 0;
  padding: 8px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 20px 55px rgba(25, 39, 30, .07);
  text-align: left;
}

.seo-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.seo-step:last-child {
  border-bottom: 0;
}

.seo-step-number {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  place-items: center;
  font-size: .72rem;
  font-weight: 850;
}

.seo-step h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.seo-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-faq {
  width: 100%;
  margin-top: 38px;
  text-align: left;
}

.seo-faq > h2 {
  margin-bottom: 14px;
}

.seo-faq details {
  border-top: 1px solid var(--line);
}

.seo-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.seo-faq summary {
  padding: 17px 0;
  cursor: pointer;
  font-weight: 750;
  list-style-position: inside;
}

.seo-faq details p {
  max-width: 620px;
  margin: -3px 0 18px 24px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s, background .18s;
}

.seo-cta:hover {
  background: #304139;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .seo-card {
    padding: 5px 17px;
    border-radius: 17px;
  }

  .seo-step {
    grid-template-columns: 44px 1fr;
    gap: 13px;
    padding: 21px 0;
  }

  .seo-step-number {
    width: 36px;
    height: 36px;
    font-size: .68rem;
  }
}

/* ============================================================
   EFÍMERO LAB
   Identidad visual exclusiva del entorno experimental.
   ============================================================ */

body {
  --lab-accent: #a78bfa;
  --lab-accent-dark: #6d4bc1;
  --lab-accent-soft: rgba(167, 139, 250, .18);

  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(167, 139, 250, .18),
      transparent 29rem
    ),
    var(--paper);
}

/* Identificador permanente del entorno de pruebas. */
body::before {
  content: "⚗️  LAB";
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(109, 75, 193, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--lab-accent-dark);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
  box-shadow: 0 5px 18px rgba(45, 32, 72, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* El acento experimental sustituye al verde de producción. */
.eyebrow {
  color: var(--lab-accent-dark);
  border-color: rgba(109, 75, 193, .22);
  background: var(--lab-accent-soft);
}

.upload-icon,
.seo-step-number {
  background: var(--lab-accent);
}

.language-switcher:hover,
.drop-zone:hover,
.secondary-button:hover {
  border-color: var(--lab-accent-dark);
  background: rgba(167, 139, 250, .09);
}

.drop-zone:hover {
  border-color: var(--lab-accent-dark);
}

select:focus,
.email-share input[type="email"]:focus {
  border-color: var(--lab-accent-dark);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .22);
}

.share-link {
  border-color: rgba(109, 75, 193, .25);
  background: rgba(167, 139, 250, .07);
  color: var(--lab-accent-dark);
}

.share-link:hover {
  border-color: var(--lab-accent-dark);
  background: rgba(167, 139, 250, .14);
}

@media (max-width: 560px) {
  body::before {
    top: 10px;
    right: 10px;
    padding: 6px 8px;
    font-size: .62rem;
  }
}
