/* ═══════════════════════════════════════════════════════════════
   SONRISA PREMIUM MEDELLÍN — Plan Completo Pronto
   Paleta: Emerald/Gold (diferenciada del Esencial azul/cyan)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --primary:      #1a6b5a;
  --primary-dark:  #0f4d3f;
  --secondary:    #2ba88a;
  --accent:       #c9954c;
  --accent-soft:  #f5edd3;
  --cream:        #faf8f4;
  --white:        #ffffff;
  --gray-light:   #f2efe9;
  --gray-mid:     #e0d9cc;
  --text-dark:    #1a2420;
  --text-mid:     #3d4f46;
  --text-light:   #7a8a82;
  --shadow-sm:  0 2px 12px rgba(26,107,90,0.08);
  --shadow-md:  0 8px 32px rgba(26,107,90,0.12);
  --shadow-lg:  0 20px 60px rgba(26,107,90,0.16);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Fraunces', 'Georgia', serif;
  --font-sans:  'Inter', 'Open Sans', sans-serif;
  --font-body:  'Open Sans', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── ETHICS BANNER ─────────────────────────────────────────── */
.ethics-banner {
  background: var(--accent);
  color: #4a3810;
  padding: 10px 5%;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
  border-bottom: 2px solid #b8842f;
  position: relative;
  z-index: 1001;
}
.ethics-banner i { margin-right: 8px; }
.ethics-banner a { color: #4a3810; text-decoration: underline; font-weight: 700; }

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
  padding: 0 5%;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.navbar.scrolled { height: 60px; box-shadow: var(--shadow-md); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: white;
}
.nav-logo-text strong {
  display: block; font-family: var(--font-serif); font-size: 17px;
  font-weight: 600; color: var(--primary); letter-spacing: -0.4px;
  line-height: 1.1; font-variation-settings: "opsz" 100;
}
.nav-logo-text span {
  font-size: 10px; color: var(--text-light); font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-mid); font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: var(--transition); white-space: nowrap; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 2px; background: var(--primary);
  transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: calc(100% - 16px); }
.nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary) !important; color: white !important;
  border-radius: 50px !important; padding: 10px 20px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); display: block; }

/* ─── HERO (Ken Burns effect on image) ──────────────────────── */
.hero {
  min-height: 90vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  animation: kenburns 25s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,77,63,0.72) 0%, rgba(26,107,90,0.55) 50%, rgba(43,168,138,0.32) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 80px 5%;
}
.hero-text { max-width: 680px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 8px 18px; margin-bottom: 24px;
  color: white; font-size: 13px; font-weight: 600;
}
.hero-badge i { color: var(--accent); }

.hero-text h1 {
  font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400; color: white; line-height: 1.08;
  letter-spacing: -2px; margin-bottom: 22px;
  font-variation-settings: "opsz" 144;
}
.hero-text h1 em { font-style: italic; color: var(--accent); font-weight: 400; }

.hero-text p {
  font-size: 17px; color: rgba(255,255,255,0.88);
  line-height: 1.7; margin-bottom: 36px; max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--primary);
  padding: 15px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: var(--transition); box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.btn-primary-filled {
  background: var(--primary); color: white;
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary-filled:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: white;
  padding: 15px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition); cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }

.hero-trust-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  color: white; font-size: 12.5px; font-weight: 600;
}
.hero-trust-badge i { color: var(--accent); font-size: 13px; }
.hero-trust-badge strong { font-weight: 800; }

/* ─── LOGOS BAR ──────────────────────────────────────────────── */
.logos-bar {
  padding: 40px 5%; background: var(--cream);
  border-bottom: 1px solid var(--gray-mid);
}
.logos-bar-label {
  text-align: center; font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-light); font-weight: 700;
  margin-bottom: 20px;
}
.logos-bar-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 40px;
  flex-wrap: wrap; opacity: 0.55;
}
.logos-bar-inner img, .logos-bar-inner svg {
  height: 32px; width: auto; filter: grayscale(100%);
  transition: var(--transition);
}
.logos-bar-inner span {
  font-size: 13px; font-weight: 700; color: var(--text-mid);
  white-space: nowrap; letter-spacing: 0.5px;
}

/* ─── TRUST BAR ──────────────────────────────────────────────── */
.trust-bar { background: var(--primary); padding: 20px 5%; }
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  gap: 16px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: white; }
.trust-item i { font-size: 17px; color: var(--accent); }
.trust-item span { font-size: 13.5px; font-weight: 600; }

