@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap");

:root {
  --plum: #24102f;
  --plum-light: #351a47;
  --orange: #e87924;
  --orange-dark: #c96116;
  --cream: #f3e5d2;
  --cream-light: #faf3e9;
  --ink: #1c1025;
  --muted: #675c68;
  --line: rgba(36, 16, 47, 0.14);
  --section-gutter: clamp(34px, 5vw, 68px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  padding: 0;
}

header,
main,
footer {
  width: 100%;
}

header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px max(24px, calc((100% - 1180px) / 2));
  background: var(--plum);
  color: var(--cream-light);
}

header h1 {
  color: inherit;
  font-family: "Archivo", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

header p {
  color: rgba(250, 243, 233, 0.72);
  font-size: 0.78rem;
  margin: 0;
}

main {
  overflow: hidden;
}

section {
  position: relative;
  padding: var(--section-gutter);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

section > h2,
section > p,
section > ol,
section > ul,
section > table,
section > form {
  margin-inline: auto;
}

h2,
h3 {
  font-family: "Archivo", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  text-align: center;
}

h3 {
  max-width: 900px;
  margin: 38px auto 16px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  text-align: center;
}

p {
  max-width: 760px;
  margin-bottom: 18px;
  color: inherit;
  font-size: 1.125rem;
  text-align: justify;
}

strong {
  font-weight: 800;
}

ul,
ol {
  margin: 20px 0;
  padding-left: 1.25rem;
}

li {
  padding-left: 4px;
  margin-bottom: 12px;
}

#Inicio {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  justify-content: center;
  gap: 14px 42px;
  min-height: 500px;
  color: var(--cream-light);
  background: linear-gradient(
    90deg,
    var(--plum) 0%,
    var(--plum) 64%,
    var(--orange) 64%,
    var(--orange) 100%
  );
}

#Inicio h2 {
  grid-column: 1;
  justify-self: center;
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  text-align: center;
}

#Inicio p {
  grid-column: 1;
  justify-self: center;
  max-width: 560px;
  color: rgba(250, 243, 233, 0.78);
  font-size: 1.125rem;
  text-align: justify;
}

#Inicio nav {
  grid-column: 1;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 12px;
}

#Inicio video {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(18, 7, 24, 0.2);
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid rgba(250, 243, 233, 0.42);
  border-radius: 0;
  background: rgba(250, 243, 233, 0.08);
  color: var(--cream-light);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.link:first-child {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--plum);
}

.link:hover {
  background: var(--cream-light);
  color: var(--plum);
}

#Protocolo {
  background: var(--cream);
  color: var(--ink);
}

#Protocolo > h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

#Protocolo > p,
#Protocolo > ol {
  font-size: 1.1rem;
}

#Protocolo > ol {
  max-width: 900px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

#Protocolo > ol li {
  position: relative;
  min-height: 48px;
  padding: 10px 12px 10px 52px;
  border-top: 1px solid var(--line);
  counter-increment: steps;
}

#Protocolo > ol li::before {
  position: absolute;
  top: 9px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: rgba(36, 16, 47, 0.07);
  color: var(--plum);
  content: counter(steps, decimal-leading-zero);
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

#Protocolo > img,
#Implementacion > img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 28px auto;
  border: 1px solid rgba(36, 16, 47, 0.12);
  border-radius: 0;
  box-shadow: none;
}

main img.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

main img.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#Protocolo h3 {
  max-width: none;
  margin: 0 calc(-1 * var(--section-gutter));
  padding: 44px var(--section-gutter) 20px;
  background: var(--plum);
  color: var(--cream-light);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

#Protocolo h3 ~ p,
#Protocolo h3 ~ ul,
#Protocolo h3 ~ figure {
  max-width: none;
  margin-inline: calc(-1 * var(--section-gutter));
  padding-inline: var(--section-gutter);
  background: var(--plum);
  color: rgba(250, 243, 233, 0.78);
}

#Protocolo h3 ~ p {
  padding-top: 10px;
  margin: 0;
  margin-inline: calc(-1 * var(--section-gutter));
  text-align: center;
}

#Protocolo h3 ~ ul {
  margin-top: 0;
  padding-top: 16px;
  padding-bottom: 26px;
  margin-bottom: 0;
  list-style: none;
}

#Protocolo h3 ~ ul li {
  max-width: 900px;
  margin-inline: auto;
  padding: 10px 0;
  text-align: justify;
  border-bottom: 1px solid rgba(250, 243, 233, 0.16);
}

#Protocolo h3 ~ figure {
  margin-top: 0;
}

#Protocolo h3 ~ figure table {
  max-width: 1000px;
  margin-inline: auto;
}

