/* F3 Integral · Manual de identidad visual, revisión 02
   Tipografía: Montserrat Regular / Medium / SemiBold
   Colores: Azul F3 #1689D5 · Antracita F3 #121C25 */
@font-face {
  font-family: Montserrat;
  src: url("./assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("./assets/fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("./assets/fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --azul: #1689d5;
  --azul-oscuro: #0f6fae;
  --antracita: #121c25;
  --antracita-2: #1b2732;
  --texto: #121c25;
  --gris: #56616c;
  --gris-claro: #a7b1ba;
  --fondo: #ffffff;
  --fondo-2: #f3f5f7;
  --linea: #dfe4e8;
  --linea-oscura: rgba(255, 255, 255, 0.14);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --frame: 6px;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--texto);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--fondo);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--fondo);
  padding: 8px 14px;
}
.skip:focus {
  left: 8px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 16px;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
}
.lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--gris);
}
.num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--azul);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Open frame, taken from the logo: closed on three sides, open in the middle of the right side */
.frame {
  position: relative;
  border: var(--frame) solid currentColor;
  border-right: 0;
  padding: clamp(32px, 5vw, 72px);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  right: 0;
  width: var(--frame);
  background: currentColor;
}
.frame::before {
  top: 0;
  height: 17%;
}
.frame::after {
  bottom: 0;
  height: 18%;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.button.primary {
  background: var(--azul);
  color: #fff;
}
.button.primary:hover {
  background: var(--azul-oscuro);
}
.button.outline {
  border-color: var(--antracita);
  color: var(--antracita);
}
.button.outline:hover {
  background: var(--antracita);
  color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-solid {
  border-bottom-color: var(--linea);
}
.brand img {
  width: 52px;
}
#navigation {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
#navigation a {
  position: relative;
  padding: 6px 0;
}
#navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--azul);
  transition: right 0.25s;
}
#navigation a:hover::after {
  right: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.languages {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-claro);
}
.languages button {
  color: var(--gris-claro);
  font-weight: 600;
}
.languages button[aria-pressed="true"] {
  color: var(--antracita);
}
.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--antracita);
  transition: transform 0.25s;
}
.menu-toggle span:first-child {
  top: 12px;
}
.menu-toggle span:last-child {
  top: 20px;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 120px) 0;
  background: var(--fondo);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 88px);
}
/* La obra de la portada reserva una zona uniforme para el logotipo (con su
   área de respeto) y el orden sale por la abertura del marco, a la derecha. */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--antracita);
}
.hero-art picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: auto;
  transform: translate(-50%, -50%);
}
.hero h1 {
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 1.02;
  margin-bottom: 26px;
}
.hero h1 span {
  display: block;
}
.hero h1 .accent {
  color: var(--azul);
}
.hero-text {
  max-width: 560px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--gris);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Statement */
.statement {
  background: var(--antracita);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
}
.statement .frame {
  color: #fff;
}
.statement .frame > * {
  position: relative;
}
.statement h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  max-width: 980px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.statement h2 span {
  display: block;
  font-weight: 400;
  color: var(--gris-claro);
}
.statement h2 strong {
  display: block;
  font-weight: 600;
  color: #fff;
}
.statement-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  max-width: 940px;
  color: var(--gris-claro);
  font-size: 17px;
}

