/* Letra Inter Tight servida desde la propia web (licencia SIL Open Font) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:      #0b0c0b;   /* negro con un punto de verde */
  --card:    #131513;
  --card-2:  #181b18;
  --ink:     #f2f0ea;
  --ink-2:   rgba(242, 240, 234, .72);
  --mute:    rgba(242, 240, 234, .5);
  --line:    rgba(242, 240, 234, .09);
  --accent:  #8fa77f;   /* verde salvia/militar sobre oscuro */
  --accent-d:#4a6340;   /* verde militar */

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2rem);
  --col: 820px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 99; padding: .6rem 1rem; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 1rem; }

/* ---- Huecos de foto ---- */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 200px;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 30% 25%, #2a2e29, transparent 70%),
    linear-gradient(160deg, #1f221f, #121412);
}
.ph span, .ph-label {
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(242, 240, 234, .45);
  padding: .5rem .85rem; border: 1px dashed rgba(242, 240, 234, .22); border-radius: 999px; text-align: center;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.15rem; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-size: .88rem; font-weight: 700;
  transition: background .3s, color .3s, transform .4s var(--ease-out), box-shadow .3s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(242, 240, 234, .25); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* =============================================================
   3. Menú
   ============================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s; }
.nav.is-scrolled { background: rgba(11, 12, 11, .82); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(11, 12, 11, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}
.nav-inner {
  display: flex; justify-content: center; align-items: center; gap: clamp(1.2rem, 4.5vw, 4rem);
  padding: 1.15rem var(--gutter);
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.nav-side { display: none; color: var(--ink-2); transition: color .3s; }
.nav-side:hover { color: var(--ink); }
.nav-brand { font-weight: 500; letter-spacing: .32em; font-size: .78rem; }

/* =============================================================
   4. Portada
   ============================================================= */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  height: 100vh; height: 100svh; min-height: 560px;
  display: grid; place-items: center;
}
.hero-photo {
  position: absolute; inset: -5% 0 0; z-index: -2;
  display: grid; place-items: start end; padding: 22vh var(--gutter);
  background:
    radial-gradient(60% 50% at 50% 20%, #3b4238, transparent 70%),
    radial-gradient(80% 60% at 50% 110%, #1c201b, transparent 70%),
    linear-gradient(180deg, #2b302a 0%, #161915 60%, #0b0c0b 100%);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 12, 11, .45) 0%, rgba(11, 12, 11, .1) 30%, rgba(11, 12, 11, .45) 62%, var(--bg) 100%); }
.hero-name {
  font-weight: 300; letter-spacing: .04em; text-align: center; line-height: .95;
  font-size: clamp(2.6rem, 10vw, 8.6rem);
  padding-inline: var(--gutter); margin-top: 8vh;
}
.hero-name > span[aria-hidden] {
  display: inline-block;
  color: rgba(242, 240, 234, .94);
  text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.hero-down {
  position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0;
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-2);
  animation: bob 2.4s ease-in-out infinite;
}
.hero-down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================
   5. Cifras
   ============================================================= */
.figures { max-width: 980px; margin: 0 auto; padding: clamp(4rem, 9vw, 6rem) var(--gutter) clamp(3.5rem, 8vw, 5rem); text-align: center; }
.overline { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 2.4rem; }
.figures-row { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
.figures-row strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures-row li > span { display: block; margin: .6rem auto 0; max-width: 15rem; font-size: .84rem; line-height: 1.5; color: var(--mute); }

/* =============================================================
   6. Fichas
   ============================================================= */
.cards, .block { max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem;
  padding: 1rem 1rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.card-media { overflow: hidden; border-radius: 12px; background: #1a1d1a; }
/* En el móvil cada foto se ve con su forma real (sin recortes) */
.card-media img { width: 100%; height: auto; max-height: 80svh; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding-inline: .4rem; align-self: center; }
.card-body h2, .card-body h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: .8rem; }
.card-body p { color: var(--ink-2); font-size: .94rem; margin-bottom: .8rem; }
.card-body .btn { margin-top: .6rem; }

.divider { width: 1px; height: clamp(70px, 12vw, 120px); margin: clamp(2.5rem, 6vw, 4rem) auto; background: linear-gradient(180deg, transparent, rgba(242, 240, 234, .35), transparent); }
.block-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .4rem; }

/* EVOLVE */
.evolve-mark {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px;
  background: radial-gradient(80% 80% at 30% 20%, #5e7a52, transparent 70%), linear-gradient(150deg, #4a6340, #1f2b21);
}
.evolve-mark span { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: .08em; color: var(--ink); }

/* Contacto */
.card--contact { padding: clamp(1.8rem, 5vw, 3rem); text-align: center; justify-items: center; gap: 1rem; }
.contact-intro { color: var(--ink-2); }
.contact-mail {
  font-size: clamp(1.5rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; word-break: break-word;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
}
.contact-mail:hover { background-size: 100% 2px; color: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .8rem; }

/* =============================================================
   7. Pie
   ============================================================= */
.footer {
  margin-top: clamp(4rem, 9vw, 6rem); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  padding: 1.8rem var(--gutter) 2rem;
}
.footer-name { font-weight: 500; letter-spacing: .3em; font-size: .95rem; margin-bottom: .5rem; }
.footer-legal { font-size: .74rem; color: var(--mute); }
.footer-social { display: flex; gap: 1rem; }
.footer-social svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; transition: stroke .3s; }
.footer-social .f { fill: var(--ink-2); stroke: none; transition: fill .3s; }
.footer-social a:hover svg { stroke: var(--accent); }
.footer-social a:hover .f { fill: var(--accent); }

/* =============================================================
   8. Animaciones
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js:not(.is-ready) [data-reveal] { animation: revealSafety .01s 3s forwards; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.js [data-hero] { animation: heroIn 1.6s var(--ease-out) both .15s; }
@keyframes heroIn { from { opacity: 0; letter-spacing: .12em; } to { opacity: 1; letter-spacing: .04em; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .card { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); padding: 1.4rem; gap: 1.8rem; }
  .card { align-items: stretch; }
  .card-media, .evolve-mark { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .card-media { contain: size; }
  .card-media img { height: 100%; max-height: none; }
  .figures-row { grid-template-columns: repeat(4, 1fr); }
  .card--contact { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .nav-side { display: inline; }
}
@media (max-width: 539px) {
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-down { animation: none; }
}

/* Ficha de EVOLVE: foto grande arriba, texto debajo */
@media (min-width: 720px) {
  .card--evolve { grid-template-columns: minmax(0, 1fr); padding: 1.4rem 1.4rem 2rem; }
  .card--evolve .card-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .card--evolve .card-body { padding-inline: 1rem; }
}

/* Ficha con dos fotos (Trayectoria) */
.card-media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: none; }
.card-media--duo img { height: 100%; min-height: 0; border-radius: 0; }
@media (min-width: 720px) {
  .card-media--duo { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); contain: size; min-height: 320px; }
}
@media (min-width: 720px) {
  .card--evolve .card-media { contain: none; }
}

/* Móvil: el nombre del menú no compite con el de la portada */
@media (max-width: 959px) {
  .nav { pointer-events: none; }
  .nav.past-hero { pointer-events: auto; }
  .nav-brand { opacity: 0; transition: opacity .4s; }
  .nav.past-hero .nav-brand { opacity: 1; }
  .nav.is-scrolled:not(.past-hero) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =============================================================
   Redes: tarjetas con foto (Instagram / YouTube)
   ============================================================= */
.social-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.social-card {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.social-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  transition: transform 1.2s var(--ease-out), filter .6s;
  filter: saturate(.9);
}
.social-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 12, 11, .15) 0%, rgba(11, 12, 11, 0) 35%, rgba(11, 12, 11, .55) 62%, rgba(11, 12, 11, .95) 100%);
}
.social-info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.2rem, 4vw, 1.8rem); display: grid; gap: .35rem; }
.social-top { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem; }
.social-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.social-top .f { fill: currentColor; stroke: none; }
.social-handle { font-size: clamp(1.7rem, 4.6vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.social-desc { color: var(--ink-2); font-size: .92rem; line-height: 1.5; max-width: 22rem; }
.social-foot {
  display: flex; align-items: center; gap: .35rem; margin-top: .7rem; padding-top: .8rem;
  border-top: 1px solid rgba(242, 240, 234, .15); font-size: .86rem; color: var(--ink-2);
}
.social-foot strong { color: var(--ink); font-weight: 800; }
.social-arrow {
  margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(242, 240, 234, .1); color: var(--ink); font-size: 1rem;
  transition: background .3s, color .3s, transform .5s var(--ease-out);
}
.social-card:hover img { transform: scale(1.05); filter: saturate(1); }
.social-card:hover .social-arrow { background: var(--accent); color: var(--bg); transform: rotate(45deg); }
@media (min-width: 720px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
}
/* Redes: foto arriba y texto debajo (para que no tape la foto) */
.social-card { aspect-ratio: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--card-2), var(--card)); }
.social-card img { position: relative; inset: auto; z-index: 0; aspect-ratio: 1 / 1; height: auto; }
.social-card .img-wrap { overflow: hidden; }
.social-card::after { display: none; }
.social-info { position: static; }
/* Redes: 3 tarjetas */
#redes { max-width: 1080px; }
.social-handle { overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-handle { font-size: 1.6rem; }
}
/* Portada: en móvil foto vertical encuadrada a la cara */
@media (max-width: 719px) {
  .hero-photo img { object-position: 50% 18%; }
}
/* Móvil: la foto de Primeros años menos alta, centrada en la cara */
@media (max-width: 719px) {
  #primeros-anos .card-media img { aspect-ratio: 4 / 5; }
}
/* Portada en móvil: vídeo en bucle (peso muerto) */
.hero-video { display: none; }
@media (max-width: 719px) {
  .hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
}

/* Vídeo dentro de una ficha (Rendimiento) */
.card-media video { display: block; width: 100%; height: auto; max-height: 80svh; object-fit: cover; }
@media (min-width: 720px) {
  .card-media video { height: 100%; max-height: none; aspect-ratio: auto !important; }
}

/* Redes: tarjetas más compactas */
.social-grid { gap: .9rem; }
.social-info { padding: 1rem 1.1rem 1.1rem; gap: .25rem; }
.social-top { font-size: .64rem; margin-bottom: 0; }
.social-top svg { width: 15px; height: 15px; }
.social-handle { font-size: 1.3rem; }
.social-desc { font-size: .84rem; line-height: 1.45; }
.social-foot { margin-top: .45rem; padding-top: .6rem; font-size: .8rem; }
.social-arrow { width: 28px; height: 28px; font-size: .85rem; }
/* Móvil: foto pequeña a la izquierda y texto a la derecha */
@media (max-width: 719px) {
  .social-card { flex-direction: row; align-items: stretch; }
  .social-card img { width: 34%; flex: none; aspect-ratio: auto; height: auto; min-height: 100%; }
  .social-info { flex: 1; min-width: 0; padding: .85rem .95rem; }
  .social-handle { font-size: 1.12rem; }
  .social-desc { font-size: .8rem; }
}
/* Ordenador: foto apaisada, no cuadrada */
@media (min-width: 720px) {
  .social-card img { aspect-ratio: 16 / 10; }
  .social-handle { font-size: 1.3rem; }
}

/* =============================================================
   Portada: nombre con letra clásica elegante
   ============================================================= */
.hero-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500; letter-spacing: .03em; line-height: .9;
  font-size: clamp(3.4rem, 10.5vw, 9.4rem);
}
.hero-name > span[aria-hidden] { color: rgba(242, 240, 234, .93); text-shadow: 0 8px 40px rgba(0, 0, 0, .45); }
.nav-brand { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 600; font-size: .98rem; letter-spacing: .26em; }

