/* ==========================================================================
   NEUROTech · MJN Neuro — Microsite CDTI Multipaís
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #1e1b3a;
  --ink-soft: #322c5c;
  --paper: #fbfafd;
  --blue: #3f5ff0;
  --lilac: #9c7fe6;
  --slate: #5c6178;
  --line: rgba(30, 27, 58, 0.1);
  --gradient: linear-gradient(135deg, var(--blue), var(--lilac));

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
}

/* ==========================================================================
   CONFIGURACIÓN GENERAL
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  counter-reset: section;
  min-height: 100vh;

  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;

  background: var(--paper);
}

/* Fondo luminoso continuo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(63, 95, 240, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 40%,
      rgba(156, 127, 230, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(63, 95, 240, 0.06),
      transparent 30%
    );
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   CABECERA
   ========================================================================== */

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;

  width: 88%;
  height: 76px;
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transform: translateX(-50%);
  transition: transform 0.35s ease;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(63, 95, 240, 0.12);
  border-radius: 999px;

  box-shadow: 0 18px 50px rgba(30, 27, 58, 0.1);
}

/* Mantiene visible la cabecera */
.site-header.hide {
  transform: translate(-50%, -140%);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 16px;

  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-menu a:hover {
  color: #ffffff;
  background: var(--gradient);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 170px 7% 110px;

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

  overflow: hidden;
  text-align: center;
}

/* Luces decorativas */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;

  width: 520px;
  height: 520px;

  border-radius: 50%;
  filter: blur(130px);

  pointer-events: none;
}

.hero::before {
  top: -240px;
  left: -180px;

  background: rgba(63, 95, 240, 0.2);

  animation: hero-glow-left 18s ease-in-out infinite alternate;
}

.hero::after {
  top: 80px;
  right: -220px;

  background: rgba(156, 127, 230, 0.22);

  animation: hero-glow-right 22s ease-in-out infinite alternate;
}

@keyframes hero-glow-left {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(70px, 35px) scale(1.08);
  }
}

@keyframes hero-glow-right {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-65px, 45px) scale(1.1);
  }
}

/* Señal EEG situada detrás del contenido */
.hero-background-signal {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 0;

  width: 100vw;
  height: 200px;

  transform: translateX(-50%);

  opacity: 0.18;
  pointer-events: none;
}

.hero-signal-path {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;

  animation:
    draw-signal 2.8s ease 0.7s forwards,
    signal-glow 8s ease-in-out 3.5s infinite;
}

@keyframes draw-signal {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes signal-glow {
  0%,
  78%,
  100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
  }

  86% {
    opacity: 0.82;
    filter: drop-shadow(0 0 7px rgba(99, 102, 241, 0.32));
  }
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

  padding-bottom: 100px;
}

/* Entrada progresiva del contenido del hero */
.hero-badge,
.hero h1,
.hero-content > p,
.hero-actions {
  opacity: 0;
  transform: translateY(18px);

  animation: hero-content-in 0.8s ease forwards;
}

.hero-badge {
  animation-delay: 0.1s;
}

.hero h1 {
  animation-delay: 0.25s;
}

.hero-content > p {
  animation-delay: 0.4s;
}

.hero-actions {
  animation-delay: 0.55s;
}

@keyframes hero-content-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto 28px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -2.5px;
}

.hero h1 span {
  display: block;

  color: transparent;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-content > p {
  max-width: 720px;
  margin: 0 auto 38px;

  color: var(--slate);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.button,
.button-secondary {
  min-height: 54px;
  padding: 15px 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 999px;
  transition: 0.25s ease;
}

.button {
  color: #ffffff;
  background: var(--gradient);

  box-shadow: 0 18px 42px rgba(63, 95, 240, 0.25);
}

.button::after {
  content: "→";
  font-size: 18px;

  transition: transform 0.25s ease;
}

.button:hover::after {
  transform: translateX(5px);
}

.button:hover {
  transform: translateY(-3px);

  box-shadow: 0 24px 55px rgba(156, 127, 230, 0.35);
}

.button-secondary {
  color: var(--ink-soft);

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 27, 58, 0.12);

  box-shadow: 0 12px 32px rgba(30, 27, 58, 0.05);
}

.button-secondary:hover {
  color: var(--blue);

  transform: translateY(-3px);

  background: #ffffff;
  border-color: rgba(63, 95, 240, 0.25);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    margin-bottom: 26px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(63, 95, 240, 0.08);

    backdrop-filter: blur(10px);

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #4865ff;

    box-shadow:
        0 8px 30px rgba(30, 27, 58, 0.03),
        inset 0 1px 0 rgba(255,255,255,.7);
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: linear-gradient(135deg, #4865ff, #7d6df4);

    box-shadow: 0 0 10px rgba(72,101,255,.35);
}

/* ==========================================================================
   ESTRUCTURA GENERAL DE LAS SECCIONES
   ========================================================================== */

.section {
  position: relative;
  padding: 30px 7% 120px;

  overflow: hidden;
  counter-increment: section;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* Luces suaves dentro de algunas secciones */
#objetivos::after,
#consorcio::after,
#financiacion::after,
#contacto::after {
  content: "";
  position: absolute;
  z-index: 0;

  width: 420px;
  height: 420px;

  border-radius: 50%;
  background: var(--gradient);

  opacity: 0.04;
  filter: blur(100px);

  pointer-events: none;
}

#objetivos::after {
  top: 160px;
  right: -190px;
}

#consorcio::after {
  top: 120px;
  left: -190px;
}

