/* IdeasFab · paleta amarilla #FFCC00 (la del logo) con escala de blancos y negros */
:root {
  --yellow: #ffcc00;
  --yellow-soft: #fff0b3;
  --yellow-deep: #e6b800;
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --graphite: #2b2b2b;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #cfcfcf;
  --gray-100: #eeeeee;
  --off-white: #f7f7f5;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 20px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); padding: 8px 14px; border-radius: var(--radius); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 16px;
  padding: 14px 22px; border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  border: 0; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-dark { background: var(--black); color: var(--white); border-radius: 999px; }
.btn-dark:hover { background: var(--graphite); }
.btn-outline { border: 1px solid var(--gray-300); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--black); }

/* Cabecera flotante */
.header { position: sticky; top: 16px; z-index: 50; padding: 0 24px; }
.nav {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border: 1px solid var(--gray-100); border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .04);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--black); color: var(--yellow);
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; padding: 6px 14px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover { background: var(--off-white); }
.nav-links a[aria-current="page"] { background: var(--yellow); }
.nav .btn-dark { padding: 12px 20px; font-size: 15px; }
.menu-toggle { display: none; background: var(--off-white); border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--black); margin: 4px auto; }

/* Hero */
.hero { padding: 90px 0 0; text-align: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); max-width: 960px; margin: 0 auto; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 4px; }
.hero p.lead { max-width: 660px; margin: 26px auto 0; color: var(--gray-700); font-size: 18px; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 14px; color: var(--gray-700); }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--black); line-height: 1; }
.dots { display: flex; }
.dots img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--white); margin-left: -10px; object-fit: cover; }
.dots img:first-child { margin-left: 0; }

.hero-media { position: relative; margin: 64px auto 0; max-width: 1340px; padding: 0 24px; }
.hero-media > img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; border-radius: var(--radius-lg); }
.stat-card {
  position: absolute; width: 210px; padding: 24px; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 190px;
  outline: 8px solid var(--white);
}
.stat-card span { font-size: 15px; font-weight: 500; line-height: 1.35; }
.stat-card strong { font-family: var(--font-head); font-size: 52px; font-weight: 500; line-height: 1; }
.stat-card.tl { top: -4px; left: 24px; background: var(--yellow); color: var(--black); border-radius: var(--radius-lg) 16px 16px 16px; }
.stat-card.br { bottom: -4px; right: 24px; background: var(--black); color: var(--white); border-radius: 16px 16px var(--radius-lg) 16px; }
.stat-card.br strong { color: var(--yellow); }

/* Secciones */
section { padding: 120px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-700);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); outline: 1px solid var(--black); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); max-width: 760px; margin-top: 14px; }
.section-head p { color: var(--gray-700); margin-top: 12px; }
.muted { color: var(--gray-500); }

/* Historia */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 14px 0 28px; }
.about-grid h3 { font-size: 24px; margin-bottom: 14px; }
.about-grid p { color: var(--gray-700); margin-bottom: 32px; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about-tag {
  position: absolute; left: -28px; bottom: 32px; background: var(--white); border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12); display: flex; gap: 14px; align-items: center;
}
.about-tag strong { font-family: var(--font-head); font-size: 40px; line-height: 1; }
.about-tag span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-700); line-height: 1.3; }
.keypoints { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.keypoints li { list-style: none; display: flex; gap: 10px; align-items: center; font-family: var(--font-head); font-weight: 500; }
.keypoints li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Números */
.numbers { background: var(--black); color: var(--white); border-radius: 28px; margin: 0 24px; padding: 100px 0; }
.numbers .eyebrow { color: var(--gray-300); }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; }
.number { padding: 12px 36px; border-left: 1px solid rgba(255,255,255,.14); }
.number:first-child { border-left: 0; padding-left: 0; }
.number strong { display: block; font-family: var(--font-head); font-size: clamp(64px, 8vw, 110px); font-weight: 500; line-height: 1; color: var(--yellow); }
.number span { display: block; margin-top: 16px; color: var(--gray-300); font-size: 17px; }
.numbers h2 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 14px; max-width: 700px; }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: transform .3s ease, box-shadow .3s ease; }
.project:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.project-img { overflow: hidden; aspect-ratio: 4/3; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 28px; }
.project-num { display: inline-block; font-family: var(--font-head); font-size: 14px; font-weight: 600; background: var(--yellow); padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; }
.project h3 { font-size: 26px; margin-bottom: 10px; }
.project p { color: var(--gray-700); font-size: 16px; }

/* Servicios */
.services-section { background: var(--off-white); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-100); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; }
.service { background: var(--white); padding: 40px 34px; position: relative; transition: background .3s ease, color .3s ease; }
.service:hover { background: var(--black); color: var(--white); }
.service:hover p { color: var(--gray-300); }
.service:hover .service-icon { background: var(--yellow); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--yellow-soft); display: grid; place-items: center; margin-bottom: 28px; transition: background .3s; }
.service-icon svg { width: 26px; height: 26px; stroke: var(--black); }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--gray-700); font-size: 16px; transition: color .3s; }

