/* Style Version: 26 - Smile Pro Premium Header Styles */
:root {
  --purple: #AA6CAA;
  --purple-dk: #8B568B;
  --purple-soft: #D9B8D9;
  --green: #7EC094;
  --green-dk: #65A47B;
  --sage: #698F77;
  --navy: #23214A;
  --gray: #E2E3E6;
  --gray-soft: #F5F5F7;
  --white: #FFFFFF;
  --text: #23214A;
  --text-soft: #555;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

}

body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);

  line-height: 1.5;

  -webkit-font-smoothing: antialiased;

}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 
   1. NAVBAR
 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(35, 33, 74, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(35, 33, 74, 0.05);
  border-bottom-color: rgba(170, 108, 170, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1526px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.nav-logo .logo-img {
  display: block;
  width: 175px;
  height: auto;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.nav-logo:hover .logo-img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 37px;
  list-style: none;
}

.nav-links li a {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 0;
  display: block;
  white-space: nowrap;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--purple) 100%);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links li a:hover {
  color: var(--purple-dk);
}

.nav-links li a:hover::after {
  width: 100%;
  left: 0;
}

.nav-links li a.active {
  color: var(--purple);
  font-weight: 700;
}

.nav-links li a.active::after {
  width: 100%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--purple) 100%);
}

.nav-phones {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.nav-phones-mobile {
  display: none;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.phone-pill .pill-icon {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.phone-pill .pill-text {
  line-height: 1;
}

/* Sede San Pedro - Outline-only Sage/Green theme */
.san-pedro-pill {
  background: rgba(105, 143, 119, 0.03);
  border-color: rgba(105, 143, 119, 0.25);
  color: var(--sage);
}

.san-pedro-pill .pill-icon {
  color: var(--green-dk);
}

.san-pedro-pill:hover {
  background: rgba(105, 143, 119, 0.08);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(105, 143, 119, 0.1);
}

.san-pedro-pill:hover .pill-icon {
  transform: scale(1.1) rotate(-10deg);
}

/* Sede Turrialba - Outline-only Purple theme */
.turrialba-pill {
  background: rgba(170, 108, 170, 0.03);
  border-color: rgba(170, 108, 170, 0.25);
  color: var(--purple-dk);
}

.turrialba-pill .pill-icon {
  color: var(--purple);
}

.turrialba-pill:hover {
  background: rgba(170, 108, 170, 0.08);
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(170, 108, 170, 0.1);
}

.turrialba-pill:hover .pill-icon {
  transform: scale(1.1) rotate(-10deg);
}

/* 
   2. HERO
 */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  height: 888px;
  background: #F2F2F4;
  position: relative;
  overflow: hidden;
  width: 100%;
}

* .hero-img {
  background: url('../../smile-images-web/img_12.jpg') center/cover no-repeat;
  position: relative;
  height: 888px;
}

.hero-img::after {
  content: '';
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 160px;
  background: linear-gradient(to right, transparent 0%, #F2F2F4 90%);
  pointer-events: none;
}

.hero-img-logo {
  position: absolute;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  z-index: 2;
}

.hero-img-logo svg {
  width: 32px;
  height: 32px;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-divider-line {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--purple-dk) 35%, var(--purple-soft) 70%, var(--sage) 100%);
  position: relative;
  z-index: 10;
}

.hero-content {
  padding: 50px 8% 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 63px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 26px;
  max-width: 520px;
  font-weight: 400;
}

.hero-content p .highlight {
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-top: 4px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: inherit;
  text-align: center;
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn-purple:hover {
  background: var(--purple-dk);
  border-color: var(--purple-dk);
}

.btn-purple-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-purple-outline:hover {
  background: var(--purple);
  color: #fff;
}

.btn-green {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.btn-green:hover {
  background: #557A65;
  border-color: #557A65;
}

/* 
   3. TESTIMONIOS
 */
.testimonios {
  padding: 80px 0 90px;
  text-align: center;
  background: var(--white);
}

.testimonios h2 {
  font-size: 42px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 6px;
  margin-bottom: 50px;
}

.testimonios blockquote {
  max-width: 760px;
  margin: 0 auto 0;
  font-size: 16px;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  font-weight: 400;
  padding-bottom: 30px;
  position: relative;
}

.testimonios .divider {
  width: 100%;
  max-width: 380px;
  height: 3px;
  background: var(--purple);
  margin: 0 auto 30px;
}

.testi-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  min-height: 240px;
}

@media (max-width: 580px) {
  .testi-slider-wrapper {
    min-height: 290px;
  }
}

.testi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.5s;
  transform: scale(0.96) translateY(5px);
  pointer-events: none;
}

.testi-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.testimonios .author {
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 30px;
}

.testi-arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.testi-arrows button {
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--purple);
  background: transparent;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all .25s;
}

.testi-arrows button:hover {
  background: var(--purple);
  color: #fff;
}

/* 
   4. ¿POR QUÃ‰ ELEGIR INVISALIGN? (PURPLE)
 */
.why-invisalign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--purple);
  min-height: 553px;
  width: 100%;
}