#financiacion::after {
  bottom: 20px;
  left: -180px;
}

#contacto::after {
  top: 240x;
  right: -180px;
}

.section-title {
  max-width: 880px;
  margin-bottom: 54px;
}

.section-title::before {
  content: counter(section, decimal-leading-zero);

  display: block;
  margin-bottom: 16px;

  color: var(--blue);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
}

.section-title h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.2px;
}

/* ==========================================================================
   OBJETIVOS DEL PROYECTO
   ========================================================================== */

.objectives {
  padding-top: 95px;
  padding-bottom: 115px;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 16px;

  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 22px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}

.section-heading p {
  max-width: 720px;
  margin: 0 auto;

  color: var(--slate);
  font-size: 18px;
  line-height: 1.75;
}

.objectives-layout {
  max-width: 1300px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

/* Objetivos específicos */

.specific-objectives-list {
  position: relative;
}

.specific-objectives-list::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 27px;

  width: 1px;
  background: rgba(63, 95, 240, 0.16);
}

.objective-step {
  position: relative;
  padding-bottom: 42px;

  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
}

.objective-step:last-child {
  padding-bottom: 0;
}

.objective-step-icon {
  position: relative;
  z-index: 1;

  width: 56px;
  height: 56px;

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

  color: #ffffff;
  background: var(--gradient);
  border-radius: 18px;

  box-shadow: 0 14px 34px rgba(63, 95, 240, 0.22);
}

.objective-step-icon svg {
  width: 27px;
  height: 27px;
}

.objective-step-content span {
  display: inline-block;
  margin-bottom: 8px;

  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.objective-step-content h3 {
  margin-bottom: 10px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
}

.objective-step-content p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;

  text-align: justify;
  text-justify: inter-word;
}

/* Objetivo general */

.main-objective {
  position: relative;
  min-height: 390px;
  padding: 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(246, 243, 253, 0.88)
    );

  border: 1px solid rgba(63, 95, 240, 0.13);
  border-radius: 30px;

  box-shadow:
    0 30px 90px rgba(30, 27, 58, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main-objective::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -120px;

  width: 350px;
  height: 350px;

  background: var(--gradient);
  border-radius: 50%;

  opacity: 0.12;
  filter: blur(85px);
}

.objective-label {
  position: relative;
  z-index: 2;

  display: inline-block;
  margin-bottom: 18px;

  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.main-objective h3 {
  position: relative;
  z-index: 2;

  width: 100%;
  margin-bottom: 18px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.45px;
}

.main-objective p {
  position: relative;
  z-index: 2;

  width: 100%;

  color: var(--slate);
  font-size: 17px;
  line-height: 1.75;

  text-align: justify;
  text-justify: inter-word;
}

/* Patrón de puntos decorativo */
.main-objective::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 1;

  width: 42%;
  height: 46%;

  background-image: radial-gradient(
    circle,
    rgba(156, 127, 230, 0.22) 1.2px,
    transparent 1.2px
  );

  background-size: 12px 12px;

  opacity: 1;

  pointer-events: none;

  -webkit-mask-image: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 22%,
    #000 100%
  );

  mask-image: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 22%,
    #000 100%
  );
}

/* ==========================================================================
   ANIMACIONES OBJETIVOS
   ========================================================================== */

/* Estado inicial limitado únicamente a Objetivos */
.objectives .section-heading,
.objectives .objective-step,
.objectives .main-objective {
  opacity: 0;
  will-change: transform, opacity;
}

