@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --burgundy: #5B0606;
  --burgundy-dark: #3F0303;
  --espresso: #2F241D;
  --coffee: #5F5146;
  --sand: #EFE5DA;
  --ivory: #F7F2EC;
  --white: #FFFFFF;
  --line: rgba(47, 36, 29, .14);
  --shadow: 0 24px 70px rgba(47, 36, 29, .14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--espresso);
  background: var(--ivory) url('/assets/images/textura-papel.webp') center top / 1000px auto repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(247, 242, 236, .76);
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 12px 18px;
  background: var(--burgundy);
  color: var(--white);
  z-index: 100;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}
.narrow { width: min(calc(100% - 36px), 880px); }
.section-pad { padding: clamp(70px, 8vw, 116px) 0; }
.soft-bg { background: rgba(239, 229, 218, .58); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 236, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(47, 36, 29, .10);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.brand-text { line-height: 1.1; }
.brand-text small {
  color: var(--coffee);
  font-weight: 500;
  font-size: .78rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: .95rem;
  color: rgba(47, 36, 29, .82);
}
.nav a:hover { color: var(--burgundy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(91, 6, 6, .23);
}
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-secondary {
  background: rgba(255, 255, 255, .88);
  color: var(--espresso);
  border-color: rgba(255, 255, 255, .48);
}
.btn-outline {
  color: var(--burgundy);
  border-color: rgba(91, 6, 6, .28);
  background: rgba(255, 255, 255, .45);
}
.btn-small { min-height: 40px; padding: 0 18px; font-size: .82rem; }

.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background: url('/assets/images/terapia-psicologica-jose-miguel.webp') center / cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(47,36,29,.86), rgba(47,36,29,.48) 48%, rgba(47,36,29,.35)),
    linear-gradient(0deg, rgba(47,36,29,.24), rgba(47,36,29,.16));
}
.hero-content {
  position: relative;
  padding: 115px 0 70px;
  max-width: var(--max);
}
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  color: rgba(255,255,255,.84);
}
.eyebrow.dark { color: var(--burgundy); }
h1, h2, h3, .quote {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
}
h1 {
  max-width: 860px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
}
h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
  color: var(--espresso);
}
h3 { font-size: 1.55rem; color: var(--espresso); }
.hero-lead {
  max-width: 720px;
  margin: 28px 0 34px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.86);
}
.hero-actions,
.contact-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.trust-row {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trust-row > div {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.trust-row > div:last-child { border-right: 0; }
.trust-row strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; }
.trust-row span { display: block; color: rgba(255,255,255,.78); font-size: .9rem; }

.intro-grid,
.two-col,
.feature-grid,
.location-grid,
.review-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}
.section-copy p,
.quote-card p,
.review-summary p,
.contact-card p,
.section-heading p,
.service-card p,
.problem-card p,
.faq p {
  color: rgba(47, 36, 29, .76);
  font-size: 1.05rem;
}
.section-copy p { max-width: 650px; }
.portrait-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 14px;
}
.portrait-card img { border-radius: 20px; aspect-ratio: 4 / 4.3; object-fit: cover; }

.quote-card {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 58px);
  box-shadow: 0 20px 60px rgba(47, 36, 29, .08);
}
.quote {
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: var(--espresso);
  margin-bottom: 30px;
}
.image-stack { position: relative; min-height: 580px; }
.image-main,
.image-secondary,
.feature-image img,
.map-card img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.image-main {
  width: 82%;
  height: 430px;
  object-fit: cover;
  margin-left: auto;
}
.image-secondary {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  height: 260px;
  object-fit: cover;
  border: 12px solid var(--ivory);
}
.feature-image img { width: 100%; aspect-ratio: 4 / 3; }
.check-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: rgba(47,36,29,.82);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--burgundy);
}

.section-heading { margin-bottom: 46px; }
.centered { text-align: center; }
.centered p { margin-inline: auto; max-width: 680px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.problem-card {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  min-height: 205px;
}
.problem-card h3 { font-size: 1.45rem; margin-bottom: 14px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(47, 36, 29, .09);
}
.service-card img { width: 100%; height: 240px; object-fit: cover; }
.service-content { padding: 28px; }
.service-content h3 { margin-bottom: 14px; }
.price {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--burgundy);
}