.why-img {
  background: url('../../smile-images-web/img_00.jpg') center/cover no-repeat;
}

.why-content {
  padding: 60px 8% 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.why-content h2 {
  font-size: 57px;
  font-weight: 300 !important;
  line-height: 1.2;
  margin-bottom: 30px;
  letter-spacing: -.3px;
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  background: none !important;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}

.why-list li .check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* 
   5. TRATAMIENTOS ESPECIALIZADOS
 */
section.tratamientos {
  padding: 90px 0;
  background: var(--white);
  text-align: center;
}


.tratamientos h2 {
  font-size: 57px;
  font-weight: 300 !important;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -.3px;
}

.tratamientos .sub {
  font-size: 20px;
  color: var(--text-soft);
  margin-bottom: 55px;
}

.tratamientos .trat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  padding-top: 38px;
  padding: 46px;
  height: auto;
}

.trat-card {
  background: var(--gray);
  border-radius: 6px;
  padding: 0 20px 26px;
  text-align: center;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.trat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .1);
}

.trat-card-img {
  height: 180px;
  margin: -30px -20px 18px;
  background-size: cover;
  background-position: center;
  border-radius: 6px 6px 0 0;
  position: relative;
  top: -10px;
}

.trat-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.trat-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* 
   6. TU SONRISA EN MANOS EXPERTAS
 */
.manos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 553px;
  width: 100%;
}

.manos-img {
  background: url('../../smile-images-web/img_01.jpg') center/cover no-repeat;
}

.manos-content {
  background: var(--purple);
  padding: 70px 8% 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.manos-content h2 {
  font-size: 57px;
  font-weight: 200;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  background: none !important;
}

.manos-content .subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.manos-content p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
  width: 70%;
}

/* 
   7. ¿TIENES DUDAS? (FAQ)
 */
.faq-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--white);
  padding: 130px 44px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.faq-content {
  padding: 0 40px 0 8%;
}

.faq-content h2 {
  font-size: 46px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.faq-content .sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 42px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  position: relative;
  padding-left: 36px;
}

.faq-item::after {
  content: '';
  position: absolute;
  left: 36px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #d9d9dc;
}

.faq-q {
  display: flex;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  user-select: none;
  position: relative;
}

.faq-q .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all .3s;
  background: transparent;
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-item.open .faq-q .icon {
  background: var(--green);
  border-color: var(--green);
}

.faq-item.open .faq-q .icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  transition: max-height .35s ease, padding .35s;
  font-weight: 400;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 18px;
}

.faq-img {
  background: url('../../smile-images-web/img_16.jpg') center / cover no-repeat;
  border-radius: 13px;
  height: 611px;
  margin-right: 8%;
  width: 63%;
}