#Protocolo h3 ~ figure figcaption {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.lectura-estres {
  display: block;
  margin: 0;
  padding: 28px clamp(24px, 5vw, 60px) 36px;
  border: 0;
  border-radius: 0;
  background: var(--plum);
  color: var(--cream-light);
}

.lectura-estres p {
  max-width: none;
  color: rgba(250, 243, 233, 0.72);
  font-size: 0.88rem;
  text-align: left;
}

.lectura-estres p strong {
  display: inline-block;
  color: var(--cream-light);
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
}

th,
td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(250, 243, 233, 0.14);
  text-align: left;
}

th {
  background: rgba(232, 121, 36, 0.16);
  color: var(--cream-light);
  font-weight: 700;
}

td {
  color: rgba(250, 243, 233, 0.78);
}

meter {
  width: 100%;
  height: 10px;
  accent-color: var(--orange);
}

figcaption {
  color: rgba(250, 243, 233, 0.58);
  font-size: 0.78rem;
}

#Tecnologia {
  background: var(--cream-light);
  color: var(--ink);
}

#Tecnologia ul {
  max-width: 900px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

#Tecnologia li {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) 1.3fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

#Implementacion {
  background: var(--cream);
  color: var(--ink);
}

#Implementacion p {
  max-width: 900px;
}

#Modelo {
  background: var(--plum);
  color: var(--cream-light);
}

#Modelo h2,
#SolDemo h2 {
  color: inherit;
}

#Modelo p,
#Modelo small {
  color: rgba(250, 243, 233, 0.74);
}

#Modelo table {
  max-width: 1050px;
  margin-inline: auto;
  margin-top: 30px;
  background: rgba(250, 243, 233, 0.04);
}

#Modelo th {
  background: rgba(232, 121, 36, 0.18);
}

#Modelo td {
  color: rgba(250, 243, 233, 0.82);
}

#SolDemo {
  background: linear-gradient(110deg, var(--orange) 0%, #ef944b 100%);
  color: var(--plum);
}

#SolDemo h2 {
  max-width: 700px;
}

#SolDemo p {
  max-width: 720px;
  color: rgba(36, 16, 47, 0.78);
}

#SolDemo p strong {
  color: var(--plum);
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  width: 100%;
  max-width: 760px;
  margin: 30px auto 0;
  padding: 24px;
  border: 1px solid rgba(36, 16, 47, 0.18);
  background: rgba(250, 243, 233, 0.28);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field[hidden] {
  display: none;
}

.form-field--wide {
  grid-column: 1 / -1;
}

label {
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 16, 47, 0.23);
  border-radius: 0;
  background: rgba(250, 243, 233, 0.62);
  color: var(--plum);
  font: inherit;
  font-size: 0.92rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--plum);
  outline: 2px solid rgba(36, 16, 47, 0.16);
  outline-offset: 1px;
}

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

button[type="submit"] {
  justify-self: start;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--plum);
  border-radius: 0;
  background: var(--plum);
  color: var(--cream-light);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

button[type="submit"]:hover {
  background: transparent;
  color: var(--plum);
}

footer {
  padding: 20px 32px;
  background: var(--plum);
  color: var(--cream-light);
}

footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: none;
  margin: 0;
  color: rgba(250, 243, 233, 0.72);
  font-size: 0.82rem;
}

footer img {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 700px) {
  header {
    min-height: 56px;
    padding: 12px 20px;
  }

  header p {
    max-width: 150px;
    text-align: right;
    font-size: 0.7rem;
  }

  #Inicio {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    min-height: auto;
    padding: 42px 24px 28px;
    background: linear-gradient(
      180deg,
      var(--plum) 0%,
      var(--plum) 72%,
      var(--orange) 72%,
      var(--orange) 100%
    );
  }

  #Inicio h2,
  #Inicio p,
  #Inicio nav,
  #Inicio video {
    grid-column: 1;
    grid-row: auto;
  }

  #Inicio h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  #Inicio p {
    max-width: 560px;
  }

  #Inicio nav {
    align-items: stretch;
  }

  #Inicio video {
    width: 100%;
    height: auto;
    margin-top: 18px;
  }

  section {
    --section-gutter: 24px;
    padding: 36px var(--section-gutter);
  }

  #Protocolo h3 {
    padding: 36px var(--section-gutter) 16px;
  }

  #Protocolo h3 ~ p,
  #Protocolo h3 ~ ul {
    padding-inline: var(--section-gutter);
  }

  .lectura-estres {
    padding: 24px;
  }

  #Tecnologia li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .form-field--wide {
    grid-column: auto;
  }

  footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main img.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .link,
  button[type="submit"] {
    transition: none;
  }
}