/* doingLABS · Universidad Blas Pascal — landing */

:root {
  --navy: #0b2233;
  --navy-2: #12344b;
  --blue: #009ecf;
  --blue-ink: #00688a;
  --lime: #a6cf2b;
  --lime-dark: #8ab61a;
  --paper: #ffffff;
  --mist: #f3f8fb;
  --line: #d8e4ec;
  --text: #1c2f3d;
  --muted: #526675;

  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; color: var(--navy); letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--lime); color: var(--navy); }
.btn-primary:hover { background: var(--lime-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand img { height: 56px; width: auto; }
.nav-toggle, .nav-burger { display: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration: none; font-size: .975rem; }
.nav a:not(.btn):hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { padding: .7rem 1.2rem; font-size: .95rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.hero .lead { margin-top: 1.5rem; max-width: 30rem; font-size: 1.2rem; color: var(--muted); }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-photo { position: relative; padding: 1.5rem 0 0 1.5rem; }
.hero-photo::before {          /* anillo: eco del isotipo de doingLABS */
  content: ""; position: absolute; z-index: 0;
  width: 64%; aspect-ratio: 1; left: -4%; top: -6%;
  border: 14px solid var(--lime); border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-35deg);
}
.hero-photo::after {
  content: ""; position: absolute; z-index: 0; right: -1.2rem; bottom: -1.2rem;
  width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--blue);
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 30% 50%;
  border-radius: 2rem 2rem 9rem 2rem;
}

/* Quiénes somos */
.about { background: var(--mist); }
.about .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--gap); align-items: center; }
.about h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.about p { margin-top: 1.25rem; font-size: 1.2rem; color: var(--muted); max-width: 30rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 1.25rem; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 1px var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Qué ofrecemos */
.offer-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); }
.offer-list li {
  padding-block: 1.15rem; border-top: 1px solid var(--line);
  font-size: 1.075rem; font-weight: 500; color: var(--navy);
}
.offer-list li { position: relative; padding-left: 2.6rem; }
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 1.3rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--lime);
}
.offer-list li::after {   /* tilde */
  content: ""; position: absolute; left: .47rem; top: 1.62rem;
  width: .6rem; height: .3rem;
  border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}

/* Beneficios */
.benefits { background: var(--navy); color: #fff; }
.benefits h2, .benefits .section-head p { color: #fff; }
.benefits .section-head p { opacity: .8; }
.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gap); }
.benefit-list li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.18);
}
.benefit-list img { width: 5.5rem; height: 5.5rem; object-fit: contain; background: #fff; border-radius: 50%; padding: .35rem; }
.benefit-list strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--lime); font-weight: 700; }
.benefit-list span { display: block; margin-top: .25rem; font-size: 1.05rem; line-height: 1.4; color: #e6eef4; }

/* Convocatoria */
.call {
  position: relative; color: #fff; isolation: isolate;
  background: var(--navy-2) url("img/convocatoria.jpg") center / cover no-repeat;
}
.call::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,72,103,.94) 0%, rgba(0,72,103,.88) 55%, rgba(0,72,103,.55) 100%); }
.call .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); align-items: center; }
.call h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.call p { margin-top: 1.25rem; font-size: 1.15rem; max-width: 30rem; color: #eaf6fb; }
.call .btn { margin-top: 2rem; }
.req { background: #fff; color: var(--text); border-radius: 1.25rem; padding: 1.75rem 1.75rem 1.25rem; }
.req h3 { font-size: 1.25rem; }
.req li { padding-block: .9rem; border-top: 1px solid var(--line); font-weight: 500; }
.req li:first-child { margin-top: 1rem; }

/* Startups */
.startup-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.startup { flex: 0 1 calc(25% - 1rem); background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; }
.startup .logo { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.startup .logo img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.startup h3 { font-size: 1.15rem; }
.startup p { margin-top: .4rem; font-size: .975rem; line-height: 1.5; color: var(--muted); }

/* Novedades */
.news { background: var(--mist); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-item { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.news-item h3 { font-size: 1.3rem; line-height: 1.2; }
.news-item p { margin-top: .85rem; color: var(--muted); font-size: 1rem; }

/* Aliados */
.partners { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.partners h2 { font-size: 1.25rem; text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 1.75rem; }
.partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem clamp(2rem, 6vw, 4.5rem); }
.partner-row img { height: 64px; width: auto; }

/* Contacto */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--gap); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.contact .intro { margin-top: 1.25rem; font-size: 1.15rem; color: var(--muted); max-width: 26rem; }
.form { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; background: var(--mist); border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .8rem .95rem; background: #fff;
  border: 1.5px solid #b7c9d6; border-radius: .7rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0,158,207,.35); border-color: var(--blue); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-note { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background-color: #3b3c3c; color: #cfdde7; padding-block: 3rem 2rem; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.25rem; }
.logos img { height: 54px; width: auto; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer .bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .925rem; }

/* Responsive */
@media (max-width: 960px) {
  .startup { flex-basis: calc(50% - 1rem); }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { max-width: 40rem; }
}

@media (max-width: 820px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; cursor: pointer; border-radius: 8px;
  }
  .nav-burger span { display: block; height: 3px; background: var(--navy); border-radius: 2px; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--blue); outline-offset: 2px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }

  .hero .wrap, .about .wrap, .call .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 30rem; }
  .offer-list, .benefit-list { grid-template-columns: 1fr; }
  .call::before { background: rgba(0,72,103,.9); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .startup { flex-basis: 100%; }
  .form { grid-template-columns: 1fr; }
  .benefit-list li { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; }
  .benefit-list strong { font-size: 1.3rem; overflow-wrap: anywhere; }
  .benefit-list img { width: 4.25rem; height: 4.25rem; }
  .hero .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.mensaje-exito {
  margin: 20px 0 25px;
  padding: 18px 20px;
  border: 1px solid #b7d8c0;
  border-radius: 8px;
  background: #eef8f1;
  color: #245b34;
}

.mensaje-exito strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.mensaje-exito span {
  display: block;
  font-size: 14px;
}