/* 
   8. TU SONRISA EN LAS MEJORES MANOS
 */
.mejores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  position: relative;
  min-height: 720px;
  width: 100%;
}

.mejores-content {
  padding: 80px 70px 80px 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mejores-content h2 {
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 40px;
  letter-spacing: -.3px;
}

.valor-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.valor-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.valor-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.valor-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: #7ec094;
  margin-bottom: 8px;
}

.valor-text p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
}

.mejores-img {
  background: url('../../smile-images-web/img_17.jpg') center/cover no-repeat;
  position: relative;
}

.mejores-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

/* 
   9. HORARIO + RESERVA TU CITA
 */
.contacto-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  padding: 0;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.horario {
  padding: 80px 70px 80px 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horario h3 {
  font-size: 32px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 50px;
}

.horario-table {
  width: 100%;
  border-collapse: collapse;
}

.horario-table tr {
  border-bottom: 4px solid #d9d9dc;
}

.horario-table td {
  padding: 18px 0;
  font-size: 16px;
  color: var(--text);
}

.horario-table td:first-child {
  font-weight: 400;
  color: var(--navy);
}

.horario-table td:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 400;
}

.reserva {
  background: var(--purple);
  margin: 0;
  padding: 80px 36px;
  color: #fff;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  box-shadow: 0 16px 40px rgba(170, 108, 170, .25);
}

.reserva h3 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 24px;
}

.reserva .form-group {
  margin-bottom: 12px;
}

.reserva input,
.reserva select {
  width: 100%;
  padding: 13px 18px;
  border: none;
  background: rgba(255, 255, 255, .32);
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  outline: none;
  font-family: inherit;
}

.reserva input::placeholder {
  color: rgba(255, 255, 255, .9);
}

.reserva select {
  color: #fff;
}

.reserva select option {
  color: var(--navy);
}

.reserva .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .95);
}

.reserva .check-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  appearance: none;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.reserva .check-row input:checked {
  background: #fff;
  box-shadow: inset 0 0 0 4px var(--purple);
}

.reserva .btn-submit {
  display: inline-block;
  padding: 11px 38px;
  background: #fff;
  color: var(--purple);
  border: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.reserva .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

form {
  width: 70%;
  padding: 40px;
}

.contacto-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  padding: 0;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

/* 
   10. ESTADÍSTICAS
 */
.stats {
  background: var(--gray);
  padding: 92px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 6px;
  padding: 36px 22px 32px;
  text-align: center;
}

.stat-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-num {
  font-size: 42px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 400;
}

/* 
   11. EQUIPO
 */
.galeria {
  padding: 80px 0;
  background: var(--white);
}

.galeria-header {
  text-align: center;
  margin-bottom: 50px;
}

.galeria-header .tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.galeria-header h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 8px;
}

.galeria-header p {
  font-size: 14px;
  color: var(--text-soft);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gal-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  background: #fff;
  transition: transform .3s, box-shadow .3s;
}

.gal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
}

.gal-img-wrap {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}

.gal-img {
  background-size: cover;
  background-position: center;
  position: relative;
}

.gal-img::before {
  content: attr(data-label);
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(35, 33, 74, .85);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.gal-img.after::before {
  background: var(--sage);
}

.gal-divider {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  transform: translateY(-50%);
  z-index: 2;
}

.gal-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.gal-divider::before {
  content: '↕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--purple);
  font-weight: 700;
  z-index: 3;
}

.gal-body {
  padding: 20px 22px 22px;
}

.gal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.gal-body p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 10px;
}

.gal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--purple);
  font-weight: 600;
}

.gal-meta i {
  color: var(--sage);
}

/* 
   12. ESPECIALIDADES DENTALES
 */
.especialidades {
  background: #fafafc;
  /* Fondo gris-púrpura ultra suave */
  padding: 95px 0;
}

.esp-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.esp-left h2 {
  font-size: 44px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.2px;
}

.esp-left p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 340px;
}