/* Menú móvil: nombre pequeño a la izquierda y botón a la derecha */
.nav-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 959px) {
  .nav { pointer-events: auto; }
  .nav-inner { justify-content: flex-start; padding: 1.1rem 4.2rem 1.1rem var(--gutter); }
  .nav-brand { opacity: 1 !important; font-size: .92rem; letter-spacing: .24em; }
  .nav-toggle {
    display: grid; place-content: center; gap: 7px;
    position: absolute; right: calc(var(--gutter) - .4rem); top: 50%; translate: 0 -50%;
    width: 44px; height: 44px; z-index: 60;
  }
  .nav-toggle .bar { display: block; width: 26px; height: 1.6px; background: var(--ink); transition: transform .45s var(--ease-out); }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4.3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4.3px) rotate(-45deg); }
  .mobile-menu {
    display: flex; position: fixed; inset: 0; z-index: 45;
    background: rgba(11, 12, 11, .97);
    padding: 6.5rem var(--gutter) 2rem;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }
  .mobile-menu nav { display: flex; flex-direction: column; width: 100%; }
  .mobile-menu a {
    font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 500;
    font-size: 2.1rem; line-height: 1.2; padding: .55rem 0;
    border-bottom: 1px solid var(--line); color: var(--ink);
  }
}
.nav-toggle { background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; color: inherit; }
.hero-name { font-size: clamp(2.4rem, 11vw, 9.4rem); }
@media (max-width: 959px) {
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(4.3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-4.3px) rotate(-45deg); }
}

