:root {
  --ink: #051c2c;
  --navy: #051c2c;
  --paper: #f7f8f6;
  --gold: #bc955c;
  --gold-soft: #f1dfbb;
  --muted: #59636c;
  --line: rgba(255, 255, 255, .13);
  --shadow: 0 28px 70px rgba(3, 8, 16, .38);
}

* {
  box-sizing: border-box;
}

html {
  background: #05080d;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 8%, rgba(188, 149, 92, .16), transparent 25rem),
    linear-gradient(135deg, #05080d 0%, #111d2b 44%, #e7e1d7 44%, #f7f8f6 100%);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.profile {
  width: min(720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink), #101923 62%, #f7f8f6 62%);
  box-shadow: 0 0 90px rgba(0, 0, 0, .48);
}

.hero {
  position: relative;
  min-height: 650px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 28, 44, .08), rgba(5, 28, 44, .9)),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -30%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(188, 149, 92, .18);
  filter: blur(12px);
}

.brand-panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 255px;
  padding: 20px 12px 48px;
}

.brand-logo {
  width: min(520px, 100%);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .34));
}

.portrait {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: -84px;
  width: 210px;
  height: 286px;
  border: 7px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: var(--shadow);
}

.share {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 28, 44, .74);
  font-size: 1.3rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.intro {
  position: relative;
  z-index: 4;
  padding: 18px 34px 22px;
}

.eyebrow,
.section-title p {
  margin: 0;
  color: var(--gold);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 8px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.15rem, 10vw, 5.1rem);
  line-height: .9;
  letter-spacing: 0;
}

.lead {
  max-width: 430px;
  margin: 0;
  color: rgba(247, 248, 246, .78);
  font-size: 1rem;
}

.links {
  display: grid;
  gap: 12px;
  padding: 10px 28px 38px;
}

.link-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 15px;
  min-height: 82px;
  padding: 11px 18px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #172335, #0d1723);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(188, 149, 92, .55);
  background: linear-gradient(145deg, #1b2a3d, #0e1928);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(188, 149, 92, .3);
  border-radius: 8px;
  color: var(--gold);
  background: var(--navy);
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.icon img { display: block; width: 28px; height: 28px; object-fit: contain; }


.link-card strong,
.link-card small {
  display: block;
}

.link-card strong {
  font-size: 1rem;
  line-height: 1.24;
}

.link-card small {
  margin-top: 4px;
  color: rgba(247, 248, 246, .64);
  font-size: .78rem;
}

.link-card b {
  color: rgba(247, 248, 246, .5);
  font-size: 1.45rem;
  font-weight: 500;
}

.focus {
  padding: 38px 28px 46px;
  color: var(--ink);
  background: var(--paper);
}

.section-title h2 {
  max-width: 560px;
  margin: 6px 0 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.pillars {
  display: grid;
  gap: 10px;
}

.pillars article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 14px;
  padding: 18px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.pillars span {
  grid-row: span 2;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.pillars strong {
  font-size: .98rem;
}

.pillars small {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: end;
  padding: 30px;
  color: rgba(247, 248, 246, .62);
  background: #051c2c;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
}

footer p {
  margin: 0;
}

.links2redes-signature {
  display: flex;
  justify-self: end;
  width: min(112px, 31vw);
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  text-decoration: none;
}

.links2redes-signature img {
  display: block;
  width: 100%;
  height: auto;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  padding: 10px 15px;
  border-radius: 999px;
  color: #051c2c;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 560px) {
  .hero {
    min-height: 500px;
    padding: 14px;
  }

  .brand-panel {
    min-height: 220px;
    padding-top: 36px;
  }

  .portrait {
    right: 20px;
    bottom: -112px;
    width: 176px;
    height: 244px;
  }

  .intro {
    padding: 16px 22px 20px;
  }

  .lead {
    max-width: 100%;
    padding-right: 112px;
    font-size: .92rem;
  }

  .links {
    padding-inline: 14px;
  }

  .focus {
    padding-inline: 14px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .links2redes-signature {
    justify-self: end;
  }
}

@media (max-width: 390px) {
  .lead {
    padding-right: 0;
  }

  .portrait {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: 164px;
    height: 214px;
    margin: 18px 0 -36px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card,
  .toast {
    transition: none;
  }
}

/* Ajustes de identidad y composición para el lockup horizontal definitivo. */
html, .profile, .hero { background: var(--navy); }
.hero { min-height: 0; padding: 64px 34px 24px; display: flex; align-items: center; gap: 24px; }
.hero::after { display: none; }
.brand-panel { min-height: 0; padding: 0; flex: 1; }
.brand-logo { width: 100%; max-width: 473px; filter: none; }
.portrait { position: static; flex: 0 0 auto; width: 108px; height: 144px; margin: 0; border: 1px solid var(--gold); filter: grayscale(1); }
.intro h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); line-height: 1.1; }
.lead { max-width: 100%; padding-right: 0; }
.eyebrow { letter-spacing: .08em; }
.primary { border-color: var(--gold); background: #163449; }
.links { padding-bottom: 22px; }
.link-card > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.link-card small { color: #c6ced4; }
.section-title p, .pillars span { color: var(--navy); }
.availability { padding: 0 28px 26px; margin: 0; color: #c6ced4; font-size: .8rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 560px) {
  .hero { padding: 64px 22px 22px; gap: 18px; }
  .portrait { width: 82px; height: 112px; }
  .brand-panel { padding: 0; }
  .link-card { grid-template-columns: 48px 1fr; gap: 10px; padding: 12px; }
  .availability { padding-inline: 22px; }
}
@media (max-width: 390px) {
  .hero { gap: 12px; padding-inline: 18px; }
  .portrait { position: static; width: 68px; height: 94px; margin: 0; }
  .intro { padding-inline: 18px; }
  .eyebrow { font-size: .65rem; }
}

/* SVG exportados desde Icon Lab, paleta Cynthia. */
.icon-lab img, .share img { display: block; object-fit: contain; flex-shrink: 0; }

/* Misma caja y paleta para todos los controles de icono. */
.share { width: 48px; height: 48px; border-radius: 8px; border-color: rgba(188,149,92,.3); background: var(--navy); }
.share img { width: 28px; height: 28px; }
.link-card b { color: var(--gold); font-family: "Segoe UI Symbol", sans-serif; font-size: 22px; line-height: 1; }

/* Compartir ocupa su propia fila; nunca se superpone al retrato. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 18px; row-gap: 16px; }
.hero > .share { position: static; grid-column: 1 / -1; justify-self: end; }
.brand-panel { grid-column: 1; grid-row: 2; min-width: 0; }
.portrait { grid-column: 2; grid-row: 2; }

/* Título de contacto aprobado por Pablo. */
.intro h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; margin: 10px 0 14px; }