/* ─── BREADCRUMBS ────────────────────────────────────────────── */
.breadcrumbs {
  padding: 16px 5%; background: var(--cream);
  border-bottom: 1px solid var(--gray-mid);
}
.breadcrumbs-inner {
  max-width: 1200px; margin: 0 auto;
  font-size: 13px; color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; }

/* ─── SECTION COMMON ─────────────────────────────────────────── */
.section { padding: 90px 5%; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--cream) 0%, var(--gray-light) 100%); }
.section-warm { background: linear-gradient(180deg, var(--white) 0%, var(--accent-soft) 100%); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,107,90,0.1); color: var(--primary);
  border-radius: 50px; padding: 6px 18px; font-size: 11px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

.section-header h2 {
  font-family: var(--font-serif); font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400; color: var(--text-dark); line-height: 1.12;
  letter-spacing: -1.5px; margin-bottom: 18px;
  font-variation-settings: "opsz" 120;
}
.section-header h2 em { font-style: italic; color: var(--primary); }
.section-header p {
  font-size: 17px; color: var(--text-mid); line-height: 1.7;
  max-width: 620px; margin: 0 auto;
}

/* ─── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.service-card {
  background: white; border-radius: var(--radius-lg);
  padding: 36px 30px; border: 1.5px solid var(--gray-mid);
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card { cursor: pointer; }
.service-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
/* La card entera es clickeable via el link que cubre todo el area */
.service-card .service-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.service-icon {
  width: 60px; height: 60px;
  background: rgba(26,107,90,0.1); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--primary); margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: white; transform: scale(1.08); }
.service-card h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.service-price { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: var(--primary); margin-bottom: 6px; letter-spacing: -0.5px; }
.service-price small { font-size: 0.55em; color: var(--text-light); }
.service-price-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: 13.5px; font-weight: 700;
  text-decoration: none; transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* ─── TWO COLUMN LAYOUT ──────────────────────────────────────── */
.two-col {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

.image-frame {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); position: relative;
  overflow: visible; /* visible para que el badge no se corte */
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 15%; /* prioriza la cara/cabeza */
  border-radius: var(--radius-xl);
  transition: transform 0.8s ease;
}
.image-frame:hover img { transform: scale(1.04); }
.image-badge {
  position: absolute; bottom: -16px; right: 16px; /* ajustado: dentro del frame, no fuera */
  background: white; border-radius: var(--radius-md);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  z-index: 3;
}
.image-badge .number { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; color: var(--primary); line-height: 1; }
.image-badge .label { font-size: 12px; color: var(--text-mid); font-weight: 600; line-height: 1.3; }

.content-text h2 {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400; color: var(--text-dark); line-height: 1.12;
  letter-spacing: -1px; margin-bottom: 22px;
  font-variation-settings: "opsz" 120;
}
.content-text h2 em { font-style: italic; color: var(--primary); }
.content-text p { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }

.check-list { list-style: none; margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-mid); line-height: 1.5; }
.check-list li i { color: var(--primary); font-size: 16px; margin-top: 3px; flex-shrink: 0; }

/* ─── TEAM GRID ──────────────────────────────────────────────── */
.team-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.team-card { text-align: center; }
.team-photo {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden; border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-card h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.team-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-top: 10px; }

.team-avatar {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 48px; font-weight: 500;
  color: white; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 4px solid var(--white); box-shadow: var(--shadow-md);
}

