/* Salud Sin Demora — teaser styles */

:root {
  --bg: #FFF8F4;
  --ink: #1F1814;
  --coral: #C8364B;
  --coral-dark: #A82A3A;
  --peach: #F2A88E;
  --muted: #6B5C55;
  --rule: #E8DDD3;
  --max-w: 680px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 48px;
}

@media (min-width: 768px) {
  main {
    padding: 120px 32px 80px;
  }
}

/* Hero ---------------------------------------------------- */

.hero {
  text-align: center;
  margin-bottom: 56px;
}

.logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto 32px;
  display: block;
}

@media (min-width: 768px) {
  .logo {
    max-width: 460px;
    margin-bottom: 40px;
  }
}

.tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .tagline {
    font-size: 18px;
  }
}

/* Divider ------------------------------------------------- */

.divider {
  border: none;
  border-top: 1px solid var(--peach);
  width: 80px;
  margin: 0 auto 56px;
}

/* Manifesto ----------------------------------------------- */

.manifesto {
  margin-bottom: 64px;
}

.manifesto p {
  font-size: 17px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .manifesto p {
    font-size: 18px;
  }
}

.manifesto p + p {
  margin-top: 24px;
}

/* Email capture ------------------------------------------- */

.capture {
  background: white;
  border: 1px solid var(--rule);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .capture {
    padding: 48px 40px;
  }
}

.capture h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .capture h2 {
    font-size: 26px;
  }
}

.capture-sub {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.capture form {
  max-width: 420px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
  }
}

input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}

input[type="email"]:focus {
  outline: 2px solid var(--coral);
  outline-offset: -1px;
  border-color: var(--coral);
}

button[type="submit"] {
  padding: 12px 28px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

button[type="submit"]:hover {
  background: var(--coral-dark);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 2px;
}

.fine-print {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

/* Honeypot (hidden from users, visible to bots) ----------- */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Visually hidden (accessible labels) --------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer -------------------------------------------------- */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 32px 24px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

footer p + p {
  margin-top: 6px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--peach);
  transition: color 0.15s ease, border-color 0.15s ease;
}

footer a:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* Print --------------------------------------------------- */

@media print {
  .capture form,
  button {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
