:root {
  --page: #f5f0ec;
  --paper: #faf6f2;
  --surface: #fffdfa;
  --surface-soft: #f3ebe8;
  --surface-cool: #f7f1ee;
  --wash-warm: #faf5f1;
  --wash-green: #f2ece8;
  --ink: #241d1e;
  --text: #4b4143;
  --muted: #7a6c70;
  --line: rgba(58, 41, 45, 0.09);
  --line-strong: rgba(58, 41, 45, 0.16);
  --accent: #b28a92;
  --accent-dark: #8d666d;
  --moss: #887173;
  --mist: #ece0dc;
  --shadow: 0 18px 42px rgba(39, 25, 29, 0.055);
  --shadow-deep: 0 30px 76px rgba(39, 25, 29, 0.11);
  --radius: 18px;
  --radius-sm: 12px;
}

html {
  scroll-padding-top: 106px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 22%),
    linear-gradient(180deg, #f7f2ee 0%, #f3eeea 42%, #efe9e5 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

main {
  background:
    linear-gradient(180deg, rgba(250, 246, 242, 0.92) 0%, rgba(244, 238, 234, 0.96) 100%);
}

.section,
.blog-section,
.contact-section {
  background: transparent;
}

.section::before,
.blog-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.section-kicker,
.blog-badge,
.logo-eyebrow {
  letter-spacing: 0.18em;
}

.section-title,
.blog-title,
.detail-title,
.create-title,
.hero-content h1,
.logo-name {
  font-family: "Cormorant Garamond", serif;
}

.section-title,
.blog-title,
.detail-title,
.create-title {
  font-size: clamp(2.45rem, 3vw, 3.2rem);
  line-height: 0.97;
  letter-spacing: -0.01em;
}

.section-subtitle,
.blog-subtitle,
.lead,
.about-lead,
.formacion-sub {
  color: var(--muted);
}

.site-header {
  background: rgba(247, 242, 238, 0.94);
  border-bottom-color: rgba(58, 41, 45, 0.07);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(247, 242, 238, 0.985);
  box-shadow: 0 14px 34px rgba(39, 25, 29, 0.05);
}

.header-top {
  border-bottom-color: rgba(58, 41, 45, 0.06);
}

.contact,
.social-left a,
.header-icon-link,
.main-menu a,
.nav-logout-form button {
  color: var(--muted);
}

.main-menu a:hover,
.main-menu a.is-active,
.social-left a:hover,
.header-icon-link:hover,
.nav-toggle:hover,
.nav-logout-form button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(58, 41, 45, 0.08);
}

.logo-link {
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(39, 25, 29, 0.055);
}

.logo-lockup {
  display: grid;
  gap: 2px;
}

