/* -------------------------------------------------------
   Javier Vicente — Cross-border Corporate & M&A
   Definitive CSS
   White editorial layout + full-bleed blue hero band
   Partner-level / quiet luxury
-------------------------------------------------------- */

:root{
  /* Base palette (paper) */
  --bg: #fbfbfa;
  --paper: rgba(255,255,255,.72);

  --ink: #0b1020;
  --ink-2: #0f172a;

  --muted: rgba(11,16,32,.70);
  --faint: rgba(11,16,32,.54);

  --line: rgba(11,16,32,.10);
  --line-strong: rgba(11,16,32,.16);

  /* Hero palette (deep ink blue) */
  --hero-bg: #0e1424;
  --hero-ink: rgba(255,255,255,.94);
  --hero-muted: rgba(255,255,255,.78);
  --hero-line: rgba(255,255,255,.22);

  --max: 860px;

  /* Type */
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: Fraunces, ui-serif, Georgia, serif;

  /* Rhythm */
  --gutter: 1.75rem;
  --pad-top: 4.75rem;
  --pad-bottom: 5.25rem;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* -------------------------------------------------------
   Reset & base
-------------------------------------------------------- */

*{ box-sizing: border-box; }

html, body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--ink);
}

body{
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection{
  background: rgba(11,16,32,.12);
}

/* -------------------------------------------------------
   Layout
-------------------------------------------------------- */

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad-top) var(--gutter) var(--pad-bottom);
}

/* -------------------------------------------------------
   Header
-------------------------------------------------------- */

header.site{
  position: relative;
  z-index: 2;

  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.75rem;

  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.75rem;
}

.brand{
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

nav{
  display:flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a{
  font-size: .98rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .12rem;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

nav a:hover{
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* -------------------------------------------------------
   Typography
-------------------------------------------------------- */

h1, h2{
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.16;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

h2{
  font-size: 1.56rem;
  margin-top: 3.9rem;
}

p{
  margin: 0 0 1rem 0;
  max-width: 74ch;
  color: var(--ink-2);
}

/* -------------------------------------------------------
   HERO — FULL BLEED BLUE BAND (TOUCHING HEADER)
-------------------------------------------------------- */

.hero{
  position: relative;
  z-index: 1;

  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  width: 100vw;

  /* clave: sube hasta el separador del header */
  margin-top: -3.75rem;
  padding: 3.75rem 0 4rem;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,0)
    ),
    var(--hero-bg);

  box-shadow:
    0 28px 80px rgba(11,16,32,.25),
    inset 0 1px 0 rgba(255,255,255,.06);

  animation: heroFadeUp 520ms var(--ease) both;
}

/* Inner alignment */
.hero > *{
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero p{
  margin: 0;
  max-width: 52ch;

  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--hero-ink);

  animation: heroTextFade 520ms var(--ease) both;
  animation-delay: 120ms;
}

/* Hero separator */
.hero::after{
  content:"";
  display:block;
  width: 72px;
  height: 1px;
  margin: 1.75rem auto 0;
  background: linear-gradient(90deg, var(--hero-line), transparent);

  animation: heroTextFade 520ms var(--ease) both;
  animation-delay: 200ms;
}

/* Space after hero */
.hero + section{
  margin-top: 4.5rem;
}

/* -------------------------------------------------------
   Lists
-------------------------------------------------------- */

ul{
  margin: .95rem 0 0 0;
  padding: 0;
  max-width: 74ch;
  list-style: none;
}

li{
  margin: .5rem 0;
  color: var(--ink-2);
  padding-left: 1.05rem;
  position: relative;
}

li::before{
  content:"";
  position:absolute;
  left:0;
  top:.88em;
  width: .34rem;
  height: .34rem;
  border-radius: 999px;
  background: rgba(11,16,32,.82);
  transform: translateY(-50%);
}

/* -------------------------------------------------------
   Notes
-------------------------------------------------------- */

.note{
  margin-top: 1.1rem;
  font-size: .95rem;
  color: var(--faint);
  padding-left: .9rem;
  border-left: 1px solid var(--line);
}

/* -------------------------------------------------------
   Links
-------------------------------------------------------- */

a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(11,16,32,.18);
  transition: border-color 160ms var(--ease);
}

a:hover{
  border-bottom-color: rgba(11,16,32,.30);
}

/* -------------------------------------------------------
   Email emphasis
-------------------------------------------------------- */

.email{
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(11,16,32,.05);
}

/* -------------------------------------------------------
   Footer
-------------------------------------------------------- */

footer.site{
  margin-top: 5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.small{
  font-size: .93rem;
  color: var(--muted);
}

.small a{
  color: var(--muted);
  border-bottom-color: transparent;
}

.small a:hover{
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* -------------------------------------------------------
   Mobile
-------------------------------------------------------- */

@media (max-width: 760px){
  :root{
    --gutter: 1.35rem;
    --pad-top: 3.5rem;
    --pad-bottom: 4rem;
  }

  header.site{
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 3rem;
  }

  .hero{
    margin-top: -3rem;
    padding: 2.75rem 0 3rem;
  }

  .hero p{
    font-size: 1.45rem;
    line-height: 1.4;
  }

  .email{
    width: 100%;
    text-align: center;
  }
}

/* -------------------------------------------------------
   Animations (ultra subtle)
-------------------------------------------------------- */

@keyframes heroFadeUp{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

@keyframes heroTextFade{
  from{ opacity:0; transform: translateY(4px); }
  to{ opacity:1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .hero,
  .hero p,
  .hero::after{
    animation: none !important;
  }
}