.objectives .section-heading {
  transform: translateY(24px);
}

.objectives .objective-step {
  transform: translateX(-28px);
}

.objectives .main-objective {
  transform: translateX(34px);
}

/* Encabezado */
.objectives.is-visible .section-heading {
  animation: objectives-heading-in 0.7s ease forwards;
}

/* OG1, OG2 y OG3 */
.objectives.is-visible .objective-step:nth-child(1) {
  animation: objective-step-in 0.65s ease 0.18s forwards;
}

.objectives.is-visible .objective-step:nth-child(2) {
  animation: objective-step-in 0.65s ease 0.32s forwards;
}

.objectives.is-visible .objective-step:nth-child(3) {
  animation: objective-step-in 0.65s ease 0.46s forwards;
}

/* Tarjeta derecha */
.objectives.is-visible .main-objective {
  animation: main-objective-in 0.75s ease 0.32s forwards;
}

/* Iconos */
.objectives.is-visible .objective-step:nth-child(1) .objective-step-icon {
  animation: objective-icon-pop 0.55s ease 0.3s both;
}

.objectives.is-visible .objective-step:nth-child(2) .objective-step-icon {
  animation: objective-icon-pop 0.55s ease 0.44s both;
}

.objectives.is-visible .objective-step:nth-child(3) .objective-step-icon {
  animation: objective-icon-pop 0.55s ease 0.58s both;
}

/* Animaciones */
@keyframes objectives-heading-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes objective-step-in {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes main-objective-in {
  from {
    opacity: 0;
    transform: translateX(34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes objective-icon-pop {
  0% {
    transform: scale(0.86);
  }

  70% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   INTEGRANTES DEL CONSORCIO
   ========================================================================== */

.consortium {
  padding-top: 95px;
  padding-bottom: 115px;
}

.consortium-heading {
  margin-bottom: 64px;
}

.consortium-grid{
    display:flex;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;

    gap:32px;
    margin:70px auto 0;
}

.consortium-card{
    position:relative;

    width:540px;
    min-height:250px;
    padding:34px;

    display:flex;
    flex-direction:column;

    overflow:hidden;

    background:rgba(255,255,255,.55);
    border:1px solid rgba(63,95,240,.06);
    border-radius:26px;

    box-shadow:
        0 18px 45px rgba(30,27,58,.04),
        inset 0 1px 0 rgba(255,255,255,.75);

    backdrop-filter:blur(10px);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.consortium-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;

  width: 280px;
  height: 280px;

  background: var(--gradient);
  border-radius: 50%;

  opacity: 0.11;
  filter: blur(75px);

  pointer-events: none;
}

.consortium-card::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 0;

  width: 34%;
  height: 34%;

  background-image: radial-gradient(
    circle,
    rgba(156, 127, 230, 0.15) 1.1px,
    transparent 1.2px
  );

  background-size: 12px 12px;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 0, 0, 0.28) 28%,
    #000 100%
  );

  mask-image: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 0, 0, 0.28) 28%,
    #000 100%
  );
}