/* ─── PROCESS TIMELINE ───────────────────────────────────────── */
.process-steps {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; left: 35px; top: 60px; bottom: 60px;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.process-step { display: flex; gap: 28px; align-items: flex-start; padding: 24px 0; }
.step-number {
  width: 72px; height: 72px; min-width: 72px;
  background: white; border: 3px solid var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--primary);
  z-index: 1; transition: var(--transition);
  box-shadow: 0 0 0 6px var(--gray-light);
}
.process-step:hover .step-number { background: var(--primary); color: white; }
.step-content {
  background: white; border-radius: var(--radius-md);
  padding: 24px 28px; flex: 1;
  border: 1.5px solid var(--gray-mid); transition: var(--transition);
}
.process-step:hover .step-content { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.step-content h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step-content p { font-size: 14.5px; color: var(--text-mid); line-height: 1.65; }

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.testimonial-card {
  background: white; border-radius: var(--radius-lg);
  padding: 30px 28px; border: 1.5px solid var(--gray-mid);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.stars { color: #f5a623; font-size: 15px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 14.5px; color: var(--text-mid); line-height: 1.75; font-style: italic; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 20px; color: white; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  overflow: hidden; border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 18%;
  transform: scale(1.5); /* zoom 50% para que la cara llene el círculo */
}
.author-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.author-label { font-size: 12px; color: var(--text-light); }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white; border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-mid); overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
}
.faq-question span { font-size: 15.5px; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.faq-icon {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%; border: 2px solid var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 14px; transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary); color: white; border-color: var(--primary); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 26px; }
.faq-answer p { font-size: 14.5px; color: var(--text-mid); line-height: 1.75; padding-bottom: 22px; }
.faq-item.open .faq-answer { max-height: 500px; }

/* Soporte para <details>/<summary> FAQ (usado por tratamientos) */
details.faq-item { list-style: none; }
details.faq-item summary { list-style: none; cursor: pointer; width: 100%; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { display: none; content: ''; }
details.faq-item summary span { font-size: 15.5px; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
details.faq-item summary i { color: var(--primary); font-size: 14px; transition: var(--transition); }
details.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
details.faq-item[open] .faq-answer { max-height: 500px; padding: 0 26px; }
details.faq-item[open] summary i { transform: rotate(180deg); color: var(--accent); }

/* ─── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0f4d3f 0%, #1a6b5a 50%, #2ba88a 100%);
  padding: 80px 5%; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-inner h2 {
  font-family: var(--font-serif); font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400; color: white; line-height: 1.12; margin-bottom: 16px;
  letter-spacing: -1px; font-variation-settings: "opsz" 120;
}
.cta-inner h2 em { color: var(--accent); font-style: italic; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 16px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: var(--transition); box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(37,211,102,0.5); background: #20c35e; }
.btn-tel {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.15); color: white;
  padding: 16px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4); transition: var(--transition);
}
.btn-tel:hover { background: rgba(255,255,255,0.25); border-color: white; transform: translateY(-3px); }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch;
}
.contact-form-wrap {
  background: white; border-radius: var(--radius-lg);
  padding: 40px 36px; border: 1.5px solid var(--gray-mid); box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { font-family: var(--font-sans); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.contact-form-wrap > p { font-size: 14.5px; color: var(--text-mid); margin-bottom: 28px; line-height: 1.6; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.3px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 14.5px;
  border: 1.5px solid var(--gray-mid); border-radius: var(--radius-sm);
  transition: var(--transition); background: var(--gray-light);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); background: white;
  box-shadow: 0 0 0 4px rgba(26,107,90,0.1);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white;
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: white; border-radius: var(--radius-lg);
  padding: 26px 24px; border: 1.5px solid var(--gray-mid);
  display: flex; gap: 16px; align-items: flex-start;
  transition: var(--transition); position: relative; overflow: hidden;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s ease;
}
.info-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateX(4px); }
.info-card:hover::before { transform: scaleY(1); }
.info-icon {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 12px; background: rgba(26,107,90,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.info-text strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.info-text p, .info-text a { font-size: 14px; color: var(--text-mid); line-height: 1.6; text-decoration: none; }
.info-text a:hover { color: var(--primary); }

.map-wrap {
  max-width: 1200px; margin: 48px auto 0;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── BEFORE/AFTER SLIDER ────────────────────────────────────── */
.ba-slider {
  max-width: 600px; margin: 0 auto;
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); cursor: col-resize;
  aspect-ratio: 16/10;
}
.ba-slider picture { display: contents; } /* picture no debe crear caja propia */
.ba-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ba-slider .ba-after { z-index: 1; } /* after encima de before */
.ba-before { /* foto real sin filtro — imagen ANTES con dientes naturales */ }
.ba-after { clip-path: inset(0 0 0 50%); transition: clip-path 0.05s ease; } /* muestra DERECHA = después (bright) */
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
  background: white; z-index: 2; transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: left 0.05s ease;
}
.ba-handle::after {
  content: '⟨ ⟩'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: white; color: var(--primary);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; letter-spacing: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.ba-labels {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 16px;
  z-index: 3; pointer-events: none;
}
.ba-label {
  background: rgba(0,0,0,0.6); color: white;
  padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

/* ─── BLOG ───────────────────────────────────────────────────── */
.blog-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px;
}
.blog-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--gray-mid); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.blog-card-img { height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 28px 26px; }
.blog-card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.blog-card-body h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--text-dark); line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.5px; }
.blog-card-body p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 18px; }
.blog-read-more { color: var(--primary); font-size: 13.5px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.blog-read-more:hover { gap: 10px; }

/* Blog article */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-meta { font-size: 13px; color: var(--text-light); margin-bottom: 32px; }
.article-wrap h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px;
  font-variation-settings: "opsz" 120;
}
.article-wrap h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; margin: 40px 0 16px; letter-spacing: -0.5px; color: var(--text-dark); }
.article-wrap p { font-size: 17px; color: var(--text-mid); line-height: 1.85; margin-bottom: 20px; }
.article-wrap ul, .article-wrap ol { margin: 16px 0 24px 24px; }
.article-wrap li { font-size: 16px; color: var(--text-mid); line-height: 1.75; margin-bottom: 8px; }
.article-cta-box {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 24px 28px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}
.article-cta-box p { font-size: 15px; color: var(--text-dark); margin-bottom: 12px; font-weight: 600; }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }
.article-hero-img img { width: 100%; height: 400px; object-fit: cover; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--text-dark); color: rgba(255,255,255,0.75); padding: 64px 5% 32px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand strong { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: white; margin-bottom: 4px; }
.footer-brand .tagline { font-size: 11px; color: var(--secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 15px; transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-col h4 { font-size: 12px; font-weight: 700; color: white; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13.5px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.contact-line i { color: var(--secondary); font-size: 14px; margin-top: 3px; flex-shrink: 0; }

.footer-disclaimer {
  max-width: 1200px; margin: 28px auto 0;
  padding: 18px 22px;
  background: rgba(201,149,76,0.08);
  border: 1px solid rgba(201,149,76,0.25);
  border-radius: var(--radius-sm);
  font-size: 12.5px; color: rgba(255,255,255,0.75); line-height: 1.6;
}
.footer-disclaimer strong { color: var(--accent); }

.footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { color: var(--accent); }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--secondary); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: wa-pulse 2.5s infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.75); }
}
.whatsapp-float:hover { transform: scale(1.12); }

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── PAGE HERO (interior pages: tratamientos, nosotros) ────── */
.page-hero {
  position: relative; min-height: 50vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,77,63,0.88) 0%, rgba(26,107,90,0.75) 50%, rgba(43,168,138,0.55) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 80px 5% 60px; text-align: center;
}
.page-hero-content h1 {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400; color: white; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 16px;
  font-variation-settings: "opsz" 144;
}
.page-hero-content h1 em { font-style: italic; color: var(--accent); }
.page-hero-content p {
  font-size: 17px; color: rgba(255,255,255,0.88);
  line-height: 1.7; max-width: 560px; margin: 0 auto;
}