.map-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 460px;
}
.map-card img { width: 100%; height: 520px; border-radius: 0; }
.map-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 22px;
  border-radius: 20px;
  color: var(--white);
  background: rgba(47,36,29,.72);
  backdrop-filter: blur(10px);
}
.map-caption strong,
.map-caption span { display: block; }
.map-caption span { color: rgba(255,255,255,.78); }

.review-grid { grid-template-columns: .85fr 1.15fr; }
.rating {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.4rem !important;
  line-height: .9;
  color: var(--espresso) !important;
  margin: 22px 0 18px;
}
.rating span {
  display: block;
  margin-top: 12px;
  font-family: Inter, system-ui, sans-serif;
  color: #C99D39;
  font-size: 1.5rem;
  letter-spacing: .08em;
}
.review-cards {
  display: grid;
  gap: 16px;
}
.review-cards blockquote {
  margin: 0;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  color: rgba(47,36,29,.82);
  box-shadow: 0 12px 42px rgba(47,36,29,.06);
}
.review-cards blockquote::before { content: "“"; color: var(--burgundy); font-size: 1.8rem; font-family: Georgia, serif; }

.accordion {
  display: grid;
  gap: 14px;
}
details {
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--espresso);
}
summary::marker { color: var(--burgundy); }

.contact-card {
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 8px);
  padding: clamp(42px, 8vw, 86px);
  box-shadow: var(--shadow);
}
.contact-card .contact-actions { justify-content: center; margin-top: 30px; }
.urgent-note {
  margin: 28px auto 0;
  max-width: 760px;
  font-size: .95rem !important;
}

.site-footer {
  padding: 34px 0;
  background: var(--espresso);
  color: rgba(255,255,255,.78);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .95rem;
}
.footer-inner p { margin: 0; }

@media (max-width: 980px) {
  .nav { display: none; }
  .intro-grid,
  .two-col,
  .feature-grid,
  .location-grid,
  .review-grid { grid-template-columns: 1fr; }
  .hero { min-height: 740px; }
  .trust-row,
  .problem-grid,
  .service-grid { grid-template-columns: 1fr; }
  .image-stack { min-height: auto; }
  .image-main,
  .image-secondary { position: static; width: 100%; height: auto; border: 0; margin: 0 0 18px; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .header-inner { min-height: 70px; }
  .brand-text { display: none; }
  .btn-small { padding: 0 14px; }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 82px; }
  .hero-actions .btn,
  .contact-actions .btn,
  .location-actions .btn { width: 100%; }
  .trust-row { margin-top: 36px; }
  .trust-row > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .trust-row > div:last-child { border-bottom: 0; }
  .service-card img { height: 220px; }
  .footer-inner { display: grid; }
}

/* Mobile refinement v2: layout specifically designed for phones */
.mobile-sticky-cta { display: none; }

