/* =============================================
   Lic. Emiliano Maida - Editorial clinical profile
   ============================================= */

:root {
  --ink: #202a33;
  --ink-soft: #556170;
  --paper: #f3eee5;
  --paper-soft: #faf7f1;
  --paper-deep: #e5dccf;
  --line: rgba(32, 42, 51, 0.14);
  --line-strong: rgba(32, 42, 51, 0.24);
  --accent: #b56a3f;
  --accent-dark: #8f4f28;
  --accent-soft: #dbc3ad;
  --deep: #26313a;
  --deep-soft: #33414c;
  --cream-text: rgba(250, 247, 241, 0.84);
  --whatsapp: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(181, 106, 63, 0.06), transparent 28%),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 28%, var(--paper-soft) 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

/* ---- Hamburger Button ---- */

.hamburger-btn {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1060;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(243, 238, 229, 0.12);
  border-radius: 14px;
  background: rgba(32, 42, 51, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hamburger-btn:hover {
  background: rgba(32, 42, 51, 0.96);
  transform: translateY(-1px);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: rgba(250, 247, 241, 0.9);
  border-radius: 999px;
}

/* ---- Sidebar ---- */

.sidebar {
  width: 290px !important;
  border-right: 1px solid rgba(243, 238, 229, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(180deg, #1f2831 0%, #1b232b 100%) !important;
}

.sidebar .offcanvas-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(243, 238, 229, 0.08);
}

.sidebar .offcanvas-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #f0dfcf;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  list-style: none;
  padding: 1rem 0;
}

.sidebar-nav li + li {
  margin-top: 0.25rem;
}

.sidebar-link {
  position: relative;
  display: block;
  padding: 0.85rem 1.5rem;
  color: rgba(250, 247, 241, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  bottom: 0.7rem;
  width: 0;
  height: 1px;
  background: rgba(240, 223, 207, 0.9);
  transition: width 0.25s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #f8efe6;
  padding-left: 1.8rem;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
  width: 28px;
}

/* ---- Hero Section ---- */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 4rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 22%, rgba(181, 106, 63, 0.12), transparent 25%),
    radial-gradient(circle at 24% 72%, rgba(219, 195, 173, 0.18), transparent 30%),
    linear-gradient(135deg, #24303a 0%, #28353e 48%, #31414b 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(250, 247, 241, 0.04) 58%, rgba(250, 247, 241, 0.04) 59%, transparent 59%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-text {
  padding: 2rem 0;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-pre-title {
  margin-bottom: 0;
  color: rgba(250, 247, 241, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-city {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(250, 247, 241, 0.12);
  border-radius: 999px;
  color: #f0dfcf;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 0.65rem;
  color: var(--paper-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 8vw, 6.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-bottom: 1rem;
  max-width: 34rem;
  color: #f2e3d3;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-tagline {
  margin-bottom: 2rem;
  max-width: 34rem;
  color: rgba(250, 247, 241, 0.72);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn-warm,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-warm {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #c27949 0%, #ae6035 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(181, 106, 63, 0.22);
}

.btn-warm:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(181, 106, 63, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(250, 247, 241, 0.16);
  background: rgba(250, 247, 241, 0.04);
  color: #f8efe6;
}

.btn-ghost:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(250, 247, 241, 0.28);
  background: rgba(250, 247, 241, 0.08);
}

.hero-highlights {
  display: grid;
  gap: 0.8rem;
  max-width: 33rem;
  margin: 0;
  padding: 1.3rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(250, 247, 241, 0.12);
}

.hero-highlights li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(250, 247, 241, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-highlights li::before {
  content: '';
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #d7baa0;
}

.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.hero-image-wrapper {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(250, 247, 241, 0.05);
  border: 1px solid rgba(250, 247, 241, 0.1);
  box-shadow: 0 28px 60px rgba(7, 10, 13, 0.22);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 220px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(250, 247, 241, 0.9);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(7, 10, 13, 0.12);
}

.hero-image-caption span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-image-caption strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ---- Sections ---- */

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-cream {
  background: rgba(243, 238, 229, 0.8);
}

.section-white {
  background: rgba(250, 247, 241, 0.95);
}

.section-warm {
  background:
    linear-gradient(180deg, rgba(229, 220, 207, 0.74) 0%, rgba(250, 247, 241, 0.92) 100%);
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(181, 106, 63, 0.12), transparent 24%),
    linear-gradient(135deg, var(--deep) 0%, var(--deep-soft) 100%);
}

.section-title {
  margin-bottom: 0.45rem;
  color: var(--ink);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-title-light {
  color: var(--paper-soft);
}

.title-accent {
  margin-bottom: 2.4rem;
  text-align: center;
}

.title-accent span {
  display: inline-block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.title-accent-light span {
  background: linear-gradient(90deg, transparent, #dcbda4, transparent);
}

.lead-text {
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.9;
}

.section-cream p,
.section-white p,
.section-warm p {
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---- About ---- */

.profile-note {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border-left: 2px solid rgba(181, 106, 63, 0.46);
  background: rgba(250, 247, 241, 0.66);
}

.profile-note p {
  margin-bottom: 0;
  color: var(--ink);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.credential-item {
  padding: 1.25rem 1.2rem 1.1rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(250, 247, 241, 0.56);
}

.credential-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.credential-text strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-text span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---- Specialty Cards ---- */

.specialty-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(32, 42, 51, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.48));
  box-shadow: 0 16px 32px rgba(26, 32, 38, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.specialty-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 106, 63, 0.22);
  box-shadow: 0 20px 36px rgba(26, 32, 38, 0.08);
}

.specialty-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(181, 106, 63, 0.88);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.specialty-card h3 {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.specialty-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ---- Musicoterapia Section ---- */

.mt-explanation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}

.mt-item {
  height: 100%;
  padding: 1.6rem;
  border-left: 2px solid rgba(181, 106, 63, 0.42);
  background: rgba(250, 247, 241, 0.72);
}

.mt-item h4 {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.mt-item p {
  margin-bottom: 0;
}

/* ---- Interdisciplinary ---- */

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

.care-card {
  min-height: 100%;
  padding: 1.45rem;
  border: 1px solid rgba(32, 42, 51, 0.08);
  border-radius: 18px;
  background: rgba(250, 247, 241, 0.74);
}

.care-role {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.team-note {
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.team-note p {
  margin-bottom: 0;
  color: var(--ink);
}

/* ---- Contact Section ---- */

.contact-card {
  padding: 3rem 2.4rem;
  border: 1px solid rgba(250, 247, 241, 0.12);
  border-radius: 26px;
  background: rgba(250, 247, 241, 0.04);
  box-shadow: 0 22px 44px rgba(7, 10, 13, 0.08);
}

.contact-kicker {
  margin-bottom: 0.55rem;
  color: rgba(220, 189, 164, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-text {
  margin-bottom: 2rem;
  color: var(--cream-text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.btn-whatsapp,
.contact-email-btn {
  min-width: min(100%, 320px);
  border-radius: 14px;
  padding: 0.95rem 1.4rem;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp {
  border: 1px solid transparent;
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  color: #fff;
  transform: translateY(-1px);
  background: #1fab55;
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.24);
}

.contact-email-btn {
  border-color: rgba(250, 247, 241, 0.18);
}

.contact-email-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 247, 241, 0.32);
  background: rgba(250, 247, 241, 0.08);
}

.contact-location {
  margin-bottom: 0;
  color: rgba(250, 247, 241, 0.52);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
  .hero-section {
    padding-top: 5.5rem;
  }

  .hero-section .row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-kicker-row,
  .hero-actions {
    justify-content: center;
  }

  .hero-tagline,
  .hero-subtitle,
  .hero-highlights {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlights {
    text-align: left;
  }

  .hero-image-wrapper {
    width: min(100%, 340px);
  }

  .hero-image-caption {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .section {
    padding: 4.5rem 0;
  }

  .mt-explanation,
  .care-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  body::before {
    opacity: 0.1;
  }

  .hamburger-btn {
    top: 1rem;
    left: 1rem;
    width: 46px;
    height: 46px;
  }

  .hero-title {
    font-size: 3.1rem;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .hero-image-wrapper {
    width: min(100%, 290px);
  }

  .section-title {
    font-size: 2.4rem;
  }

  .contact-card {
    padding: 2.3rem 1.25rem;
  }

  .btn-warm,
  .btn-ghost,
  .btn-whatsapp,
  .contact-email-btn {
    width: 100%;
  }
}