/* Brand tree: F3 as the trunk, unnamed branches */
.branches {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--fondo-2);
}
.tree {
  display: grid;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.tree-root {
  position: relative;
  width: clamp(88px, 10vw, 120px);
  padding-bottom: 40px;
}
.tree-root::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 40px;
  background: var(--azul);
  transform: translateX(-50%);
}
.tree-branches {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: 44px;
}
.tree-branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: var(--azul);
}
.tree-branches li {
  position: relative;
  height: 22px;
}
.tree-branches li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -44px;
  width: 2px;
  height: 44px;
  background: var(--azul);
  transform: translateX(-50%);
}
.tree-branches li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--antracita);
  transform: translateX(-50%);
}
.tree-branches li:nth-child(even)::after {
  background: var(--azul);
}
.tree-branches li.is-open::before {
  background: none;
  border-left: 2px dashed var(--gris-claro);
  width: 0;
}
.tree-branches li.is-open::after {
  background: transparent;
  border: 2px dashed var(--gris-claro);
}
.tree-caption {
  margin-top: 48px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tree-caption span {
  color: var(--gris);
}
.tree-caption strong {
  font-weight: 600;
  color: var(--azul);
}

/* Principles */
.principles {
  padding: clamp(80px, 10vw, 140px) 0;
}
.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.principle-list li {
  padding-top: 26px;
  border-top: 2px solid var(--antracita);
}
.principle-list h3 {
  font-size: clamp(30px, 3vw, 40px);
  margin: 14px 0 12px;
}
.principle-list li:nth-child(2) h3 {
  color: var(--azul);
}
.principle-list p {
  color: var(--gris);
}

/* Method */
.method {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--fondo-2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.steps li {
  position: relative;
  padding: 34px 22px 0 0;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--linea);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  background: var(--azul);
}
.steps h3 {
  font-size: 20px;
  margin: 8px 0 6px;
}
.steps p {
  color: var(--gris);
  font-size: 15px;
}

/* Manifesto */
.manifesto {
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--azul);
  color: #fff;
  text-align: center;
}
.manifesto p {
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.manifesto span,
.manifesto strong {
  display: block;
}
.manifesto span {
  font-weight: 400;
}
.manifesto strong {
  font-weight: 600;
}

/* Contact */
.contact {
  padding: clamp(80px, 10vw, 140px) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
}
.contact-data {
  margin-top: 32px;
  display: grid;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
}
.contact-data a {
  border-bottom: 2px solid var(--linea);
}
.contact-data a:hover {
  border-color: var(--azul);
}
.contact-form {
  display: grid;
  gap: 22px;
  align-content: start;
}
.contact-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--linea);
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--texto);
  border-radius: 0;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--azul);
}
.form-note {
  font-size: 13px;
  color: var(--gris);
}
.contact-form .button {
  justify-self: start;
  min-width: 180px;
}
#draft {
  display: grid;
  gap: 10px;
}
#draft[hidden] {
  display: none;
}
.text-button {
  justify-self: start;
  font-weight: 600;
  color: var(--azul);
}

/* Footer */
.footer {
  background: var(--antracita);
  color: #fff;
  padding: 56px 0 30px;
}
.footer-main {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--linea-oscura);
}
.footer-brand img {
  width: 72px;
}
.footer-claim {
  display: grid;
  flex: 1;
}
.footer-claim strong {
  font-size: 17px;
  font-weight: 600;
}
.footer-claim span {
  color: var(--gris-claro);
  font-size: 14px;
}
.social {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-claro);
}
.social a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--gris-claro);
}
.legal-links {
  display: flex;
  gap: 22px;
}
.legal-links button:hover {
  color: #fff;
}

/* Dialog */
dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  border: 0;
  border-top: 6px solid var(--azul);
  padding: 44px 34px 34px;
  background: #fff;
  color: var(--texto);
}
dialog::backdrop {
  background: rgba(18, 28, 37, 0.7);
}
dialog h2 {
  font-size: 26px;
  margin-bottom: 16px;
}
dialog p {
  color: var(--gris);
  font-size: 15px;
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 30px;
  line-height: 1;
  color: var(--gris);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.principle-list li.reveal:nth-child(2),
.steps li.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.principle-list li.reveal:nth-child(3),
.steps li.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.steps li.reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.steps li.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

/* Tablet */
@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 44px;
  }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  #navigation {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 var(--gutter);
    font-size: 26px;
    font-weight: 600;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s,
      visibility 0.25s;
  }
  #navigation.open {
    opacity: 1;
    visibility: visible;
  }
  #navigation a {
    padding: 12px 0;
    border-bottom: 1px solid var(--linea);
  }
  #navigation a::after {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    aspect-ratio: 1000 / 640;
  }
  .hero-art-logo {
    width: max(29%, 96px);
  }
}

/* Phone */
@media (max-width: 700px) {
  .brand img {
    width: 44px;
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .hero {
    padding-top: 0;
  }
  .hero-art {
    margin: 0 calc(-1 * var(--gutter));
  }
  .frame {
    --frame: 4px;
    padding: 30px 22px;
  }
  .statement-cols,
  .principle-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .tree-branches li::after {
    width: 16px;
    height: 16px;
  }
  .tree-caption span,
  .tree-caption strong {
    display: block;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding-left: 6px;
  }
  .steps li {
    padding: 0 0 30px 32px;
  }
  .steps li::before {
    left: 5px;
    right: auto;
    top: 6px;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .steps li:last-child::before {
    display: none;
  }
  .steps li::after {
    top: 0;
  }
  .footer-main {
    flex-wrap: wrap;
  }
  .footer-claim {
    flex: 1 1 60%;
  }
  .social {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