/* =============================================================
   Portada v3: letra Marcellus + degradado de color, tamaños contenidos
   ============================================================= */
.hero-name {
  font-family: "Marcellus", "Times New Roman", serif;
  font-weight: 400; letter-spacing: .08em; line-height: .98;
  font-size: clamp(2.1rem, 8.6vw, 6.2rem);
}
.hero-name > span[aria-hidden] {
  display: inline-block;
  background: linear-gradient(180deg, #f4efe6 0%, #ddd5c6 38%, #9aa792 72%, #5c6b55 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45));
}
@keyframes heroIn { from { opacity: 0; letter-spacing: .16em; } to { opacity: 1; letter-spacing: .08em; } }
.nav-brand { font-family: "Marcellus", "Times New Roman", serif; font-weight: 400; font-size: .74rem; letter-spacing: .28em; }

@media (max-width: 959px) {
  .nav-brand { font-size: .66rem; letter-spacing: .26em; }
  .nav-toggle .bar { width: 22px; }
  /* Menú desplegable compacto (no a pantalla completa) */
  .mobile-menu { inset: 0 0 auto 0; padding: 4.2rem var(--gutter) 1.2rem; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
  .mobile-menu a { font-family: "Marcellus", "Times New Roman", serif; font-size: 1.05rem; letter-spacing: .06em; padding: .7rem 0; }
  .mobile-menu a:last-child { border-bottom: 0; }
}

/* Portada móvil: la imagen de espera es un fotograma del vídeo, y el vídeo aparece con fundido */
@media (max-width: 719px) {
  .hero-photo img { object-position: 50% 30%; }
  .hero-video { opacity: 0; transition: opacity .8s ease; }
  .hero-video.is-playing { opacity: 1; }
}

/* Logo y menú con la misma letra que el resto de la web */
.nav-brand { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .3em; }
@media (max-width: 959px) {
  .nav-brand { font-size: .64rem; letter-spacing: .28em; }
  .mobile-menu a { font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0; }
}

/* =============================================================
   Portada v4: nombre con la letra de la web, gruesa, en una línea
   ============================================================= */
.hero-name {
  font-family: var(--sans); font-weight: 800;
  letter-spacing: -.02em; line-height: 1; white-space: nowrap;
  font-size: clamp(1.55rem, 7.4vw, 5.2rem);
}
@keyframes heroIn { from { opacity: 0; letter-spacing: .06em; } to { opacity: 1; letter-spacing: -.02em; } }

/* Móvil: foto de Sobre Emanuel menos alta, recortada por arriba */
@media (max-width: 719px) {
  #sobre .card-media img { aspect-ratio: 4 / 5; object-position: 50% 55% !important; }
}

/* Contacto: frase en una sola línea */
.contact-intro { font-size: clamp(.7rem, 3.4vw, .98rem); white-space: nowrap; letter-spacing: -.005em; }
@media (max-width: 719px) {
  .card--contact { padding: 1.6rem 1rem; }
}

/* Redes: más aire entre el @ y el texto */
.social-handle { margin-bottom: .4rem; }
.social-desc { line-height: 1.55; }
.social-top { margin-bottom: .35rem; }

/* Pie: en móvil, "Fundador del programa EVOLVE" en su propia línea, sin cortarse */
.footer-role { white-space: nowrap; }
@media (max-width: 719px) {
  .footer-sep { display: none; }
  .footer-role { display: block; margin-top: .2rem; }
}

/* Contacto: frase y correo juntos y equilibrados */
.card--contact { gap: .45rem; padding-block: clamp(1.5rem, 4vw, 2.4rem); }
.contact-intro { line-height: 1.4; }
.contact-mail { font-size: clamp(1.4rem, 6.2vw, 2.3rem); line-height: 1.15; }

/* =============================================================
   Tipografía final: Inter Tight en toda la web
   + una palabra en verde en los títulos (mismo grosor)
   ============================================================= */
:root { --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { font-family: var(--sans); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; }
.block-title { font-weight: 600; letter-spacing: -.05em; }
.card-body h2, .card-body h3 { font-weight: 600; letter-spacing: -.045em; }
.figures-row strong { font-weight: 700; letter-spacing: -.05em; }
.social-handle { font-weight: 700; letter-spacing: -.04em; }
.contact-mail { font-weight: 600; letter-spacing: -.04em; }
.hero-name { font-weight: 700; letter-spacing: -.035em; }
@keyframes heroIn { from { opacity: 0; letter-spacing: .05em; } to { opacity: 1; letter-spacing: -.035em; } }
.hl { color: #b4cf8f; }

/* =============================================================
   Portada v5: titular + presentación + enlace (abajo a la izquierda)
   ============================================================= */
.hero { place-items: end start; }
.hero-shade { background: linear-gradient(180deg, rgba(11, 12, 11, .5) 0%, rgba(11, 12, 11, .05) 28%, rgba(11, 12, 11, .35) 55%, rgba(11, 12, 11, .9) 82%, var(--bg) 100%); }
.hero-text {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.2rem, 7vh, 4.5rem);
}
.hero-text h1 { display: grid; gap: .8rem; font-weight: 700; }
.hero-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(242, 240, 234, .75);
}
.hero-head {
  font-size: clamp(2.6rem, 12vw, 6.4rem); line-height: .98; letter-spacing: -.045em;
  color: #f2f0ea; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); max-width: 12ch;
}
.hero-lead { margin-top: 1rem; font-size: clamp(.95rem, 4vw, 1.15rem); line-height: 1.45; color: rgba(242, 240, 234, .82); max-width: 32ch; }
.hero-cta {
  display: inline-flex; gap: .5rem; margin-top: 1.2rem; font-size: .9rem; font-weight: 600;
  color: #f2f0ea; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid rgba(242, 240, 234, .5);
  transition: border-color .3s ease, color .3s ease;
}
.hero-cta:hover { color: #b4cf8f; border-color: #b4cf8f; }
.js .hero-text > * { animation: heroUp 1.1s var(--ease-out) both; }
.js .hero-text > p { animation-delay: .25s; }
.js .hero-text > a { animation-delay: .4s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hero-text > * { animation: none; } }

/* =============================================================
   Portada en ordenador: texto a la izquierda y vídeo a toda la altura
   a la derecha, pegado al borde y fundido con el fondo (sin recuadro)
   ============================================================= */
@media (min-width: 900px) {
  .hero {
    height: 100vh; height: 100svh; min-height: 620px;
    grid-template-columns: minmax(0, 1fr); place-items: center start;
    padding: 110px max(var(--gutter), calc((100% - 1320px) / 2)) 70px;
  }
  .hero-shade { display: none; }
  .hero-photo {
    inset: 0 0 0 auto; width: 54vw; padding: 0; background: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%), linear-gradient(180deg, #000 80%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 24%), linear-gradient(180deg, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero-photo img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
  .hero-video { display: block; opacity: 0; transition: opacity .8s ease; }
  .hero-video.is-playing { opacity: 1; }
  .hero-text { width: 50%; padding: 0; margin: 0; max-width: none; }
  .hero-head { font-size: clamp(3.4rem, 6.2vw, 6.6rem); max-width: 9ch; }
  .hero-lead { font-size: 1.2rem; max-width: 30ch; margin-top: 1.6rem; }
}

/* Móvil: sin el nombre pequeño sobre el titular (sigue en el código para Google)
   y el vídeo más arriba para que el texto no lo tape */
@media (max-width: 719px) {
  .hero-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-photo { inset: 0; }
  .hero-photo img, .hero-video {
    inset: 0 0 auto; height: 80%; object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
}

/* "Conoce su historia" más discreto */
.hero-cta { font-size: .8rem; font-weight: 500; color: rgba(242, 240, 234, .72); border-bottom-color: rgba(242, 240, 234, .28); margin-top: 1rem; }
@media (min-width: 900px) { .hero-cta { font-size: .9rem; margin-top: 1.6rem; } }

/* Móvil: mismo aire encima y debajo de las cifras */
@media (max-width: 719px) {
  .figures { padding-top: 1rem; padding-bottom: 4.5rem; }
}

/* Ordenador: fotos de redes en vertical para que no se recorten */
@media (min-width: 720px) {
  .social-card img { aspect-ratio: 4 / 5; }
}

/* =============================================================
   Redes v2: fichas tipo perfil (se reconoce la red de un vistazo)
   Icono y color de cada red, foto redonda como avatar y botón propio
   ============================================================= */
.social-card--ig { --brand: linear-gradient(45deg, #f9b233 0%, #f0652f 28%, #dc2743 52%, #c9247a 76%, #7a3bd1 100%); }
.social-card--yt { --brand: #ff0033; }
.social-grid .social-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 1rem;
  padding: 1.2rem 1.15rem 1.2rem; aspect-ratio: auto; overflow: hidden;
}
.social-grid .social-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand); }
.social-grid .social-top {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font-size: 1rem; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink);
}
.social-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); }
.social-grid .social-icon svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.9; }
.social-grid .social-icon .f { fill: #fff; stroke: none; }
.social-grid .social-top .social-icon--yt { flex: none; width: 38px; height: 27px; stroke: none; }
.social-grid .social-arrow { margin-left: auto; font-weight: 400; }
.social-id { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.social-avatar { flex: none; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: var(--brand); }
.social-card--yt .social-avatar { padding: 0; background: none; }
.social-card .social-avatar img {
  position: static; display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1 / 1; flex: none;
  border-radius: 50%; object-fit: cover; border: 3px solid var(--card-2); filter: none; transform: none;
}
.social-card--yt .social-avatar img { border: 0; }
.social-id-text { display: grid; gap: .15rem; min-width: 0; }
.social-grid .social-handle { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.social-stat { font-size: .84rem; color: var(--ink-2); }
.social-stat strong { font-weight: 700; }
.social-grid .social-desc { max-width: none; font-size: .88rem; line-height: 1.5; }
/* Botón con el estilo de la web (el color de cada red se queda en el icono, el aro y la línea superior) */
.social-cta {
  display: flex; justify-content: center; align-items: center; padding: .72rem 1rem; border-radius: 10px;
  background: rgba(242, 240, 234, .06); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(242, 240, 234, .16);
  font-size: .88rem; font-weight: 600;
  transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.social-card:hover .social-cta { background: var(--ink); color: var(--bg); box-shadow: none; transform: translateY(-1px); }
@media (min-width: 720px) {
  .social-grid .social-card { grid-template-rows: auto auto 1fr auto; height: 100%; }
}

/* El nombre sobre el titular ya no se ve tampoco en ordenador (sigue ahí para Google y lectores de pantalla) */
.hero-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
