/* Landing page (home). Copied from legacy/landing/assets/styles/main.css. */

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 0 70px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(212,166,74,.14), transparent 60%),
    radial-gradient(ellipse 70% 70% at 0% 100%, rgba(37,58,97,.7), transparent 60%),
    var(--navy-950);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  opacity: .5;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 5.2rem); font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 span { display: block; color: var(--gold); }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.id-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(212,166,74,.25);
  border-radius: 22px; padding: 30px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.id-card::before {
  content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.id-top { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.shield { width: 62px; height: 70px; flex-shrink: 0; }
.id-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.id-role { font-size: .85rem; color: var(--gold); font-weight: 600; margin-top: 4px; }
.id-list { list-style: none; display: grid; gap: 14px; }
.id-list li { display: flex; gap: 12px; font-size: .92rem; color: var(--text-muted); }
.id-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.id-list strong { color: var(--text); font-weight: 600; }

/* Foto principal */
.hero-photo { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid rgba(212,166,74,.45); border-radius: 22px; z-index: -1;
}
.photo-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 22px;
  border: 1px solid rgba(212,166,74,.3);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 22px 20px;
  background: linear-gradient(to top, rgba(7,13,24,.95) 20%, transparent);
}
.photo-plate .id-name { font-size: 1.5rem; }
.float-badge {
  position: absolute; top: 22px; right: -14px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--navy-800); border: 1px solid rgba(212,166,74,.4);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.7);
  font-size: .82rem; line-height: 1.25;
}
.float-badge strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--gold); }
.float-badge svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding-top: 104px; }
  .hero-photo { max-width: 400px; }
}
@media (max-width: 480px) {
  .hero-photo { max-width: calc(100% - 18px); justify-self: start; }
  .float-badge { right: -8px; top: 14px; padding: 8px 12px; }
}
@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Cifras ---------- */
.stats { background: var(--navy-800); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Sobre mí */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.04rem; }
.about-text p strong { color: var(--text); }
.quote {
  position: relative;
  padding: 30px 30px 30px 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,166,74,.1), rgba(212,166,74,.02));
  border-left: 3px solid var(--gold);
  font-family: var(--font-head); font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 600; line-height: 1.25;
}
.quote cite { display: block; margin-top: 16px; font-family: var(--font-body); font-style: normal; font-size: .85rem; color: var(--gold); font-weight: 500; }
.about-text .quote { margin-top: 30px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Trayectoria */
.trayectoria { background: var(--navy-950); }
.timeline { position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--navy-600)); }
.tl-item { position: relative; padding-left: 52px; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-950); border: 3px solid var(--gold);
}
.tl-item.current::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(212,166,74,.2); }
.tl-year { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.tl-card { margin-top: 10px; padding: 20px 22px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line); }
.tl-card h3 { margin-bottom: 6px; }
.tl-card p { color: var(--text-muted); font-size: .95rem; }
.tl-tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: rgba(212,166,74,.14); color: var(--gold-light); }

/* Galería */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  grid-template-areas: "a b b" "a c d";
}
.g-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--navy-800);
  cursor: zoom-in; padding: 0; font: inherit; color: inherit; text-align: left;
}
.g-item:nth-child(1) { grid-area: a; }
.g-item:nth-child(2) { grid-area: b; }
.g-item:nth-child(3) { grid-area: c; }
.g-item:nth-child(4) { grid-area: d; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(to top, rgba(7,13,24,.92), transparent);
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: .02em;
}
.g-cap small { display: block; font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 220px;
    grid-template-areas: "a c" "a d" "b b";
    gap: 10px;
  }
  .g-cap { padding: 36px 12px 12px; font-size: 1rem; }
  .g-cap small { font-size: .65rem; }
}

/* Lightbox */
.lightbox {
  border: none; padding: 0; background: transparent;
  max-width: min(92vw, 1100px); max-height: 90vh; margin: auto;
}
.lightbox::backdrop { background: rgba(3,6,12,.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; margin: 0 auto; }
.lightbox p { text-align: center; color: var(--text); font-family: var(--font-head); font-size: 1.2rem; margin-top: 12px; }
.lb-close {
  position: fixed; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(7,13,24,.7); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* Pilares / valores */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Docencia */
.docencia { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-item { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.doc-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.doc-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.doc-item p { color: var(--text-muted); font-size: .93rem; }
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } }

/* Método */
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 26px 28px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line); overflow: hidden; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -8px; right: 14px;
  font-family: var(--font-head); font-size: 5.5rem; font-weight: 800; color: rgba(212,166,74,.08); line-height: 1;
}
.step h3 { margin-bottom: 10px; position: relative; }
.step p { color: var(--text-muted); font-size: .95rem; position: relative; }
@media (max-width: 900px) { .method-steps { grid-template-columns: 1fr; } }

/* CTA */
.cta { padding: 0 0 100px; }
.cta-box {
  position: relative; overflow: hidden;
  padding: 64px 40px; border-radius: 24px; text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(212,166,74,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-950));
  border: 1px solid rgba(212,166,74,.3);
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box .lead { margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 520px) { .cta-box { padding: 48px 22px; } .cta-actions .btn { width: 100%; } }

/* Barra fija en móvil */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; transform: translateY(140%); transition: transform .35s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Former inline styles of the legacy landing (kept out of the HTML for a future CSP). */
.about-text .lead-in { margin-top: 22px; }
.g-item--1 img { object-position: 65% 30%; }
.g-item--2 img { object-position: 40% 20%; }
.g-item--3 img { object-position: 62% 40%; }
.g-item--4 img { object-position: 35% 40%; }
