/* =========================================================/* =========================================================
   Rebeca Molina · Hoja de estilos
   Paleta: azul noche, azul petróleo, dorado champagne,
           gris azulado y marfil
   ========================================================= */

:root {
  --navy: #0B2238;
  --petrol: #24465B;
  --gold: #D2B47F;
  --gold-dark: #B8955A;
  --gold-text: #8C6A2E;
  --mist: #D8E2E5;
  --ivory: #F6F3EC;
  --sand: #F1ECE2;
  --white: #FFFFFF;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  --container: 1320px;
  --gutter: 32px;
  --header-h: 76px;
  --radius: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--ivory);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 96px; padding-bottom: 96px; }

.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--ivory); }
.bg-mist { background: var(--mist); }
.text-gold { color: var(--gold); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Tipografía común ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--petrol);
}
.eyebrow-light { color: var(--mist); }
.eyebrow-line { flex: none; display: inline-block; width: 40px; height: 2px; background: var(--gold); }
.eyebrow-line-dark { background: var(--gold-dark); }

.h2 { font-size: clamp(34px, 5vw, 50px); font-weight: 600; letter-spacing: -0.5px; line-height: 1.15; }
.intro { font-size: 22px; line-height: 1.55; color: var(--petrol); }
.lead { font-size: 24px; line-height: 1.45; font-weight: 500; color: var(--petrol); }
.body { font-size: 20px; line-height: 1.7; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 18px;
  padding: 18px 32px; border-radius: 10px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 34, 56, .18); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--petrol); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-sm { font-size: 16px; padding: 10px 20px; border-radius: 8px; font-weight: 600; }
.link-underline {
  font-weight: 600; font-size: 18px; text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 6px;
}
.link-underline:hover { color: var(--petrol); }

/* ---------- Banner ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--ivory);
  box-shadow: 0 2px 12px rgba(11, 34, 56, .25);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { font-size: 30px; letter-spacing: .3px; font-weight: 500; text-decoration: none; color: var(--ivory); white-space: nowrap; }
.brand b { font-weight: 700; }
.nav-menu { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.nav-link {
  color: var(--ivory); text-decoration: none; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .25s, color .25s;
}
.nav-link:hover { color: var(--gold); }
.nav-link.is-active { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ivory); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 01 Promesa ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto auto 1fr;
  grid-template-areas: ". photo" "lbl photo" "h1 photo" "sub photo" "cta photo" ". photo";
  column-gap: 64px; row-gap: 28px; align-items: center;
  padding-top: 72px; padding-bottom: 88px;
}
.hero-lbl { grid-area: lbl; }
.hero-title { grid-area: h1; font-size: clamp(40px, 4.6vw, 62px); line-height: 1.1; font-weight: 600; letter-spacing: -.5px; }
.hero-sub { grid-area: sub; font-size: 24px; line-height: 1.6; color: var(--petrol); max-width: 680px; }
.hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; }
.hero-photo { grid-area: photo; position: relative; display: flex; justify-content: center; }
.hero-arc { position: absolute; left: 0; bottom: -24px; width: 200px; height: 200px; border-radius: 100px 100px 0 0; background: var(--mist); }
.hero-frame {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 5;
  background: var(--petrol); border-radius: 240px 240px 0 0; overflow: hidden;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* ---------- 02 Sobre mí ---------- */