.logo-eyebrow {
  color: var(--accent-dark);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logo-name {
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.btn,
.blog-btn,
.back-btn,
.create-btn {
  border-color: rgba(58, 41, 45, 0.11);
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 8px 20px rgba(39, 25, 29, 0.045);
}

.btn:hover,
.blog-btn:hover,
.back-btn:hover,
.create-btn:hover {
  border-color: rgba(58, 41, 45, 0.18);
}

.btn-primary,
.create-btn,
.pagination .active {
  background: linear-gradient(180deg, #af8890, #987079);
  color: #fff;
  box-shadow: 0 12px 26px rgba(141, 102, 109, 0.18);
}

.btn-primary:hover,
.create-btn:hover {
  background: linear-gradient(180deg, #a37b84, #8d666d);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 34px);
  display: grid;
  align-items: center;
  padding: 92px 0 86px;
  background:
    linear-gradient(90deg, rgba(28, 23, 24, 0.76) 0%, rgba(28, 23, 24, 0.62) 36%, rgba(28, 23, 24, 0.30) 60%, rgba(28, 23, 24, 0.12) 100%),
    linear-gradient(180deg, rgba(178, 138, 146, 0.05), rgba(178, 138, 146, 0.05)),
    url("../img/hero.5d50c66ab1cb.png") center center / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 242, 239, 0.10);
  pointer-events: none;
}

.hero .container {
  width: min(1580px, calc(100% - 140px));
}

.hero-content {
  width: min(780px, 100%);
  padding: 12px 0;
}

.hero-kicker {
  color: rgba(255, 247, 244, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(3.9rem, 6vw, 5.45rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-content p {
  max-width: 720px;
  color: rgba(255, 245, 242, 0.84);
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.75;
}

.hero-divider {
  width: 116px;
  height: 1px;
  margin: 24px 0 0;
  background: linear-gradient(90deg, rgba(255, 237, 232, 0.82), rgba(255, 237, 232, 0.18));
}

.hero-cta {
  gap: 12px;
}

.hero-cta .btn {
  min-height: 48px;
}

.hero .btn-primary {
  border-color: transparent;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.badge {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 246, 244, 0.94);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-note {
  max-width: 700px;
  margin-top: 34px;
  padding-left: 22px;
  border-left: 2px solid rgba(233, 212, 217, 0.46);
  color: rgba(255, 243, 240, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-signature {
  margin-top: 24px;
  color: rgba(255, 237, 232, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.media-frame,
.area-card,
.blog-card,
.formacion-block,
.contact-form,
.contact-mini-card,
.cedula {
  border-radius: 22px;
}

.media-frame,
.area-card,
.blog-card,
.formacion-block,
.contact-form,
.contact-mini-card,
.cedula {
  border-color: rgba(58, 41, 45, 0.08);
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.98), rgba(248, 242, 239, 0.92));
  box-shadow: var(--shadow);
}

.media-frame-acomp::before {
  border-color: rgba(58, 41, 45, 0.08);
  background: rgba(255, 255, 255, 0.44);
}

.media-frame-acomp::after {
  background: linear-gradient(180deg, #c09ba2, #9f7a81);
}

.soft-note,
.about-quote {
  background: rgba(243, 235, 232, 0.88);
  border-left-color: var(--accent);
  border-radius: 0 16px 16px 0;
}

.clean-list li::before,
.area-list li::before,
.formacion-list li::before,
.about-points li::before {
  background: var(--accent);
}

.area-card,
.blog-card,
.formacion-block {
  position: relative;
  overflow: hidden;
}

.area-card::after,
.blog-card::after,
.formacion-block::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178, 138, 146, 0.34), transparent);
}

.area-card:hover,
.blog-card:hover,
.formacion-block:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 41, 45, 0.12);
  box-shadow: 0 22px 44px rgba(39, 25, 29, 0.07);
}

.area-icon,
.formacion-block-title i {
  background: rgba(243, 235, 232, 0.96);
  color: var(--accent-dark);
}

.card-index {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(58, 41, 45, 0.08);
  border-radius: 999px;
  background: rgba(243, 235, 232, 0.92);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(58, 41, 45, 0.08);
  border-radius: 999px;
  background: rgba(243, 235, 232, 0.90);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.blog-image {
  background: linear-gradient(180deg, rgba(243, 235, 232, 0.72), rgba(250, 246, 242, 0.94));
}

.blog-image img {
  transition: transform 420ms ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.025);
}

.blog-link {
  color: var(--accent-dark);
}

.blog-link::after {
  content: "\2192";
  margin-left: 8px;
  font-size: 0.9rem;
}

.contact-shell {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 18px;
  padding-top: 14px;
}

.contact-points {
  display: grid;
  gap: 12px;
}

.contact-points div {
  border: 1px solid rgba(58, 41, 45, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.contact-points i {
  background: rgba(243, 235, 232, 0.96);
  color: var(--accent-dark);
}

.contact-mini-card {
  padding: 22px;
}

.contact-mini-card strong {
  color: var(--ink);
}

.contact-mini-card p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  background: rgba(255, 253, 251, 0.96);
}

.contact-form::before {
  background: linear-gradient(90deg, rgba(178, 138, 146, 0.42), rgba(178, 138, 146, 0.10), transparent);
}

.contact-form::after {
  background: linear-gradient(90deg, rgba(178, 138, 146, 0.08), rgba(255, 255, 255, 0));
}

.contact-consent {
  border-color: rgba(58, 41, 45, 0.09);
  background: rgba(243, 235, 232, 0.82);
}

.contact-consent input {
  accent-color: var(--accent-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline-color: rgba(178, 138, 146, 0.14);
  border-color: rgba(141, 102, 109, 0.30);
  box-shadow: 0 10px 22px rgba(39, 25, 29, 0.07);
}

.site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #2a2223, #211a1b);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-sub {
  color: rgba(255, 236, 231, 0.58);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 460ms ease,
    transform 460ms ease;
  transition-delay: calc(var(--reveal-delay, 0) * 85ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.reduce-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1080px) {
  .hero .container {
    width: min(100% - 76px, var(--container));
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .logo-lockup,
  .header-cta {
    display: none;
  }

  .hero {
    padding: 66px 0 34px;
    background:
      linear-gradient(180deg, rgba(28, 23, 24, 0.18) 0%, rgba(28, 23, 24, 0.52) 34%, rgba(28, 23, 24, 0.88) 100%),
      linear-gradient(90deg, rgba(178, 138, 146, 0.06), rgba(178, 138, 146, 0.02)),
      url("../img/hero.5d50c66ab1cb.png") 62% center / cover no-repeat;
  }

  .hero::before {
    inset: 14px;
  }

  .hero .container {
    width: min(100% - 28px, var(--container));
  }

  .hero-content h1 {
    font-size: clamp(2.3rem, 13vw, 3.45rem);
  }

  .footer-inner {
    display: grid;
    justify-content: stretch;
  }
}

@media (max-width: 480px) {
  .hero-content p,
  .hero-note {
    font-size: 0.96rem;
  }

  .section-title,
  .blog-title {
    font-size: 2rem;
  }
}

/* PSY-100: experiencia pública definitiva */

.header-assurance {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 247, 244, 0.88);
  font-weight: 700;
}

.footer-contact:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.psy-hero {
  min-height: auto;
  padding: clamp(58px, 7vw, 104px) 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.90), transparent 34%),
    linear-gradient(135deg, #f8f0ec 0%, #efe1dd 52%, #e6d4d0 100%);
  color: var(--ink);
  overflow: hidden;
}

.psy-hero::before {
  inset: 22px;
  border-color: rgba(99, 66, 73, 0.10);
}

.psy-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  bottom: -260px;
  border-radius: 50%;
  background: rgba(178, 138, 146, 0.14);
  pointer-events: none;
}

.psy-hero .hero-layout {
  width: min(1240px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.psy-hero .hero-content {
  width: 100%;
}

.psy-hero .hero-kicker {
  border-color: rgba(141, 102, 109, 0.16);
  background: rgba(255, 255, 255, 0.54);
  color: var(--accent-dark);
}

.psy-hero .hero-content h1 {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(3.6rem, 6.2vw, 6.1rem);
  line-height: 0.87;
}

.psy-hero .hero-content p {
  max-width: 650px;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.78;
}

.psy-hero .hero-divider {
  background: linear-gradient(90deg, var(--accent-dark), rgba(141, 102, 109, 0.10));
}

.psy-hero .btn-ghost {
  border-color: rgba(58, 41, 45, 0.14);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
}

.psy-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.82);
}

.psy-hero .badge {
  border-color: rgba(58, 41, 45, 0.10);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
}

.psy-hero .hero-note {
  border-left-color: var(--accent);
  color: var(--muted);
}

.psy-hero .hero-signature {
  color: var(--accent-dark);
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0;
  justify-self: end;
  padding: 12px;
  border: 1px solid rgba(76, 50, 56, 0.10);
  border-radius: 220px 220px 26px 26px;
  background: rgba(255, 253, 251, 0.72);
  box-shadow: 0 34px 80px rgba(80, 52, 59, 0.16);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 28px -18px -20px 28px;
  z-index: -1;
  border: 1px solid rgba(141, 102, 109, 0.20);
  border-radius: inherit;
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 210px 210px 18px 18px;
}

.hero-portrait figcaption {
  padding: 14px 8px 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.audience-section {
  background:
    linear-gradient(120deg, rgba(141, 102, 109, 0.94), rgba(78, 56, 61, 0.96));
  color: rgba(255, 249, 247, 0.84);
}

.audience-section::before {
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.10), transparent 34%);
}

.audience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.audience-copy {
  display: grid;
  gap: 18px;
}

.audience-copy .section-kicker {
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 249, 247, 0.92);
}

.audience-copy .section-title,
.audience-copy .lead {
  color: #fffaf8;
}

.audience-copy p {
  margin: 0;
  max-width: 720px;
}

.audience-quote {
  margin: 0;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px 100px 22px 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 0.98;
  text-align: center;
}

.audience-quote p {
  margin: 0;
}

.work-heading,
.discovery-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(58, 41, 45, 0.08);
  border-radius: 90px 20px 20px 20px;
  background: rgba(255, 253, 251, 0.86);
  box-shadow: var(--shadow);
}

.work-card > span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.work-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.discovery-section {
  overflow: hidden;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.discovery-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(58, 41, 45, 0.10);
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow-deep);
}

.discovery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(35, 27, 29, 0.76) 100%);
}