/* Testimonios */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.testimonial.featured { background: var(--yellow); border-color: var(--yellow); }
.quote-mark { font-family: var(--font-head); font-size: 64px; line-height: .6; height: 28px; }
.testimonial blockquote { font-family: var(--font-head); font-size: 21px; line-height: 1.4; letter-spacing: -0.01em; }
.author { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.1); }
.author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; font-family: var(--font-head); font-size: 17px; }
.author span { font-size: 14px; color: var(--gray-700); }

/* Llamada final */
.cta { padding: 0 0 120px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--black); color: var(--white);
  display: grid; grid-template-columns: 1.2fr 1fr; min-height: 420px;
}
.cta-text { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; z-index: 1; }
.cta-text h2 { font-size: clamp(34px, 4vw, 54px); }
.cta-text h2 em { font-style: normal; color: var(--yellow); }
.cta-text p { color: var(--gray-300); max-width: 480px; }
.cta-text .btn { align-self: flex-start; }
.cta-img { position: relative; }
.cta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.cta-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black), transparent 45%); }

/* Página interior */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); }
.page-hero p { color: var(--gray-700); max-width: 620px; margin: 20px auto 0; font-size: 18px; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: 14px; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--black); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; }
.contact-info { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; display: flex; flex-direction: column; gap: 28px; }
.contact-info h2 { font-size: 36px; }
.contact-info > p { color: var(--gray-300); }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.info-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; }
.info-icon svg { width: 22px; height: 22px; stroke: var(--black); }
.info-item span { display: block; font-size: 14px; color: var(--gray-300); }
.info-item a, .info-item strong { font-family: var(--font-head); font-size: 19px; font-weight: 500; }
.info-item a:hover { color: var(--yellow); }

.form { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 48px 40px; }
.form h3 { font-size: 28px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--gray-100); border-radius: var(--radius);
  background: var(--off-white); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }

/* Pie */
.footer { background: var(--black); color: var(--gray-300); padding: 80px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .logo { color: var(--white); }
.footer .logo-mark { background: var(--yellow); color: var(--black); }
.footer p { margin-top: 18px; max-width: 360px; }
.footer h4 { color: var(--white); font-size: 18px; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 14px; flex-wrap: wrap; }
.big-word { font-family: var(--font-head); font-weight: 600; font-size: clamp(80px, 19vw, 290px); line-height: .8; letter-spacing: -0.05em; color: var(--graphite); text-align: center; margin-top: 56px; user-select: none; }
.big-word span { color: var(--yellow); }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .projects, .testimonials { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-tag { left: 16px; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-img { min-height: 260px; order: -1; }
  .cta-img::after { background: linear-gradient(0deg, var(--black), transparent 60%); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 24px; right: 24px;
    flex-direction: column; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .nav .btn-dark { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header { padding: 0 16px; }
  .container { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero { padding-top: 60px; }
  .hero-media { padding: 0 16px; }
  .stat-card { position: static; width: auto; min-height: 0; outline: 0; margin-top: 12px; flex-direction: row; align-items: center; border-radius: 16px !important; }
  .stat-card strong { font-size: 40px; }
  .projects, .testimonials, .services, .numbers-grid, .form-row, .keypoints { grid-template-columns: 1fr; }
  .numbers { margin: 0 12px; padding: 72px 0; }
  .number { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 28px 0; }
  .number:first-child { border-top: 0; }
  .cta-text { padding: 44px 28px; }
  .form, .contact-info { padding: 36px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Crafted Stories */
.badge-done { display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--white); font-size: 14px; font-weight: 600; padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 26px; }
.badge-done::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.story { max-width: 820px; margin: 0 auto; text-align: center; }
.story h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 14px 0 32px; }
.story p { font-size: 20px; color: var(--gray-700); margin-bottom: 20px; }
.story p.big { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); color: var(--black); line-height: 1.3; letter-spacing: -0.01em; }
.story p.big mark { background: var(--yellow); color: inherit; padding: 0 6px; border-radius: 4px; }

.did { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.did-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; color: var(--white); }
.did-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.did-card:hover img { transform: scale(1.05); }
.did-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.88)); }
.did-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; }
.did-body .project-num { color: var(--black); }
.did-body h3 { font-size: 24px; margin-bottom: 8px; }
.did-body p { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.5; }

.numbers-grid.four { grid-template-columns: repeat(4, 1fr); }

.gallery { columns: 4 260px; column-gap: 16px; }
.gallery img { width: 100%; margin-bottom: 16px; border-radius: 14px; break-inside: avoid; }