/* ─── ALIASES (classes used by agents, inherit from base classes) ── */
.process-timeline { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; position: relative; }
.process-timeline::before { content: ''; position: absolute; left: 35px; top: 60px; bottom: 60px; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary)); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* ─── ARTICLE TABLE (blog) ──────────────────────────────────── */
.table-responsive { overflow-x: auto; margin: 24px 0; }
.article-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.article-table th, .article-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--gray-mid);
}
.article-table th {
  font-family: var(--font-sans); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-light);
  background: var(--cream);
}
.article-table td { color: var(--text-mid); }
.article-table tr:hover td { background: var(--accent-soft); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .two-col, .two-col-reverse { grid-template-columns: 1fr; gap: 40px; }
  .two-col-reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-hamburger span { transition: transform 0.3s ease, opacity 0.2s ease; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 64px 5%; }
  .hero-content { padding: 40px 5%; }
  .hero-trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-trust-badge { padding: 8px 12px; font-size: 11px; justify-content: center; text-align: center; }
  .process-steps::before, .process-timeline::before { display: none; }
  .contact-form-wrap { padding: 28px 22px; }
  .page-hero { min-height: 40vh; }
  .page-hero-content { padding: 60px 5% 40px; }
  .page-hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo, .team-avatar { width: 140px; height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ethics-banner { font-size: 12px; padding: 8px 16px; }
  .logos-bar-inner { gap: 24px; }
  .ba-slider { aspect-ratio: 4/3; }
}