.consortium-card:hover {
  transform: translateY(-5px);

  background: rgba(255, 255, 255, 0.68);

  box-shadow:
    0 24px 60px rgba(30, 27, 58, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.consortium-card > * {
  position: relative;
  z-index: 2;
}

.consortium-card-header {
  margin-bottom: 34px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.consortium-role {
  display: inline-block;
  margin-bottom: 12px;

  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.consortium-card h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.2;
}


.consortium-logo{
    position:absolute;
    top:38px;
    right:38px;

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

    z-index:2;
}

.consortium-logo img{
    width:170px;
    height:auto;
    display:block;

    opacity:.9;
    transition:.3s ease;
}

.consortium-card:hover .consortium-logo img{
    opacity:1;
    transform:scale(1.03);
}

.consortium-card > p {
  max-width: 520px;
  margin-bottom: 0;

  color: var(--slate);
  font-size: 17px;
  line-height: 1.75;
}

/* ==========================================================================
   ANIMACIONES CONSORCIO
   ========================================================================== */

.consortium .section-heading,
.consortium .consortium-card {
  opacity: 0;
  will-change: transform, opacity;
}

.consortium .section-heading {
  transform: translateY(24px);
}

.consortium .consortium-card {
  transform: translateY(32px);
}

.consortium.is-visible .section-heading {
  animation: consortium-heading-in 0.7s ease forwards;
}

.consortium.is-visible .consortium-card:nth-child(1) {
  animation: consortium-card-in 0.7s ease 0.2s forwards;
}

.consortium.is-visible .consortium-card:nth-child(2) {
  animation: consortium-card-in 0.7s ease 0.35s forwards;
}

@keyframes consortium-heading-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consortium-card-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FINANCIACIÓN
   ========================================================================== */

.financing {
  padding-top: 100px;
  padding-bottom: 100px;

  text-align: center;
}

.financing-content {
  max-width: 900px;
  margin: 0 auto;
}

.financing-content h2 {
  max-width: 720px;
  margin: 0 auto 18px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.financing-content > p {
  max-width: 650px;
  margin: 0 auto 48px;

  color: var(--slate);
  font-size: 18px;
  line-height: 1.7;
}

.funding-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.funding-logos img {
  width: auto;
  max-width: 290px;
  max-height: 82px;

  object-fit: contain;
}

/* ==========================================================================
   ANIMACIONES FINANCIACIÓN
   ========================================================================== */

.financing .financing-content h2,
.financing .financing-content > p,
.financing .funding-logos {
  opacity: 0;
  will-change: transform, opacity;
}

.financing .financing-content h2,
.financing .financing-content > p {
  transform: translateY(24px);
}

.financing .funding-logos {
  transform: translateY(30px);
}

.financing.is-visible .financing-content h2 {
  animation: financing-content-in 0.7s ease forwards;
}

.financing.is-visible .financing-content > p {
  animation: financing-content-in 0.7s ease 0.14s forwards;
}

.financing.is-visible .funding-logos {
  animation: financing-logos-in 0.75s ease 0.3s forwards;
}

@keyframes financing-content-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes financing-logos-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */

.contact {
  padding-top: 100px;
  padding-bottom: 120px;
}

.contact-heading {
  margin-bottom: 65px;
}

.contact-layout {
  max-width: 1160px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: stretch;
}

/* Información de contacto */

.contact-information {
  position: relative;
  min-height: 100%;
  padding: 42px 10px 42px 0;

  overflow: hidden;
}

.contact-label {
  display: inline-block;
  margin-bottom: 18px;

  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.contact-information h3 {
  max-width: 430px;
  margin-bottom: 20px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(27px, 2.7vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.8px;
}

.contact-information > p {
  max-width: 450px;
  margin-bottom: 38px;

  color: var(--slate);
  font-size: 17px;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.contact-detail span {
  color: var(--slate);
  font-size: 13px;
}

.contact-detail a {
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* Puntos decorativos */

.contact-dots {

  position: absolute;
  left: 0;
  top: 210px;
  bottom: auto;

  width: 240px;
  height: 125px;

  background-image: radial-gradient(
    circle,
    rgba(156, 127, 230, 0.22) 1.2px,
    transparent 1.2px
  );

  background-size: 12px 12px;

  -webkit-mask-image: linear-gradient(
    315deg,
    transparent 0%,
    rgba(0,0,0,.35) 25%,
    #000 100%
  );

  mask-image: linear-gradient(
    315deg,
    transparent 0%,
    rgba(0,0,0,.35) 25%,
    #000 100%
  );

  pointer-events: none;
}

/* Formulario */

.contact-form {
  padding: 38px;

  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(63, 95, 240, 0.07);
  border-radius: 26px;

  box-shadow:
    0 18px 50px rgba(30, 27, 58, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;

  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;

  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;

  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(30, 27, 58, 0.11);
  border-radius: 12px;

  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 145px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9296a8;
}

.form-field input:focus,
.form-field textarea:focus {
  background: #ffffff;
  border-color: var(--blue);

  box-shadow: 0 0 0 4px rgba(63, 95, 240, 0.09);
}

.contact-button {
  padding: 15px 26px;

  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;

  background: var(--gradient);
  border: none;
  border-radius: 999px;

  box-shadow: 0 16px 34px rgba(63, 95, 240, 0.22);

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(156, 127, 230, 0.32);
}

/* ==========================================================================
   ANIMACIONES CONTACTO
   ========================================================================== */

.contact .contact-heading,
.contact .contact-information,
.contact .contact-form {
  opacity: 0;
  will-change: transform, opacity;
}

.contact .contact-heading {
  transform: translateY(24px);
}

.contact .contact-information {
  transform: translateX(-35px);
}

.contact .contact-form {
  transform: translateX(35px);
}

.contact.is-visible .contact-heading {
  animation: contact-heading-in 0.7s ease forwards;
}

.contact.is-visible .contact-information {
  animation: contact-left-in 0.75s ease 0.2s forwards;
}

.contact.is-visible .contact-form {
  animation: contact-right-in 0.75s ease 0.35s forwards;
}

@keyframes contact-heading-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contact-left-in {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes contact-right-in {
  from {
    opacity: 0;
    transform: translateX(35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */

.footer{
    padding:22px 7%;

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

    background:#eeedf8;

    color:var(--slate);

    font-size:14px;
    text-align:center;
    line-height:1.7;
}

.footer p{
    margin:0;
}

/* ==========================================================================
   DISEÑO RESPONSIVE
   ========================================================================== */

@media (min-width: 901px) {
  .contact-dots {
    transform: translateY(35px) !important;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 90px;
  }

  /* CABECERA MÓVIL */

  .site-header {
    top: 12px;

    width: calc(100% - 24px);
    height: 64px;
    padding: 0 18px;

    flex-direction: row;
    gap: 0;

    border-radius: 22px;
  }

  .brand img {
    height: 34px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-left: auto;

    background: transparent;
    border: 0;

    cursor: pointer;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;

    display: block;

    background: var(--ink);
    border-radius: 999px;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;

    width: 100%;
    padding: 14px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(63, 95, 240, 0.1);
    border-radius: 22px;

    box-shadow: 0 20px 50px rgba(30, 27, 58, 0.12);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    padding: 13px 16px;

    text-align: center;
    border-radius: 14px;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* HERO */

  .hero {
    min-height: auto;
    padding: 125px 6% 100px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 64px);
  }

  .hero-content {
    padding-bottom: 100px;
  }

  .hero-background-signal {
    bottom: 30px;
    height: 145px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  /* SECCIONES */

  .section {
    padding: 30px 6% 90px;
  }

  /* OBJETIVOS */

  .objectives-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .main-objective {
    order: 1;
    min-height: auto;
  }

  .specific-objectives-list {
    order: 2;
  }

  /* CONSORCIO */

  .consortium-grid {
    flex-direction: column;
    align-items: center;
  }

  .consortium-card {
    width: 100%;
    max-width: 650px;
    min-height: auto;
    padding: 34px 28px;
  }

  .consortium-logo {
    top: 34px;
    right: 28px;
    margin-top: 0;
  }

  .consortium-logo img {
    width: 150px;
    max-width: 150px;
    max-height: none;
  }

  /* FINANCIACIÓN */

  .financing {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .funding-logos {
    flex-direction: column;
    gap: 28px;
  }

  .funding-logos img {
    width: auto;
    height: auto;
    max-width: 230px;
    max-height: 70px;
  }

  /* CONTACTO */

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-information {
    padding-top: 0;
  }

  .contact-form {
    padding: 32px 28px;
  }
}

@media (max-width: 560px) {
  /* CABECERA */

  .site-header {
    width: calc(100% - 20px);
    padding: 0 14px;
  }

  .brand img {
    height: 30px;
  }

  /* HERO */

  .hero {
    padding: 115px 6% 90px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }

  .hero-content > p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .hero-content {
      padding-bottom: 80px;
  }

  .hero-background-signal {
      bottom: 35px;
      height: 145px;
      opacity: 0.14;
  }

  /* TÍTULOS */

  .section-title h2 {
    font-size: 34px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading p {
    margin: 0;
  }

  /* OBJETIVOS */

  .objective-step {
    grid-template-columns: 50px 1fr;
    gap: 18px;
  }

  .objective-step-icon {
    width: 50px;
    height: 50px;
  }

  .specific-objectives-list::before {
    left: 24px;
  }

  .main-objective {
    padding: 34px 26px;
    border-radius: 24px;
  }

  .main-objective::after {
    right: 10px;
    bottom: 10px;

    width: 72%;
    height: 48%;

    background-size: 12px 12px;
    opacity: 0.34;
  }

  .main-objective h3 {
    max-width: 100%;
    font-size: 24px;
  }

  .main-objective p {
    max-width: 100%;
  }

  /* CONSORCIO */

  .consortium-card {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .consortium-card-header {
    padding-right: 115px;
  }

  .consortium-card h3 {
    font-size: 25px;
  }

  .consortium-logo {
    top: 30px;
    right: 24px;
  }

  .consortium-logo img {
    width: 105px;
  }

  /* FORMULARIO */

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 28px 22px;
  }
}