@media (max-width: 760px) {
  :root {
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 14px 38px rgba(47, 36, 29, .11);
  }

  html { scroll-padding-top: 76px; }
  body { padding-bottom: 0; }

  .container,
  .narrow {
    width: min(calc(100% - 30px), var(--max));
  }

  .section-pad {
    padding: 76px 0;
  }

  .site-header {
    background: rgba(247, 242, 236, .96);
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: .9rem;
    flex: 0 0 auto;
  }

  .brand-text {
    display: block;
    font-size: .93rem;
    white-space: nowrap;
  }

  .brand-text small {
    display: none;
  }

  .header-inner > .btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: .75rem;
    letter-spacing: .01em;
    box-shadow: none;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    display: block;
    color: var(--white);
  }

  .hero-bg {
    background-position: 58% center;
    transform: none;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(47,36,29,.38) 0%, rgba(47,36,29,.40) 48%, rgba(47,36,29,.56) 100%),
      linear-gradient(90deg, rgba(91,6,6,.08), rgba(47,36,29,.04));
  }

  .hero-content {
    padding: 94px 0 64px;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: .74rem;
    line-height: 1.4;
    letter-spacing: .16em;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 11vw, 4rem);
    line-height: .96;
    letter-spacing: -.04em;
  }

  h2 {
    font-size: clamp(2.35rem, 9vw, 3.15rem);
    line-height: .98;
    letter-spacing: -.035em;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-lead {
    margin: 24px 0 32px;
    font-size: 1.08rem;
    line-height: 1.62;
    color: rgba(255,255,255,.94);
    max-width: 32rem;
  }

  .hero-actions,
  .contact-actions,
  .location-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .btn {
    min-height: 52px;
    padding: 0 22px;
    font-size: .92rem;
  }

  .btn:hover { transform: none; }

  .trust-row {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    overflow: visible;
  }

  .trust-row > div {
    padding: 14px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 15px;
    background: rgba(255,255,255,.12);
    text-align: center;
  }

  .trust-row strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .trust-row span {
    margin-top: 4px;
    font-size: .74rem;
    line-height: 1.18;
  }

  .intro-grid,
  .two-col,
  .feature-grid,
  .location-grid,
  .review-grid {
    gap: 34px;
  }

  .section-copy p,
  .quote-card p,
  .review-summary p,
  .contact-card p,
  .section-heading p,
  .service-card p,
  .problem-card p,
  .faq p {
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .portrait-card {
    padding: 0;
    border-radius: 28px;
  }

  .portrait-card img {
    border-radius: 28px;
    aspect-ratio: 4 / 4.25;
  }

  .quote-card {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .quote {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.04;
    margin-bottom: 24px;
  }

  .image-stack {
    display: none;
  }

  .image-main,
  .image-secondary {
    width: 100%;
    height: auto;
    max-height: 310px;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    object-fit: cover;
  }

  .image-secondary {
    display: none;
  }

  .feature-image img {
    border-radius: 28px;
    aspect-ratio: 4 / 3.3;
  }

  .section-heading {
    margin-bottom: 38px;
    text-align: left;
  }

  .section-heading.centered {
    text-align: left;
  }

  .centered p {
    margin-inline: 0;
  }

  .problem-grid,
  .service-grid {
    gap: 18px;
  }

  .problem-card {
    min-height: auto;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .problem-card h3 {
    margin-bottom: 10px;
    font-size: 1.44rem;
  }

  .problem-card p {
    margin: 0;
  }

  .service-card {
    border-radius: 26px;
  }

  .service-card img {
    height: 220px;
  }

  .service-content {
    padding: 26px 24px;
  }

  .service-content h3 {
    margin-bottom: 12px;
  }

  .price {
    margin-top: 14px;
    font-size: 1.04rem;
  }

  .map-card {
    min-height: 0;
    border-radius: 28px;
  }

  .map-card img {
    height: 340px;
  }

  .map-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
    border-radius: 16px;
  }

  .rating {
    font-size: 3.6rem !important;
    margin: 16px 0 12px;
  }

  .rating span {
    margin-top: 8px;
    font-size: 1.1rem;
  }

  .review-cards {
    gap: 16px;
  }

  .review-cards blockquote {
    padding: 26px 24px;
    border-radius: 18px;
    font-size: .96rem;
    line-height: 1.52;
  }

  details {
    padding: 22px 20px;
    border-radius: 22px;
  }

  summary {
    line-height: 1.3;
  }

  .contact-card {
    padding: 40px 24px;
    border-radius: 30px;
  }

  .contact-card .contact-actions {
    margin-top: 22px;
  }

  .contact-actions .btn-outline {
    font-size: .78rem;
    overflow-wrap: anywhere;
  }

  .urgent-note {
    margin-top: 20px;
    font-size: .86rem !important;
  }

  .site-footer {
    padding: 34px 0 38px;
  }

  .footer-inner {
    gap: 12px;
    font-size: .85rem;
  }

  .mobile-sticky-cta {
    display: none !important;
  }
}

@media (max-width: 370px) {
  .header-inner > .btn { display: none; }
  .brand-text { font-size: .9rem; }
  .hero-content { min-height: 560px; }
  h1 { font-size: 2.05rem; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div { text-align: left; padding: 10px 13px; }
  .trust-row strong, .trust-row span { display: inline; }
  .trust-row span::before { content: " · "; }
}
