:root {
  --background: #faf8f3;
  --surface: #ffffff;
  --surface-muted: #f2ede4;
  --ink: #302838;
  --ink-soft: #645d68;
  --navy: #44225f;
  --navy-dark: #321848;
  --gold: #ba9760;
  --gold-soft: #e9dcc4;
  --border: #dfd8cc;
  --whatsapp: #176b57;
  --shadow: 0 22px 55px rgba(50, 24, 72, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5vw, 4.45rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 3.7vw, 3rem);
}

h3 {
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.3;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 216, 204, 0.78);
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-logo-image {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.79rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.desktop-nav a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--navy);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 13px 25px rgba(22, 49, 70, 0.17);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--navy-dark);
  box-shadow: 0 17px 30px rgba(22, 49, 70, 0.23);
}

.button-secondary {
  border-color: var(--border);
  color: var(--navy);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
  background: #fff;
}

.button-small {
  min-height: 45px;
  padding: 0 22px;
  font-size: 0.94rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 92px) 0 82px;
}

.hero::before {
  position: absolute;
  top: 6%;
  right: -180px;
  width: 510px;
  height: 510px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 68%);
  content: "";
  opacity: 0.82;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(480px, 1.12fr) minmax(350px, 0.72fr);
  align-items: center;
  gap: clamp(45px, 6vw, 92px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-eyebrow {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-description {
  max-width: 565px;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.4vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 47px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 27px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  list-style: none;
}

.hero-highlights li {
  position: relative;
  padding-left: 17px;
}

.hero-highlights li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.portrait-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-card::before {
  position: absolute;
  right: -16px;
  bottom: 72px;
  width: 1px;
  height: 96px;
  background: var(--gold);
  content: "";
}

.portrait-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(145deg, #ede7dd, #d9d0c1);
}

.portrait-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portrait-caption {
  padding: 22px 14px 12px;
  color: var(--ink-soft);
}

.portrait-caption p {
  margin-bottom: 3px;
}

.caption-name {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.caption-practice {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section {
  padding: clamp(68px, 8vw, 98px) 0;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto clamp(38px, 5vw, 52px);
  text-align: center;
}

.section-heading > p:last-child {
  color: var(--ink-soft);
}

.section-heading-left {
  margin: 0;
  text-align: left;
}

.services {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 323px;
  padding: 29px 25px 25px;
  border: 1px solid #ece5d9;
  border-radius: var(--radius-md);
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 40px rgba(20, 37, 51, 0.07);
}

.service-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  color: #b48b4e;
  background: #eee5d6;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.05;
}

.service-card h3 {
  margin-bottom: 13px;
}

.service-card ul {
  margin-bottom: 24px;
  padding-left: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  list-style: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.text-link span {
  color: var(--gold);
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.about {
  background: var(--surface-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(365px, 1fr) minmax(400px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 105px);
}

.about-photo {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left center;
}

.about-content {
  padding: clamp(14px, 4vw, 36px) 0 clamp(14px, 4vw, 36px) clamp(24px, 4vw, 43px);
  border-left: 2px solid var(--gold-soft);
}

.about-content h2 {
  margin-bottom: 25px;
}

.about-content > p:not(.eyebrow) {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.about-content .about-intro {
  color: var(--navy);
  font-weight: 600;
}

.about-content .about-modality {
  margin-top: 29px;
  margin-bottom: 0;
  padding-top: 23px;
  border-top: 1px solid #dfd3bf;
  color: var(--navy);
  font-weight: 600;
}

.credentials {
  background: var(--background);
}

.credentials-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.15fr;
  gap: clamp(34px, 6vw, 82px);
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 42px rgba(50, 24, 72, 0.06);
}

.credentials-panel h2 {
  margin-bottom: 0;
}

.credentials-content {
  padding-left: clamp(24px, 4vw, 45px);
  border-left: 1px solid var(--gold-soft);
}

.credentials-content p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: clamp(1.01rem, 1.4vw, 1.08rem);
  line-height: 1.8;
}

.credentials-content p:last-child {
  margin-bottom: 0;
}

.process {
  background: var(--background);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps::before {
  position: absolute;
  top: 33px;
  right: 15%;
  left: 15%;
  height: 1px;
  background: var(--gold-soft);
  content: "";
}

.step {
  position: relative;
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
}

.step-number {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold);
  background: var(--background);
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.faq {
  border-top: 1px solid var(--border);
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.1fr;
  align-items: start;
  gap: clamp(45px, 7vw, 95px);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 23px 44px 23px 0;
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 5px;
  color: var(--gold);
  content: "+";
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  padding: 0 38px 22px 0;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.final-cta {
  background: var(--background);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(355px, 0.82fr);
  gap: clamp(42px, 7vw, 80px);
  padding: clamp(36px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(186, 151, 96, 0.24);
  border-radius: var(--radius-lg);
  color: #fff;
  background-color: var(--navy-dark);
  background-image:
    linear-gradient(100deg, rgba(50, 24, 72, 0.32) 0%, rgba(50, 24, 72, 0.18) 52%, rgba(50, 24, 72, 0.34) 100%),
    url("assets/fondo-contacto-minimalista.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 56px rgba(50, 24, 72, 0.12);
}

.contact-copy h2 {
  max-width: 470px;
  color: #fff;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-copy .button-primary {
  color: var(--navy-dark);
  background: #fff;
  box-shadow: none;
}

.contact-copy .button-primary:hover {
  background: var(--surface-muted);
}

.contact-direct {
  display: grid;
  gap: 22px;
  padding: 37px 34px 33px;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
}

.contact-direct-title {
  margin-bottom: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.2;
}

.contact-direct > p:not(.contact-direct-title) {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.contact-direct ul {
  display: grid;
  gap: 13px;
  margin-bottom: 6px;
  padding: 23px 0 23px 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}

.contact-direct .button {
  width: 100%;
}

.site-footer {
  padding: 42px 0 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-detail,
.footer-links {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.footer-brand .brand-logo-image {
  width: 54px;
  height: 54px;
}

.footer-detail p {
  margin-bottom: 3px;
}

.footer-links {
  display: grid;
  gap: 4px;
  text-align: right;
}

.footer-links a:hover {
  color: var(--navy);
}

.legal-note {
  width: min(var(--container), calc(100% - 48px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid #eee9e0;
  color: #77818a;
  font-size: 0.79rem;
  text-align: center;
}

.floating-whatsapp {
  position: fixed;
  right: max(18px, calc((100vw - var(--container)) / 2));
  bottom: 24px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 14px 32px rgba(20, 65, 54, 0.26);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-3px);
}

.floating-whatsapp svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 990px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .faq-grid,
  .credentials-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 54px;
  }

  .portrait-card {
    width: min(100%, 450px);
    margin: 0 auto;
  }

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

  .about-content {
    padding: 0 0 0 27px;
  }

  .faq-grid {
    gap: 40px;
  }
}

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

  .header-inner {
    min-height: 70px;
    gap: 14px;
  }

  .brand-logo-image {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    font-size: 0.68rem;
  }

  .header-action {
    padding: 0 17px;
  }

  .hero {
    padding: 48px 0 62px;
  }

  h1 {
    font-size: clamp(2.08rem, 10vw, 2.55rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    aspect-ratio: 4 / 3;
  }

  .about-content {
    padding: 0;
    border-left: 0;
  }

  .credentials-panel {
    padding: 30px 20px;
  }

  .credentials-content {
    padding-left: 0;
    border-left: 0;
  }

  .service-card {
    min-height: auto;
  }

  .steps {
    gap: 42px;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding: 0 14px;
  }

  .contact-panel {
    padding: 31px 20px 22px;
    background-image:
      linear-gradient(rgba(50, 24, 72, 0.35), rgba(50, 24, 72, 0.43)),
      url("assets/fondo-contacto-minimalista.jpg");
    background-position: 17% center;
  }

  .contact-direct {
    padding: 29px 22px 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .footer-links {
    text-align: left;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    padding-right: 13px;
  }

  .floating-whatsapp span {
    display: none;
  }
}