.esp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.esp-item {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 30px;
  border: 1px solid rgba(9, 21, 64, 0.03);
  box-shadow: 0 10px 30px rgba(9, 21, 64, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.esp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(9, 21, 64, 0.06);
}

/* Resaltar la tarjeta de la Doctora */
.esp-item:has(.tag-dra) {
  border: 1px solid rgba(110, 68, 255, 0.15);
  background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}

.esp-item:has(.tag-dra):hover {
  border-color: var(--purple);
  box-shadow: 0 20px 40px rgba(110, 68, 255, 0.08);
}

.esp-num {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
  margin-right: 6px;
}

.esp-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: inline;
}

.esp-item p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-top: 14px;
}

.esp-item .tag-dra {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  background: rgba(110, 68, 255, 0.07);
  padding: 3px 8px;
  border-radius: 4px;
}

.esp-item .tag-clinica {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  background: rgba(9, 21, 64, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0.85;
}

/* 
   13. LOGRA UNA SONRISA ALINEADA (CTA)
 */
.cta-invisalign {
  padding: 80px 0;
  background: var(--gray);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-text h2 {
  font-size: 38px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -.5px;
}

.cta-text p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 28px;
}

.cta-img {
  display: flex;
  justify-content: center;
}

.cta-img img {
  max-width: 100%;
}

/* 
   14. FOOTER
 */
footer {
  background: var(--white);
  padding: 60px 0;
  color: var(--text-soft);
  border-top: 1px solid #f0f0f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.5fr 1.8fr;
  gap: 30px;
  align-items: start;
}

.footer-brand .footer-logo {
  margin-bottom: 24px;
}


.footer-col h4 {
  font-size: 25px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 2;
  margin-bottom: 2px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
  font-size: 15px;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: var(--sage);
}

/* 
   ANIMACIONES
 */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
}

/* 
   RESPONSIVE
 */
@media (max-width: 1200px) {

  .container,
  .navbar .container {
    padding: 0 24px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 33, 74, 0.03);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.25s;
  }

  .menu-toggle:hover {
    background: rgba(170, 108, 170, 0.08);
    color: var(--purple-dk);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-radius: 0 0 20px 20px;
    border-top: none;
    border-bottom: 1px solid rgba(170, 108, 170, 0.1);
    box-shadow: 0 15px 30px rgba(35, 33, 74, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-phones-mobile {
    display: flex !important;
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    padding: 0 20px;
  }

  .nav-phones-mobile .phone-pill {
    flex: 1;
    max-width: 170px;
    justify-content: center;
    padding: 10px 14px;
  }

  .hero,
  .why-invisalign,
  .manos,
  .faq-section,
  .mejores,
  .contacto-section,
  .esp-inner,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
  }

  .hero-img {
    height: 340px;
  }

  .hero-img,
  .why-img,
  .manos-img,
  .mejores-img {
    min-height: 340px;
  }

  .hero-content,
  .why-content,
  .manos-content,
  .faq-content,
  .mejores-content,
  .horario {
    padding: 50px 32px;
  }

  .reserva {
    margin: 0;
  }

  form {
    width: 100%;
    padding: 30px;
  }

  .faq-img {
    margin: 0 32px;
    height: 380px;
    width: auto;
  }

  .faq-section,
  .stats {
    padding: 50px 0;
  }

  .tratamientos .trat-grid {
    height: auto;
  }

  .tratamientos .trat-grid,
  .stats-grid,
  .equipo-grid,
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-phones {
    display: none;
  }

  .hero-btns {
    flex-wrap: wrap;
  }
}

