:root {
  --brand-teal: #2a6e5a;
  --brand-teal-hover: #23604e;
  --brand-ink: #303a46;
  --brand-ink-soft: #5a6570;
  --brand-surface: #f7f8f7;
  --brand-white: #ffffff;
  --brand-line: rgba(48, 58, 70, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--brand-ink);
  background: var(--brand-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: 0 !important;
  top: 0 !important;
}

/* Honeypot: nunca off-screen a la izquierda (causa scroll horizontal) */
.hp-field {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--brand-white);
  width: 100%;
  max-width: 100%;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  max-width: none; /* cover full frame inside clipped parent */
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-zoom 18s var(--ease) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.04); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(12, 18, 20, 0.82) 0%,
      rgba(12, 18, 20, 0.55) 42%,
      rgba(12, 18, 20, 0.25) 70%,
      rgba(12, 18, 20, 0.15) 100%
    ),
    linear-gradient(
      to top,
      rgba(12, 18, 20, 0.55) 0%,
      transparent 45%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(40rem, 100%);
  max-width: 100%;
  padding: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__logo {
  display: block;
  height: clamp(2rem, 4.5vw, 2.75rem);
  width: auto;
  max-width: min(16rem, 85%);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero__support {
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.35rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--brand-teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-teal-hover);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--ink {
  background: var(--brand-ink);
  color: #fff;
}

.btn--ink:hover {
  background: #242c36;
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 10vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.section__inner {
  max-width: 68rem;
  margin: 0 auto;
  width: 100%;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--brand-ink);
}

.section__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--brand-ink-soft);
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  line-height: 1.55;
}

.section__foot {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--brand-ink-soft);
  max-width: 36rem;
}

.section--surface {
  background: var(--brand-surface);
}

.section--ink {
  background: var(--brand-ink);
  color: var(--brand-white);
}

.section--ink .section__title {
  color: var(--brand-white);
}

.section--ink .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

/* Producto */
.modules {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--brand-line);
}

.module {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--brand-line);
}

.module__name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--brand-teal);
}

.module__line {
  color: var(--brand-ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .module {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Para quién */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.role__title {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.role__text {
  color: var(--brand-ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .roles {
    grid-template-columns: 1fr;
  }
}

/* En el centro */
.points {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-teal);
}

/* Confianza */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 48rem;
}

.trust p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.trust strong {
  color: #fff;
  font-weight: 650;
}

@media (max-width: 700px) {
  .trust {
    grid-template-columns: 1fr;
  }
}

/* Cierre + form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-aside__mail {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--brand-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-aside__mail:hover {
  border-bottom-color: var(--brand-teal);
}

.form {
  position: relative;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: start;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--brand-ink-soft);
  cursor: pointer;
}

.form__consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--brand-teal);
  cursor: pointer;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.form input,
.form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.35rem;
  background: var(--brand-white);
  color: var(--brand-ink);
  width: 100%;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--brand-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 110, 90, 0.18);
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form__hint {
  font-size: 0.8rem;
  color: var(--brand-ink-soft);
  font-weight: 400;
}

.form__status {
  font-size: 0.9rem;
  color: var(--brand-teal);
  min-height: 1.25rem;
}

.form__privacy {
  font-size: 0.8rem;
  color: var(--brand-ink-soft);
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 1.75rem clamp(1.25rem, 5vw, 4rem) 2.25rem;
  border-top: 1px solid var(--brand-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--brand-ink-soft);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-footer a {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (max-width: 640px) {
  .hero__content {
    width: 100%;
  }

  .hero h1,
  .hero__support {
    max-width: none;
  }

  .hero__veil {
    background:
      linear-gradient(
        to top,
        rgba(12, 18, 20, 0.88) 0%,
        rgba(12, 18, 20, 0.45) 55%,
        rgba(12, 18, 20, 0.3) 100%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .hero__content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
