@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/open-sans-latin.woff2) format("woff2");
}

:root {
  --teal: #1e8190;
  --teal-dark: #176874;
  --coral: #f05a5a;
  --text: #595959;
  --heading: #515151;
  --dark: #252b2d;
  --footer: #292e31;
  --footer-bottom: #222628;
  --light: #efefef;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-weight: 400; color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
strong { font-weight: 700; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 38px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-sm { padding: 8px 24px; font-size: 14px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #d94848; }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--teal); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--dark); color: #fff; }
.topbar { border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; }
.topbar a:hover { color: #9fd3db; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .02em; border-bottom: 2px solid #fff; line-height: 1.3; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #9fd3db; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  background: #353c40 center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(53, 60, 64, .25); }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-size: 56px; margin-bottom: .25em; }
.hero p { font-size: 20px; margin: 0 0 34px; }
.hero-home { background-image: url(/img/hero-montanas.jpg); }
.hero-service { min-height: 360px; background-image: url(/img/psicologia-clinica-hero.jpg); }
.hero-service::before { background: rgba(37, 43, 45, .55); }

/* Sections */
section[id] { scroll-margin-top: 96px; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 35px; margin-bottom: 14px; }
.section-title::after { content: ""; display: block; width: 50px; height: 2px; margin: 18px auto 0; background: var(--teal); }
.lead { text-align: center; max-width: 900px; margin: 0 auto 40px; }

.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--light); }
.split-text { padding: 70px 50px; align-self: center; max-width: 620px; justify-self: end; }
.split-text h2 { font-size: 35px; }
.split-text p { font-size: 15px; margin: 0 0 30px; }
.split-img { background: url(/img/psicologia-clinica-hero.jpg) center / cover no-repeat; min-height: 420px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.profile { text-align: center; }
.profile img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 10px auto 24px; }
.profile h3 { font-size: 39px; margin-bottom: .1em; }
.profile h4 { font-size: 24px; margin-bottom: 1em; }
.profile p { text-align: justify; max-width: 1000px; margin: 0 auto; font-size: 15px; }

.cta { background: var(--light); padding: 30px 0; }
.cta .container { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta p { margin: 0; font-size: 22px; color: var(--teal); }
.cta-teal { background: var(--teal); padding: 70px 0; }
.cta-teal p { color: #fff; }

/* FAQ */
.faq { max-width: 1000px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #d5d8dc; }
.faq summary { cursor: pointer; padding: 15px; font-weight: 700; color: var(--teal); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸"; display: inline-block; width: 1.2em; transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq .answer { padding: 0 15px 15px 35px; }
.faq .answer p { margin: 0 0 .8em; }

/* Service page */
.service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 30px; }
.service-body p, .service-text p { text-align: justify; font-size: 15px; }
.note { font-size: 14px; padding: 24px 0; }

/* Footer */
.site-footer { background: var(--footer); color: #d2d2d2; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 70px 20px 50px; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 24px; }
.site-footer a { color: #d2d2d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; }
.social { display: flex; gap: 12px; font-size: 22px; }
.footer-bottom { background: var(--footer-bottom); text-align: center; padding: 22px 20px; font-size: 13px; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 3px;
  background: rgba(0, 0, 0, .35); color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .split, .service-body, .footer-cols { grid-template-columns: 1fr; }
  .split-text { padding: 50px 20px; justify-self: stretch; max-width: none; }
  .split-img { min-height: 300px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 60px 0; }
}

@media (max-width: 600px) {
  .topbar .address { display: none; }
  .topbar .container { justify-content: center; }
  .topbar a { margin: 0 8px; }
  .navbar .container { justify-content: center; padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 6px 18px; justify-content: center; }
  .nav a { font-size: 14px; }
  .site-header { position: static; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 32px; }
  .profile h3 { font-size: 30px; }
  .cta p { text-align: center; font-size: 19px; }
}