@media (max-width: 580px) {

  .container,
  .navbar .container {
    padding: 0 16px !important;
  }

  .nav-logo .logo-img {
    width: 135px;
  }

  .nav-phones-mobile {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
  }

  .nav-phones-mobile .phone-pill {
    width: 100%;
    max-width: 260px;
  }

  .btn {
    font-size: 14px !important;
    padding: 10px 18px;
    white-space: normal;
  }

  .reserva .btn-submit {
    font-size: 14px !important;
    padding: 10px 24px;
    width: 100%;
    max-width: 280px;
  }

  .hero-img {
    height: 280px;
    min-height: 280px;
  }

  .hero-content h1,
  .esp-left h2,
  .cta-text h2 {
    font-size: 26px;
  }

  .why-content h2,
  .manos-content h2,
  .faq-content h2,
  .mejores-content h2,
  .testimonios h2,
  .tratamientos h2,
  .galeria-header h2 {
    font-size: 24px;
  }

  .tratamientos .trat-grid {
    padding: 20px 10px;
  }

  .tratamientos .trat-grid,
  .stats-grid,
  .equipo-grid,
  .galeria-grid,
  .esp-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 34px;
  }

  form {
    padding: 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* 
   MEJORAS DE LEGIBILIDAD (Ajustado)
 */
body {
  font-size: 16px;
}

p,
.faq-a,
.trat-card p,
.valor-text p,
.footer-col p,
.why-list li,
.stat-label {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.sub {
  font-size: 20px !important;
}

.faq-q span:last-child {
  font-size: 19px !important;
}


.btn {
  font-size: 17px !important;
}

h2 {
  font-size: 42px !important;
}

h3 {
  font-size: 26px !important;
}

/* Ajustes específicos solicitados por el usuario */
.testimonios blockquote {
  font-size: 24px !important;
  line-height: 1.6 !important;
}

.testimonios .author {
  font-size: 22px !important;
}

.esp-num {
  font-size: 22px !important;
}

@media (max-width: 980px) {
  .reserva {
    margin: 0;
  }

  .manos-content p {

    width: 100%;
  }
}

/* ==========================================
       SECCIÓN QUIÉN SOY - DRA. SUSANA BRENES
       ========================================== */
.quien-soy {
  padding: 90px 0;
  background: var(--white);
  width: 100%;
}

.quien-soy-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.quien-soy-img-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.doc-img {
  width: 100%;
  height: auto;
  display: block;
}

.quien-soy-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
}

.quien-soy-content .tag {
  display: inline-block;
  background: var(--purple-soft);
  color: var(--purple-dk);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px !important;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quien-soy-content h2 {
  font-size: 48px !important;
  font-weight: 300 !important;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--navy);
}

.quien-soy-content .specialty {
  font-size: 19px !important;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quien-soy-content .specialty span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quien-soy-content .specialty .cod {
  font-size: 15px !important;
  color: var(--text-soft);
  font-weight: 400;
}

.quien-soy-content p {
  margin-bottom: 18px;
  color: var(--text-soft);
}

.quien-soy-content .locations {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.quien-soy-content .loc-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-soft);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  font-weight: 600;
  color: var(--navy);
  font-size: 15px !important;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.quien-soy-content .loc-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.quien-soy-content .loc-tag i {
  color: var(--purple);
  font-size: 16px;
}

/* Responsivo para Quien Soy */
@media (max-width: 980px) {
  .quien-soy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quien-soy-img-container {
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 580px) {
  .quien-soy {
    padding: 60px 0;
  }

  .quien-soy-content h2 {
    font-size: 28px !important;
  }
}

/* ==========================================
       GALERÍA DE LA CLÍNICA - NUEVO DISEÑO
       ========================================== */
.galeria-clinica {
  padding: 95px 0;
  background: var(--gray-soft);
  text-align: center;
}

.galeria-clinica-header {
  margin-bottom: 50px;
}

.galeria-clinica-header .tag {
  display: inline-block;
  background: var(--purple-soft);
  color: var(--purple-dk);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px !important;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.galeria-clinica-header h2 {
  font-size: 42px !important;
  font-weight: 300 !important;
  color: var(--navy);
  margin-bottom: 15px;
}

.galeria-clinica-header p {
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto 35px;
}

/* Filtros */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-soft);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  box-shadow: 0 8px 20px rgba(170, 108, 170, 0.25);
}

/* Grid */
.gallery-grid-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  aspect-ratio: 1 / 1;
}

.gallery-item.hidden {
  display: none !important;
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(35, 33, 74, 0.85) 0%, rgba(35, 33, 74, 0.2) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: left;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .category {
  color: var(--purple-soft);
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1.3;
}

/* Recorte de barras blancas (letterbox) */
.gallery-img-wrapper img.crop-letterbox {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.gallery-item:hover .gallery-img-wrapper img.crop-letterbox {
  /* No scaling overrides */
}

/* Responsivo Galería */
@media (max-width: 980px) {
  .gallery-grid-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 580px) {
  .gallery-grid-masonry {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .galeria-clinica-header h2 {
    font-size: 28px !important;
  }
}

/* ==========================================
       DETALLES GRÁFICOS Y EFECTOS PREMIUM (SMILE PRO)
       ========================================== */

/* 1. Barra de progreso de lectura */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--purple), var(--green));
  width: 0%;
  z-index: 1100;
  transition: width 0.1s ease-out;
}

/* 2. Orbes decorativos difuminados de fondo (Blur Blobs) */
.blob-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blur-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  top: 15%;
  left: -200px;
  background: var(--purple);
}