.discovery-card > * {
  position: relative;
  z-index: 1;
}

.discovery-writing {
  background:
    linear-gradient(135deg, rgba(135, 93, 102, 0.26), rgba(51, 37, 40, 0.18)),
    url("../img/hero-box.f854c3d13ecf.jpeg") center / cover no-repeat;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.discovery-writing:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 36px 82px rgba(39, 25, 29, 0.16);
}

.discovery-art {
  background:
    linear-gradient(135deg, rgba(83, 68, 58, 0.34), rgba(45, 36, 37, 0.58)),
    url("../img/arte.724e3e4d9b1c.jpeg") center / cover no-repeat;
}

.discovery-label,
.discovery-status {
  width: fit-content;
  color: rgba(255, 247, 244, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.discovery-card h3 {
  max-width: 520px;
  margin: 12px 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.discovery-action,
.discovery-status {
  font-weight: 800;
}

.blog-info h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.3;
}

.contact-whatsapp {
  width: fit-content;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(141, 102, 109, 0.52);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .psy-hero .hero-layout,
  .audience-layout {
    grid-template-columns: 1fr;
  }

  .psy-hero .hero-content {
    max-width: 760px;
  }

  .hero-portrait {
    width: min(100%, 400px);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .psy-hero {
    padding: 48px 0 64px;
    background:
      radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.90), transparent 34%),
      linear-gradient(145deg, #f8f0ec 0%, #ead9d5 100%);
  }

  .psy-hero .hero-layout {
    width: min(100% - 28px, var(--container));
    gap: 38px;
  }

  .psy-hero .hero-content h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .psy-hero .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .psy-hero .hero-cta .btn {
    width: 100%;
  }

  .hero-portrait {
    width: min(92%, 370px);
  }

  .audience-layout {
    gap: 34px;
  }

  .audience-quote {
    padding: 36px 22px;
  }

  .work-grid,
  .discovery-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 190px;
  }

  .discovery-card {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .psy-hero .hero-content {
    width: 100%;
  }

  .psy-hero .hero-content h1 {
    font-size: 3rem;
  }

  .psy-hero .hero-content p {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-portrait::before {
    inset: 20px -10px -14px 20px;
  }

  .audience-quote {
    font-size: 2.35rem;
  }

  .discovery-card {
    min-height: 260px;
  }
}
