:root {
  --ink: #0c1833;
  --muted: #667085;
  --paper: #f7f8fc;
  --line: rgba(12, 24, 51, 0.12);
  --blue: #1688f5;
  --violet: #6d2cd5;
  --pink: #ec2f91;
  --orange: #ff8757;
  --green: #18a873;
  --shadow: 0 28px 90px rgba(7, 17, 39, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(22, 136, 245, 0.2), transparent 35%),
    radial-gradient(circle at 88% 85%, rgba(236, 47, 145, 0.15), transparent 34%),
    #071126;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.ambient {
  position: fixed;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient--one { top: -22vw; right: -8vw; background: var(--pink); }
.ambient--two { bottom: -24vw; left: -8vw; background: var(--blue); }

.shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 44px 20px;
}

.card {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(420px, 1.12fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 32px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  flex-direction: column;
  padding: 30px 34px 42px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7,17,38,.18), rgba(7,17,38,.84)),
    linear-gradient(135deg, #12254d 0%, #071126 72%);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background: radial-gradient(circle at 70% 28%, rgba(22,136,245,.65), transparent 27%), radial-gradient(circle at 95% 56%, rgba(236,47,145,.45), transparent 26%);
}

.brandbar { display: flex; align-items: center; justify-content: space-between; }

.brandbar__logo {
  width: 92px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 16px rgba(0,0,0,.25));
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.icon-button svg { width: 19px; fill: currentColor; }

.portrait-wrap {
  position: relative;
  width: min(82%, 330px);
  aspect-ratio: 4 / 5;
  margin: 54px auto 36px;
}

.portrait-ring {
  position: absolute;
  inset: -8px;
  border-radius: 160px 160px 28px 28px;
  background: linear-gradient(140deg, var(--blue), var(--violet) 45%, var(--pink) 70%, var(--orange));
  box-shadow: 0 18px 50px rgba(27, 83, 191, .36);
}

.portrait {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 154px 154px 22px 22px;
  object-fit: cover;
  object-position: 34% 38%;
  border: 4px solid #0b1833;
}

.identity { margin-top: auto; }
.eyebrow, .section-label { margin: 0 0 10px; font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .18em; }
.eyebrow { color: #80c7ff; }
.identity h1 { max-width: 330px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 54px); line-height: .98; font-weight: 500; letter-spacing: -.035em; }
.signature { max-width: 310px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; }

.content { padding: 34px 42px 28px; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.quick-action__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: #153362;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12,24,51,.08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.quick-action:hover .quick-action__icon { transform: translateY(-3px); border-color: rgba(22,136,245,.4); box-shadow: 0 12px 28px rgba(22,136,245,.14); }
.quick-action__icon svg { width: 21px; height: 21px; fill: currentColor; }

.statement { margin-top: 38px; padding: 30px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label { color: var(--violet); }
.statement h2, .services h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.025em; }
.statement h2 { max-width: 440px; font-size: 34px; line-height: 1.08; }
.statement > p:not(.section-label) { max-width: 500px; margin: 16px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.values span { padding: 8px 12px; border: 1px solid rgba(109,44,213,.16); border-radius: 999px; color: #4e268f; background: #f5f0ff; font-size: 12px; font-weight: 700; }

.services { padding: 30px 0; }
.services h2 { max-width: 440px; font-size: 25px; line-height: 1.18; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: #365b9d; text-decoration: none; font-size: 13px; font-weight: 800; }
.text-link svg { width: 15px; fill: currentColor; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

.primary-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button svg { width: 18px; fill: currentColor; }
.button--primary { border: 0; color: #fff; background: linear-gradient(110deg, #15396d, #112448); box-shadow: 0 12px 24px rgba(12,24,51,.18); }
.button--secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }

footer { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
footer img { width: 54px; height: 54px; object-fit: contain; }
footer div { display: flex; flex-direction: column; gap: 4px; }
footer a { color: var(--muted); font-size: 11px; line-height: 1.35; text-decoration: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 10;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7,17,38,.92);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid rgba(22,136,245,.55); outline-offset: 3px; }

@media (max-width: 820px) {
  body { background: #071126; }
  .ambient { display: none; }
  .shell { display: block; min-height: 100svh; padding: 0; }
  .card { display: block; width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .hero { min-height: 665px; padding: calc(22px + env(safe-area-inset-top)) 22px 38px; }
  .brandbar__logo { width: 78px; height: 58px; }
  .portrait-wrap { width: min(70vw, 300px); margin: 36px auto 28px; }
  .identity { text-align: center; }
  .identity h1, .signature { margin-left: auto; margin-right: auto; }
  .identity h1 { font-size: clamp(39px, 12vw, 51px); }
  .signature { font-size: 14px; }
  .content { padding: 0 20px calc(30px + env(safe-area-inset-bottom)); }
  .quick-actions { position: relative; z-index: 2; margin-top: -28px; padding: 14px 10px; border: 1px solid rgba(12,24,51,.08); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 16px 38px rgba(12,24,51,.15); }
  .quick-action__icon { width: 46px; height: 46px; border: 0; background: #f1f4fa; box-shadow: none; }
  .statement { margin-top: 28px; }
  .statement h2 { font-size: 30px; }
}

@media (max-width: 400px) {
  .hero { min-height: 635px; }
  .portrait-wrap { width: min(68vw, 270px); }
  .content { padding-left: 16px; padding-right: 16px; }
  .quick-actions { gap: 4px; padding-left: 4px; padding-right: 4px; }
  .quick-action { font-size: 10px; }
  .quick-action__icon { width: 44px; height: 44px; }
  .primary-actions { grid-template-columns: 1fr; }
}

/* La tarjeta conserva su formato vertical también en pantallas grandes. */
@media (min-width: 821px) {
  .shell {
    display: grid;
    place-items: start center;
    padding: 44px 20px;
  }

  .card {
    display: block;
    width: min(100%, 430px);
    border-radius: 30px;
  }

  .hero {
    min-height: 665px;
    padding: 28px 24px 40px;
  }

  .brandbar__logo { width: 82px; height: 60px; }

  .portrait-wrap {
    width: min(72%, 300px);
    margin: 38px auto 30px;
  }

  .identity { text-align: center; }
  .identity h1, .signature { margin-left: auto; margin-right: auto; }
  .identity h1 { font-size: 48px; }
  .signature { font-size: 14px; }

  .content { padding: 0 20px 30px; }

  .quick-actions {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    padding: 14px 10px;
    border: 1px solid rgba(12,24,51,.08);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 38px rgba(12,24,51,.15);
  }

  .quick-action__icon {
    width: 46px;
    height: 46px;
    border: 0;
    background: #f1f4fa;
    box-shadow: none;
  }

  .statement { margin-top: 28px; }
  .statement h2 { font-size: 30px; }
  .primary-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