.about { display: flex; flex-direction: column; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.about-row { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.about-photo { flex: 1 1 400px; min-width: 0; position: relative; }
.about-square { position: absolute; left: -20px; top: -20px; width: 140px; height: 140px; background: var(--gold); border-radius: 4px; }
.about-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 48% center; border-radius: 4px; }
.about-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.stat { border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-size: 44px; font-weight: 700; line-height: 1; }
.stat-txt { font-size: 18px; line-height: 1.45; color: var(--petrol); }
.stat-ivory { background: var(--ivory); }
.stat-mist { background: var(--mist); }
.stat-gold { background: var(--gold); }
.stat-gold .stat-txt { color: var(--navy); }
.stat-navy { background: var(--navy); }
.stat-navy .stat-num { color: var(--gold); }
.stat-navy .stat-txt { color: var(--ivory); }

/* ---------- 03 Experiencia ---------- */
.exp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.exp-head > div { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.exp-head .h2 { font-size: clamp(32px, 4.8vw, 48px); }
.exp-intro { flex: 1 1 380px; min-width: 0; font-size: 21px; line-height: 1.55; color: var(--mist); }
.exp-note { display: flex; align-items: center; gap: 14px; margin-top: 44px; font-size: 18px; line-height: 1.6; color: var(--mist); }
.exp-note .eyebrow-line { width: 32px; }

.marquees { display: flex; flex-direction: column; gap: 14px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; }
.marquee.is-animated .marquee-track { animation: mq-left 80s linear infinite; }
.marquee.is-animated .m-right { animation-name: mq-right; animation-duration: 75s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@keyframes mq-right { from { transform: translateX(calc(-50% - 7px)); } to { transform: translateX(0); } }

.logo-tile {
  flex: none; width: 180px; height: 96px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
}
.logo-tile img { height: var(--h, 32px); width: auto; max-width: 100%; object-fit: contain; }

/* ---------- 04 Filosofía ---------- */
.philosophy { position: relative; overflow: hidden; }
.philo-circle { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.philo-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.philo-title { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.philo-title .eyebrow { color: var(--petrol); }
.philo-h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.16; font-weight: 500; }
.philo-h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; color: var(--gold-text); }
.philo-text { flex: 1 1 400px; min-width: 0; border-left: 2px solid var(--gold); padding-left: 36px; font-size: 24px; line-height: 1.65; color: var(--petrol); }

/* ---------- 05 Especialidades ---------- */
.specialties { position: relative; overflow: hidden; }
.spec-circle { position: absolute; right: -140px; top: 120px; width: 420px; height: 420px; border-radius: 50%; background: var(--petrol); }
.specialties .container { position: relative; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin-bottom: 48px; }
.cards { display: flex; align-items: center; padding: 36px 0; }
.card {
  flex: 1 1 0; min-width: 0; position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 20px; align-self: stretch;
  background: var(--sand); color: var(--navy); text-decoration: none;
  border-radius: 22px; padding: 48px 40px; box-shadow: 0 10px 30px rgba(11, 34, 56, .08);
  transition: transform .25s, box-shadow .25s;
}
.card h3 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.card p { font-size: 19px; line-height: 1.6; color: var(--petrol); }
.card-featured {
  z-index: 2; background: var(--mist); padding: 64px 42px; margin: -36px -14px;
  box-shadow: 0 22px 50px rgba(11, 34, 56, .18);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(11, 34, 56, .16); }
.card-cta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; }
.card-cta .eyebrow-line { width: 44px; height: 3px; }

/* ---------- 06 Cómo lo hago ---------- */
.how { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.how-photo { flex: 1 1 380px; min-width: 0; position: relative; }
.how-shape { position: absolute; right: -20px; bottom: -20px; width: 60%; height: 60%; background: var(--mist); border-radius: 0 0 160px 0; }
.how-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 4px; }
.how-text { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.steps li { background: var(--ivory); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-size: 16px; font-weight: 700; color: var(--gold-dark); }
.step-title { font-size: 24px; font-weight: 700; }
.step-txt { font-size: 18px; line-height: 1.55; color: var(--petrol); }

/* ---------- 07 Contacto ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; padding-bottom: 88px; }
.contact-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.contact-text .btn { align-self: flex-start; margin-top: 6px; }
.channels { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 14px; font-size: 18px; }
.channels li { display: flex; align-items: center; gap: 12px; }
.channels li svg { flex: none; }
.ch-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.channels a { overflow-wrap: anywhere; }
.channels a { text-decoration: none; }
.channels a:hover { color: var(--petrol); text-decoration: underline; text-underline-offset: 4px; }
.copy-btn {
  background: transparent; border: 1px solid var(--gold-dark); color: var(--petrol);
  border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.org-card {
  flex: 1 1 440px; min-width: 0; position: relative; overflow: hidden;
  background: var(--navy); color: var(--ivory); border-radius: 24px;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 48px);
  display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.org-ring { position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 2px solid var(--gold); }
.org-logo { position: relative; width: 290px; max-width: 100%; height: auto; }
.org-card h3 { position: relative; font-size: 34px; font-weight: 600; line-height: 1.22; }
.org-card p { position: relative; font-size: 20px; line-height: 1.6; color: var(--mist); }
.org-card .eyebrow { position: relative; }
.org-card .btn { position: relative; align-self: flex-start; margin-top: 8px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: var(--mist); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.footer-brand { color: var(--ivory); }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(11, 34, 56, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */

/* Menú hamburguesa */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 24px;
    box-shadow: 0 16px 30px rgba(11, 34, 56, .35);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 18px; }
  .nav-link.is-active { color: var(--gold); border-bottom-color: rgba(255, 255, 255, .1); }
  .nav-menu .btn { margin-top: 18px; text-align: center; font-size: 18px; padding: 14px 20px; }
}

/* Tablet */
@media (max-width: 960px) {
  .cards { flex-direction: column; align-items: stretch; gap: 20px; padding: 0; }
  .card, .card-featured { margin: 0; padding: 40px 32px; }
}

/* Celular */
@media (max-width: 820px) {
  :root { --gutter: 20px; --header-h: 68px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .brand { font-size: 24px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "lbl" "h1" "photo" "sub" "cta";
    row-gap: 24px; padding-top: 40px; padding-bottom: 64px;
  }
  .hero-sub { font-size: 20px; }
  .hero-arc { display: none; }

  .eyebrow { font-size: 14px; letter-spacing: 1.5px; }
  .lead { font-size: 21px; }
  .body, .intro, .exp-intro { font-size: 18px; }
  .about-row, .how { gap: 48px; }
  .about-square { left: -10px; top: -10px; width: 100px; height: 100px; }
  .stat-num { font-size: 38px; }

  .spec-circle, .philo-circle { display: none; }
  .philo-text { font-size: 20px; padding-left: 24px; }

  .logo-tile { width: 150px; height: 84px; }
  .org-card h3 { font-size: 28px; }
  .to-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee.is-animated .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .btn, .card, .to-top { transition: none; }
}