.blob-2 {
  top: 45%;
  right: -200px;
  background: var(--green);
}

.blob-3 {
  top: 75%;
  left: -100px;
  background: var(--purple);
}

/* Los ajustes de Glassmorphism y la línea animada expansiva del menú han sido unificados en la sección superior del navbar */

/* 5. Títulos principales con gradiente de color sofisticado */
h2,
.hero-content h1 {
  background: linear-gradient(135deg, var(--navy) 40%, var(--purple) 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* 6. Efecto brillo metálico ("Shine") en botones */
.btn,
.btn-destacado,
.btn-submit {
  position: relative !important;
  overflow: hidden !important;
}

.btn::after,
.btn-destacado::after,
.btn-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: none;
  pointer-events: none;
}

.btn:hover::after,
.btn-destacado:hover::after,
.btn-submit:hover::after {
  left: 140%;
  transition: left 0.8s ease-in-out;
}

/* 7. Sombras suaves de múltiples capas para mayor profundidad en tarjetas */
.esp-item,
.trat-card,
.gallery-item {
  box-shadow: 0 4px 6px rgba(9, 21, 64, 0.01),
    0 10px 30px rgba(9, 21, 64, 0.02) !important;
}

/* 14. BOTÓN FLOTANTE DE WHATSAPP MULTI-SEDE */
.whatsapp-floating-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: inherit;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  border: none;
  color: #ffffff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease;
  outline: none;
  padding: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  background-color: #20ba5a;
}

.whatsapp-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse-animation 2s infinite;
  pointer-events: none;
}

@keyframes wa-pulse-animation {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(35, 33, 74, 0.15);
  border: 1px solid rgba(35, 33, 74, 0.05);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  pointer-events: none;
}

.whatsapp-floating-container.active .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-tooltip-header {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(35, 33, 74, 0.06);
  padding-bottom: 8px;
}

.whatsapp-tooltip-header strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}

.whatsapp-tooltip-header p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.whatsapp-tooltip-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.04);
  border: 1px solid rgba(37, 211, 102, 0.1);
  text-decoration: none;
  transition: all 0.25s ease;
}

.whatsapp-option:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.whatsapp-option .option-icon {
  font-size: 20px;
  color: #25D366;
  display: flex;
  align-items: center;
}

.whatsapp-option .option-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.whatsapp-option .option-text strong {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

.whatsapp-option .option-text span {
  font-size: 12px;
  color: #555;
}

@media (max-width: 580px) {
  .whatsapp-floating-container {
    bottom: 20px;
    right: 20px;
  }
}