/* TRATAMIENTOS.CSS */

/* ── PAGE HERO ── */
.page-hero {
  padding: 148px 64px 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background: radial-gradient(ellipse at 60% 40%, rgba(57, 178, 190, 0.10) 0%, transparent 70%);
}

.page-hero-tag {
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.page-hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
}

/* ── INTRODUCCIÓN ── */
.trat-intro {
  padding: 64px 64px 50px;
  background: var(--gray-light);
  text-align: center;
}

.trat-intro p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.75;
  max-width: 620px;
  margin: 18px auto 0;
}

/* ── BLOQUES DE TRATAMIENTO ── */
.trat-block {
  padding: 70px 64px;
}

.trat-block:nth-child(even) {
  background: var(--gray-light);
}

.trat-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gray-mid);
}

.trat-block-header h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  font-weight: 700;
}

.trat-block-header h2 em {
  color: var(--teal-dark);
  font-style: normal;
}

.trat-block-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trat-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 28px;
}

.trat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-mid);
  color: var(--text);
  font-size: 15px;
}

.trat-list li:last-child {
  border-bottom: none;
}

.trat-list-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── CUÁNDO ACUDIR ── */
.cuando {
  padding: 70px 64px;
  background: var(--navy);
}

.cuando .section-title {
  color: var(--white);
}

.cuando .section-tag {
  color: var(--teal);
}

.cuando .section-line {
  background: var(--teal);
}

.cuando .section-header {
  margin-bottom: 48px;
}

.cuando-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.cuando-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 22px;
  transition: all .2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cuando-item:hover {
  background: rgba(57, 178, 190, 0.08);
  border-color: rgba(57, 178, 190, 0.2);
}

.cuando-item-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cuando-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-section {
  padding: 80px 64px;
  background: var(--white);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-mid);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-mid);
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-btn h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
}

.faq-icon svg {
  transition: transform .3s;
}

.faq-item.open .faq-icon {
  border-color: var(--teal);
  background: var(--teal-light);
}

.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}

.faq-answer p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.75;
  padding-bottom: 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-hero {
    padding: 120px 32px 60px;
  }

  .trat-intro,
  .trat-block,
  .cuando,
  .faq-section {
    padding: 60px 32px;
  }

  .cuando-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 20px 50px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .trat-intro,
  .trat-block,
  .cuando,
  .faq-section {
    padding: 50px 20px;
  }

  .cuando-grid {
    grid-template-columns: 1fr;
  }

  .trat-block-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ── ANIMACIÓN CUANDO-ITEMS ── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInTop {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInBottom {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.cuando-item {
  opacity: 0;
}
 
.cuando-item.visible:nth-child(1) { animation: slideInLeft   .6s ease forwards; animation-delay: .0s; }
.cuando-item.visible:nth-child(2) { animation: slideInTop    .6s ease forwards; animation-delay: .1s; }
.cuando-item.visible:nth-child(3) { animation: slideInRight  .6s ease forwards; animation-delay: .2s; }
.cuando-item.visible:nth-child(4) { animation: slideInLeft   .6s ease forwards; animation-delay: .3s; }
.cuando-item.visible:nth-child(5) { animation: slideInBottom .6s ease forwards; animation-delay: .4s; }
.cuando-item.visible:nth-child(6) { animation: slideInRight  .6s ease forwards; animation-delay: .5s; }