/* ==========================================================================
   Mainkore — AI Act Landing
   ========================================================================== */

@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca — primarios */
  --color-beige: #e3dcd0;
  --color-red: #e40520;
  --color-black: #1d1d1b;
  --color-gray-dark: #5e6062;

  /* Marca — secundarios */
  --color-beige-soft: #cdc5c1;
  --color-orange: #d97857;
  --color-green: #69986f;

  /* Superficies */
  --bg-page: #f5f2ee;
  --bg-surface: #ffffff;
  --bg-surface-soft: #efe9e2;
  --text-primary: var(--color-black);
  --text-secondary: var(--color-gray-dark);
  --border-soft: rgba(29, 29, 27, 0.08);

  /* Tipografía */
  --font-base: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Forma */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 60px -20px rgba(29, 29, 27, 0.18);
  --shadow-card: 0 8px 24px -12px rgba(29, 29, 27, 0.12);

  /* Movimiento */
  --transition-fast: 180ms ease;
  --transition-base: 280ms ease;

  /* Ritmo */
  --section-padding: 120px;
  --container-width: 1280px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding: 32px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
}

.logo__hash {
  color: var(--color-red);
}

.logo__img {
  height: 74px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  margin: 0 auto 64px;
  max-width: var(--container-width);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__title span {
  display: block;
  color: var(--color-orange);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  width: fit-content;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero__stat::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-orange);
}

.hero__stat:first-child::before {
  display: none;
}

.hero__visual {
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
}

.hero__book {
  width: 450px;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Autoridad
   ========================================================================== */
.download-guide-btn{

    display:flex;
    width:fit-content;
    align-items:center;
    justify-content:center;

    margin-top:32px;

    padding:16px 28px;

    background:#1D1D1B;
    color:#fff;

    border-radius:999px;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

}

.download-guide-btn:hover{

    background:#E40520;
    transform:translateY(-2px);

}

.authority {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px 56px;
}

.authority p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.authority strong {
  color: var(--color-orange);
  font-weight: 700;
}

.authority .accent {
  color: var(--color-orange);
  font-weight: 700;
}

/* ==========================================================================
   Formulario
   ========================================================================== */

.lead-form-section {
  max-width: var(--container-width);
  margin: 0 auto 96px;
  padding: 0 32px;
}

.lead-form-card {
  display: none;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px;
}

.lead-form__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.form-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-field label .required {
  color: var(--color-red);
}

.form-field input[type="text"],
.form-field input[type="email"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input::placeholder {
  color: #9a958d;
}

.form-field input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(217, 120, 87, 0.15);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--color-red);
}

.form-field__error {
  font-size: 0.78rem;
  color: var(--color-red);
  min-height: 1em;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-red);
  flex-shrink: 0;
}

.form-consent label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(217, 120, 87, 0.55);
}

.btn--dark {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(228, 5, 32, 0.5);
}

.hero__content .btn {
  width: 300px;
  max-width: 100%;
}

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

.btn__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.btn.is-loading .btn__label {
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  font-size: 0.88rem;
  font-weight: 500;
}

.form-status[data-state="success"] {
  color: var(--color-green);
}

.form-success {
  display: none;
  align-items: center;
  gap: 16px;
  background: rgba(105, 152, 111, 0.12);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 24px;
}

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

.form-success svg {
  color: var(--color-green);
}

.form-success p {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.form-success strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */

.section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px var(--section-padding);
}

.section__title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* Por qué descargar */

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.benefit-card {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--color-orange);
}

.benefit-card__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.benefit-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Qué encontrarás dentro */

.checklist {
  display: flex;
  flex-direction: column;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.checklist__item:first-child {
  border-top: 1px solid var(--border-soft);
}

.checklist__icon {
  color: var(--color-green);
}

.checklist__text {
  font-size: 1rem;
  color: var(--text-primary);
}

/* Para quién es */

.audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.audience-card {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}

.audience-card:hover {
  transform: translateY(-4px);
}

.audience-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-orange);
}

.audience-card__label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* CTA final */

.cta {
  background: var(--color-black);
  border-radius: var(--radius-lg);
  max-width: var(--container-width);
  margin: 0 auto 80px;
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta__text {
  flex: 1 1 420px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: #fff;
  font-weight: 400;
}

.cta__text strong {
  display: block;
  color: var(--color-orange);
  font-weight: 700;
}

/* Footer */

.site-footer {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer__logo {
  height: 60px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop */
@media (max-width: 1280px) {
  :root {
    --section-padding: 96px;
  }

  .hero {
    padding: 64px 48px;
  }

  .cta {
    padding: 56px 48px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
  }

  .hero {
    padding: 48px 32px;
    border-radius: var(--radius-md);
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__book {
    width: 260px;
  }

  .lead-form-card {
    padding: 32px 24px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px;
  }
}

/* Mobile */
@media (max-width: 390px) {
  .container,
  .section,
  .authority,
  .lead-form-section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero__stats {
    flex-direction: column;
    width: 100%;
  }

  .lead-form-card {
    padding: 24px 18px;
  }

  .lead-form__grid {
    flex-direction: column;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .benefit-card,
  .audience-card {
    flex: 1 1 100%;
  }

  .cta {
    padding: 36px 20px;
  }
}
