:root {
  /* EDITAR: colores principales inspirados en el logo */
  --color-bg: #f7f2eb;
  --color-surface: #fffdfa;
  --color-surface-strong: #f0e6db;
  --color-text: #2c2421;
  --color-muted: #6e625d;
  --color-line: rgba(112, 88, 70, 0.15);
  --color-primary: #a78a6a;
  --color-primary-deep: #886b4f;
  --color-accent: #d8c2ae;
  --color-contrast: #2f2622;
  --shadow-soft: 0 20px 60px rgba(63, 42, 30, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --header-height: 86px;
  --container: 1180px;
  --font-heading: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at top right, rgba(216, 194, 174, 0.35), transparent 28%),
    linear-gradient(180deg, #fcfaf7 0%, var(--color-bg) 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.72));
}

.section-contrast {
  background:
    radial-gradient(circle at left top, rgba(216, 194, 174, 0.2), transparent 30%),
    linear-gradient(180deg, #f9f5ef 0%, #f2e8dd 100%);
}

.section-cta {
  padding-bottom: 7rem;
}

.site-footer {
  padding: 2.5rem 0 6.5rem;
  background:
    linear-gradient(180deg, rgba(249, 245, 239, 0.4), rgba(240, 230, 219, 0.9)),
    var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.footer-shell {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  justify-content: center;
}

.footer-logo {
  width: min(100%, 360px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.footer-social {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.footer-social-title {
  margin: 0;
  color: var(--color-primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 800;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.social-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(63, 42, 30, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.social-item:hover,
.social-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(136, 107, 79, 0.28);
  box-shadow: 0 16px 28px rgba(63, 42, 30, 0.1);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(167, 138, 106, 0.14);
  color: var(--color-primary-deep);
  flex-shrink: 0;
}

.social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.social-text {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 235, 0.84);
  border-bottom: 1px solid var(--color-line);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(91, 63, 43, 0.16);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 0.96rem;
  transition: color 0.24s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary-deep);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
}

.hero {
  padding-top: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--color-primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.hero-role {
  color: var(--color-text);
  font-size: 1.08rem;
  font-weight: 600;
}

.hero-claim {
  color: var(--color-primary-deep);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  max-width: 18ch;
}

.hero-summary {
  max-width: 62ch;
}

.hero-tags,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.chip-list li {
  padding: 0.72rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--color-text);
  font-size: 0.94rem;
}

.hero-tags {
  display: block;
  max-width: 43rem;
  margin-top: 1.8rem;
  padding: 0;
}

.hero-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
}

.hero-tag-card {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.95rem;
  min-height: 5.2rem;
  min-width: 0;
  padding: 0.85rem 0.1rem 1rem;
  border-bottom: 1px dashed rgba(167, 138, 106, 0.6);
}

.hero-tag-card:nth-last-child(-n + 2) {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.hero-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  justify-self: center;
  color: var(--color-primary-deep);
  flex-shrink: 0;
}

.hero-tag-icon svg {
  width: 2.45rem;
  height: 2.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-tag-icon-image {
  width: 3rem;
  height: 3rem;
}

.hero-tag-icon-image-sm {
  width: 2.55rem;
  height: 2.55rem;
}

.hero-tag-asset {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: sepia(0.75) saturate(0.9) hue-rotate(-8deg) brightness(0.92);
}

.hero-tag-icon-solid svg {
  fill: currentColor;
  stroke: none;
}

.hero-tag-icon-psi,
.hero-tag-icon-cross {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  line-height: 1;
}

.hero-tag-label {
  display: inline-block;
  min-width: 0;
  color: #4d3a31;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(134, 107, 79, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-primary-deep);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  border-color: var(--color-line);
}

.portrait-card {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(167, 138, 106, 0.24), transparent 70%);
  pointer-events: none;
}

.portrait-main,
.portrait-secondary {
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(62, 44, 32, 0.16);
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 2.5rem;
}

.about-layout,
.sphere-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.about-card,
.panel,
.case-card,
.cta-shell {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-card,
.panel,
.case-card {
  padding: 1.5rem;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.story-copy {
  padding: 0.4rem 0;
}

.horli-grid,
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.detail-list,
.ordered-list,
.info-grid {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-muted);
}

.detail-list li,
.ordered-list li {
  margin-bottom: 0.72rem;
}

.info-grid {
  list-style: none;
  padding-left: 0;
}

.info-grid li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-line);
}

.stacked-copy p:last-child,
.case-card p:last-child,
.about-card p:last-child,
.contact-note p:last-child {
  margin-bottom: 0;
}

.clients-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  background: radial-gradient(circle, rgba(167, 138, 106, 0.16), transparent 70%);
}

.case-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--color-primary-deep);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.cta-shell {
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(216, 194, 174, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 247, 241, 0.96));
}

.cta-shell h2,
.cta-shell p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.ideal-referrals {
  display: grid;
  gap: 1rem;
}

.referral-detail {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.referral-detail summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.referral-detail summary::-webkit-details-marker {
  display: none;
}

.referral-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 50%;
  background: rgba(167, 138, 106, 0.14);
  color: var(--color-primary-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.referral-title {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.2;
}

.referral-content {
  padding: 0 1.5rem 1.5rem;
}

.referral-content p:first-child {
  margin-top: 0;
}

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

.support-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.support-card-wide {
  grid-column: 1 / -1;
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: rgba(167, 138, 106, 0.14);
  color: var(--color-primary-deep);
  font-weight: 800;
  font-size: 1rem;
}

.support-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.support-card p {
  margin-bottom: 0;
}

.referral-form {
  max-width: 52rem;
  margin: 2rem auto 0;
  text-align: left;
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-field span {
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9b8c84;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(167, 138, 106, 0.12);
}

.form-field-full {
  margin-bottom: 0;
}

.form-status {
  min-height: 1.6rem;
  margin: 1rem 0 0;
  color: var(--color-primary-deep);
  font-weight: 600;
}

.form-status.is-error {
  color: #9a3f3f;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 54px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  background: #1f9d63;
  color: #fff;
  box-shadow: 0 20px 40px rgba(26, 104, 69, 0.3);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-layout,
  .about-layout,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem;
    background: rgba(255, 253, 250, 0.98);
    border: 1px solid var(--color-line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0.6rem;
    border-radius: 14px;
  }

  .hero-grid,
  .story-layout,
  .about-layout,
  .support-grid,
  .form-grid,
  .contact-note {
    grid-template-columns: 1fr;
  }

  .hero-tag-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-tag-card:nth-last-child(-n + 2) {
    border-bottom: 1px dashed rgba(167, 138, 106, 0.6);
    padding-bottom: 1rem;
  }

  .hero-tag-card:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 4.75rem 0;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .section {
    padding: 4rem 0;
  }

  .about-card,
  .panel,
  .cta-shell {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .portrait-card {
    padding: 0.85rem;
    border-radius: 24px;
  }

  .portrait-main,
  .portrait-secondary {
    border-radius: 18px;
  }

  .whatsapp-float {
    right: 0.75rem;
    bottom: 0.75rem;
    min-width: 122px;
    min-height: 50px;
    padding: 0.8rem 0.95rem;
  }

  .footer-logo {
    width: min(100%, 280px);
  }

  .social-item {
    width: auto;
    justify-content: center;
  }
}