.quotes { columns: 3 320px; column-gap: 24px; }
.quote { break-inside: avoid; margin-bottom: 24px; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 30px; background: var(--white); }
.quote.featured { background: var(--yellow); border-color: var(--yellow); }
.quote.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.quote.dark .stars { color: var(--yellow); }
.quote.dark .author { border-color: rgba(255,255,255,.14); }
.quote.dark .author span { color: var(--gray-300); }
.stars { letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }
.quote blockquote { font-family: var(--font-head); font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 24px; }
.initials { width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: var(--yellow); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; flex: none; }
.quote.dark .initials { background: var(--yellow); color: var(--black); }
.quote.featured .initials { background: var(--black); color: var(--yellow); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fact-box { border-radius: var(--radius-lg); padding: 44px 40px; }
.fact-box.light { background: var(--off-white); }
.fact-box.yellow { background: var(--yellow); }
.fact-box h3 { font-size: 28px; margin-bottom: 20px; }
.fact-box ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.fact-box li { display: flex; gap: 12px; align-items: flex-start; }
.fact-box li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px; background: var(--black); }
.fact-box a { text-decoration: underline; text-underline-offset: 3px; }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: border-color .2s; }
.partner:hover { border-color: var(--black); }
.partner img { width: 56px; height: 56px; object-fit: contain; }
.partner strong { font-family: var(--font-head); font-size: 18px; font-weight: 500; line-height: 1.3; }
.partner span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gray-500); }
.partner.host { background: var(--black); color: var(--white); border-color: var(--black); }
.partner.host .logo-mark { background: var(--yellow); color: var(--black); width: 56px; height: 56px; border-radius: 14px; font-size: 30px; }

@media (max-width: 1024px) {
  .did, .partners { grid-template-columns: 1fr 1fr; }
  .numbers-grid.four { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .numbers-grid.four .number:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .did, .partners, .numbers-grid.four { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery img { margin-bottom: 10px; }
  .story p { font-size: 18px; }
  .fact-box { padding: 32px 24px; }
}

/* Logo y submenú */
.logo img { height: 30px; width: auto; display: block; }
.footer .logo img { height: 40px; }
.partner img.partner-logo { width: auto; height: 34px; margin: 11px 0; }
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.chev { width: 14px; height: 14px; transition: transform .2s; }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }
.nav-links a.is-active { background: var(--yellow); }
.submenu {
  list-style: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px);
  min-width: 260px; background: var(--white); border: 1px solid var(--gray-100); border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; }
.submenu a strong { font-family: var(--font-head); font-weight: 500; font-size: 16px; }
.submenu a span { font-size: 13px; color: var(--gray-500); }
.submenu a[aria-current="page"] { background: var(--yellow); }
.submenu a[aria-current="page"] span { color: var(--graphite); }
@media (max-width: 820px) {
  .nav .btn-dark { display: inline-flex; padding: 10px 16px; font-size: 14px; margin-left: auto; }
  .nav .btn-dark svg { display: none; }
  .nav { gap: 10px; }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .has-sub > a .chev { display: none; }
}
@media (max-width: 400px) { .logo img { height: 24px; } }

/* Alineación del menú */
.nav-links { align-items: center; }
.nav-links > li { display: flex; align-items: center; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 4px; line-height: 1.4; }
.submenu a { font-family: var(--font-head); font-weight: 500; font-size: 15px; padding: 10px 14px; }
.submenu { min-width: 190px; }
@media (max-width: 820px) {
  .nav-links { align-items: stretch; }
  .nav-links > li { display: block; }
  .nav-links > li > a { display: flex; }
}

.partners.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) { .partners.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .partners.five { grid-template-columns: 1fr; } }

/* Listas de las tarjetas de datos: texto y enlaces en la misma línea */
.fact-box li { display: block; position: relative; padding-left: 20px; }
.fact-box li::before { position: absolute; left: 0; top: 0; }

/* Hero de portada con foto de fondo */
.hero-cover {
  position: relative; overflow: hidden; margin: -76px 24px 0; border-radius: 28px;
  min-height: min(88vh, 820px); display: flex; align-items: center; text-align: center; color: var(--white);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,.62) 50%, rgba(13,13,13,.8) 100%);
}
.hero-cover-inner { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 96px; }
.hero-cover h1 { font-size: clamp(42px, 6.4vw, 84px); max-width: 980px; margin: 0 auto; }
.hero-cover h1 mark { background: var(--yellow); color: var(--black); padding: 0 10px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-cover .lead { max-width: 660px; margin: 26px auto 0; color: rgba(255,255,255,.86); font-size: 19px; }
.hero-cover .hero-actions { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 680px) {
  .hero-cover { margin: -76px 12px 0; border-radius: 20px; min-height: 82vh; }
  .hero-cover-inner { padding-top: 120px; padding-bottom: 64px; }
  .hero-cover .lead { font-size: 17px; }
}

/* Hero y sección de números a todo el ancho */
.hero-cover { margin: -92px 0 0; border-radius: 0; }
.hero-cover-inner { padding-top: 160px; }
.numbers { margin: 0; border-radius: 0; }
@media (max-width: 680px) {
  .hero-cover { margin: -92px 0 0; border-radius: 0; }
  .numbers { margin: 0; border-radius: 0; }
}

/* Página 404 */
.notfound .eyebrow { color: rgba(255,255,255,.8); }
.notfound-code { font-family: var(--font-head); font-weight: 600; font-size: clamp(120px, 24vw, 280px); line-height: .85; letter-spacing: -0.05em; margin: 18px 0 28px; }
.notfound-code span { color: var(--yellow); }
.notfound h1 { font-size: clamp(32px, 4.4vw, 56px); }
.notfound-actions { gap: 14px; flex-wrap: wrap; }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
