/* Masa Térmica — Lista de espera talleres presenciales */
:root {
  --bg: #faf7f3;
  --bg-card: #ffffff;
  --text: #2c2420;
  --text-muted: #5c514a;
  --accent: #c45c3a;
  --accent-hover: #a84d30;
  --accent-soft: rgba(196, 92, 58, 0.12);
  --accent-deep: #6f3226;
  --hero-glow: rgba(196, 92, 58, 0.18);
  --border: #e8e0d8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(44, 36, 32, 0.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 720px;
  --max-wide: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  padding-block: 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 169, 0.4), transparent 32%),
    radial-gradient(circle at bottom right, rgba(196, 92, 58, 0.14), transparent 30%),
    linear-gradient(155deg, #fff9f2 0%, #f7efe6 48%, #efe3d8 100%);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

.hero__content {
  display: grid;
  gap: 1.2rem;
  max-width: 42rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(111, 50, 38, 0.08);
  border: 1px solid rgba(196, 92, 58, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 11ch;
  text-wrap: balance;
}

.hero .lead {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 38ch;
}

.hero .lead b {
  color: var(--accent-deep);
}

.hero__support {
  margin: 0;
  max-width: 46ch;
  font-size: 1.05rem;
  color: #4e433d;
}

.hero .body {
  margin: 0;
  color: var(--text);
}

.hero__highlights {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

@media (min-width: 560px) {
  .hero__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero__highlight {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(196, 92, 58, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(64, 38, 28, 0.08);
  backdrop-filter: blur(6px);
}

.hero__highlight strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.02rem;
  color: var(--accent-deep);
}

.hero__highlight span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.6rem;
}

.hero__media {
  position: relative;
}

.hero__image-card {
  position: relative;
  padding: clamp(0.8rem, 1.8vw, 1rem);
  background: rgba(255, 251, 247, 0.72);
  border: 1px solid rgba(196, 92, 58, 0.12);
  border-radius: 28px;
  box-shadow:
    0 24px 50px rgba(64, 38, 28, 0.12),
    0 0 0 14px var(--hero-glow);
}

.hero__image {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196, 92, 58, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section--alt {
  background: #fff;
  border-block: 1px solid var(--border);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
}

.section__text {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.section__text--after-title {
  margin-bottom: 1.25rem;
}

/* Why list */
.grid-why {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .grid-why {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-mini {
  padding: 1.15rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-mini h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.card-mini p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Form card */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card__head {
  margin-bottom: 1.25rem;
}

.form-card__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.form-card__head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font-family: inherit;
  font-size: 1.02rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.is-invalid {
  border-color: #b62424 !important;
  box-shadow: 0 0 0 3px rgba(182, 36, 36, 0.12) !important;
}

.field-error {
  min-height: 1.15rem;
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: #9f1f1f;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.form-error {
  display: none;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #f0b9b9;
  background: #fdf1f1;
  color: #8f1b1b;
  font-size: 0.875rem;
}

.form-error.is-visible {
  display: block;
}

/* Success */
.form-success {
  display: none;
  padding: 1.5rem;
  background: #ecf8f0;
  border: 1px solid #b8dfc8;
  border-radius: var(--radius);
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #1e5c3a;
}

.form-success p {
  margin: 0;
  color: #2d6b47;
  font-size: 0.9375rem;
}

form.is-hidden {
  display: none;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.cta-band p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
}

/* Resources */
.resources {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .resources {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-link {
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.resource-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.resource-link strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.resource-link span {
  font-size: 0.96rem;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .hero h1 {
    max-width: 12ch;
  }

  .hero__media {
    max-width: 34rem;
  }
}

@media (max-width: 559px) {
  .wrap {
    width: min(100% - 1.2rem, var(--max-wide));
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 2.9rem);
  }

  .hero__support {
    font-size: 1rem;
  }

  .hero__highlight {
    padding: 0.9rem 0.95rem;
  }

  .btn {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}
