/*
Theme Name: Soy Dentaria
Theme URI: https://www.soydentaria.com
Author: Soy Dentaria
Author URI: https://www.soydentaria.com
Description: Tema personalizado para la red de clínicas dentales Soy Dentaria. Diseño moderno y profesional con Bootstrap 5.
Version: 1.0.0
License: Proprietary
Text Domain: soydentaria
Tags: dental, clinics, healthcare, bootstrap5, custom
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --sd-primary:       #16ab88;
  --sd-primary-dark:  #0e8a6e;
  --sd-primary-light: #e8f8f4;
  --sd-secondary:     #1a2332;
  --sd-text:          #4a5568;
  --sd-text-light:    #718096;
  --sd-white:         #ffffff;
  --sd-bg:            #f8fafb;
  --sd-border:        #e2e8f0;
  --sd-shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --sd-shadow:        0 4px 16px rgba(0,0,0,.08);
  --sd-shadow-lg:     0 10px 40px rgba(0,0,0,.12);
  --sd-radius:        12px;
  --sd-radius-sm:     8px;
  --sd-radius-lg:     20px;
  --sd-transition:    all .25s cubic-bezier(.4,0,.2,1);
  --sd-font:          'ZonaPro', 'Inter', system-ui, -apple-system, sans-serif;
}

/* =============================================
   FONTS
   ============================================= */
@font-face {
  font-family: 'ZonaPro';
  src: url('assets/fonts/ZonaPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'ZonaPro';
  src: url('assets/fonts/ZonaPro-Thin.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sd-font);
  font-weight: 300;
  color: var(--sd-text);
  background: var(--sd-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--sd-secondary);
  line-height: 1.25;
  letter-spacing: -.02em;
}

a {
  color: var(--sd-primary);
  text-decoration: none;
  transition: var(--sd-transition);
}
a:hover { color: var(--sd-primary-dark); }

img { max-width: 100%; height: auto; }

p:last-child { margin-bottom: 0; }

/* =============================================
   BOOTSTRAP OVERRIDES
   ============================================= */
.btn-primary {
  background: var(--sd-primary);
  border-color: var(--sd-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: .75rem 2rem;
  letter-spacing: .02em;
  transition: var(--sd-transition);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--sd-primary-dark);
  border-color: var(--sd-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22,171,136,.3);
}

.btn-outline-primary {
  border-color: var(--sd-primary);
  color: var(--sd-primary);
  font-weight: 700;
  border-radius: 50px;
  padding: .75rem 2rem;
  transition: var(--sd-transition);
}
.btn-outline-primary:hover {
  background: var(--sd-primary);
  border-color: var(--sd-primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--sd-primary);
  font-weight: 700;
  border-radius: 50px;
  padding: .75rem 2rem;
  transition: var(--sd-transition);
}
.btn-white:hover {
  background: var(--sd-primary-light);
  color: var(--sd-primary-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.sd-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sd-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--sd-transition);
}

.sd-navbar.scrolled {
  padding: .6rem 0;
  box-shadow: var(--sd-shadow);
}

.sd-navbar .navbar-brand img {
  height: 32px;
  width: auto;
}
@media (max-width: 575.98px) {
  .sd-navbar .navbar-brand img { height: 26px; }
}

.sd-navbar .nav-link {
  color: var(--sd-secondary) !important;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: .5rem 1rem !important;
  border-radius: var(--sd-radius-sm);
  transition: var(--sd-transition);
}
.sd-navbar .nav-link:hover,
.sd-navbar .nav-link.active {
  color: var(--sd-primary) !important;
  background: var(--sd-primary-light);
}

.sd-navbar .nav-cta {
  background: var(--sd-primary);
  color: #fff !important;
  border-radius: 50px;
  padding: .5rem 1.5rem !important;
}
.sd-navbar .nav-cta:hover {
  background: var(--sd-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(22,171,136,.3);
}

.sd-navbar .phone-link {
  color: var(--sd-secondary) !important;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sd-navbar .phone-link i { color: var(--sd-primary); }

/* Dropdown mega */
.dropdown-menu {
  border: none;
  box-shadow: var(--sd-shadow-lg);
  border-radius: var(--sd-radius);
  padding: 1.5rem;
  min-width: 220px;
}
.dropdown-item {
  border-radius: var(--sd-radius-sm);
  padding: .5rem .75rem;
  font-size: .9rem;
  color: var(--sd-text);
  font-weight: 300;
}
.dropdown-item:hover {
  background: var(--sd-primary-light);
  color: var(--sd-primary);
}

/* =============================================
   TOP BAR
   ============================================= */
.sd-topbar {
  background: var(--sd-secondary);
  padding: .4rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
.sd-topbar a {
  color: rgba(255,255,255,.85);
  margin: 0 .75rem;
}
.sd-topbar a:hover { color: var(--sd-primary); }

/* =============================================
   HERO
   ============================================= */
.sd-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sd-secondary) 0%, #243447 60%, #1a3a2a 100%);
}

.sd-hero .hero-bg {
  position: absolute;
  inset: 0;
  /* background-image eliminado: el archivo hero-bg.webp no existe (daba 404).
     El hero mantiene su gradiente de fondo (.sd-hero), se ve igual. */
  z-index: 0;
}

.sd-hero .hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 1;
}

.sd-hero .container { position: relative; z-index: 2; }

.sd-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(22,171,136,.2);
  border: 1px solid rgba(22,171,136,.4);
  color: #7ee8cf;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.sd-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.sd-hero h1 span {
  color: var(--sd-primary);
}

.sd-hero .hero-text {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

.sd-hero .hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.sd-hero .stat-item {
  text-align: center;
}
.sd-hero .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd-primary);
  display: block;
  line-height: 1;
}
.sd-hero .stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sd-hero .hero-image {
  position: relative;
}
.sd-hero .hero-image img {
  border-radius: var(--sd-radius-lg);
  box-shadow: var(--sd-shadow-lg);
  width: 100%;
  object-fit: cover;
}
.sd-hero .hero-card-float {
  position: absolute;
  background: #fff;
  border-radius: var(--sd-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--sd-shadow-lg);
}
.sd-hero .hero-card-float.card-rating {
  bottom: 2rem;
  left: -1.5rem;
}
.sd-hero .hero-card-float.card-clinics {
  top: 2rem;
  right: -1rem;
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.sd-section {
  padding: 5rem 0;
}
.sd-section-sm {
  padding: 3rem 0;
}
.sd-section-lg {
  padding: 7rem 0;
}
.sd-bg-light {
  background: var(--sd-bg);
}
.sd-bg-primary {
  background: var(--sd-primary);
}
.sd-bg-dark {
  background: var(--sd-secondary);
}

.sd-section-header {
  margin-bottom: 3rem;
}
.sd-section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--sd-primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.sd-section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sd-primary);
  border-radius: 2px;
}
.sd-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--sd-secondary);
  margin-bottom: 1rem;
}
.sd-section-subtitle {
  color: var(--sd-text-light);
  font-size: 1.05rem;
  max-width: 560px;
}

/* =============================================
   CARDS
   ============================================= */
.sd-card {
  background: #fff;
  border-radius: var(--sd-radius);
  box-shadow: var(--sd-shadow-sm);
  border: 1px solid var(--sd-border);
  transition: var(--sd-transition);
  overflow: hidden;
}
.sd-card:hover {
  box-shadow: var(--sd-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.sd-card-icon {
  width: 56px;
  height: 56px;
  background: var(--sd-primary-light);
  border-radius: var(--sd-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-primary);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* Treatment Card */
.sd-treatment-card {
  padding: 2rem;
  text-align: center;
  cursor: pointer;
}
.sd-treatment-card .sd-card-icon {
  margin: 0 auto 1.25rem;
  width: 68px;
  height: 68px;
  font-size: 1.6rem;
  border-radius: 50%;
}
.sd-treatment-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.sd-treatment-card p {
  font-size: .9rem;
  color: var(--sd-text-light);
  margin-bottom: 1rem;
}
.sd-treatment-card .card-link {
  color: var(--sd-primary);
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* Clinic Card */
.sd-clinic-card .clinic-image {
  height: 200px;
  overflow: hidden;
}
.sd-clinic-card .clinic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.sd-clinic-card:hover .clinic-image img {
  transform: scale(1.05);
}
.sd-clinic-card .clinic-body {
  padding: 1.5rem;
}
.sd-clinic-card .clinic-metro {
  font-size: .78rem;
  color: var(--sd-text-light);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .5rem;
}
.sd-clinic-card h3 {
  font-size: 1.1rem;
  margin-bottom: .25rem;
}
.sd-clinic-card .clinic-address {
  font-size: .85rem;
  color: var(--sd-text-light);
  line-height: 1.45;
}
/* Reserva la altura de 2 líneas para que el espaciado sea uniforme tanto si la
   dirección ocupa 1 como 2 líneas. Solo escritorio/tablet (en móvil no). */
@media (min-width: 768px) {
  .sd-clinic-card .clinic-address { min-height: 2.5rem; }
}

/* Blog Card */
.sd-post-card .post-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.sd-post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.sd-post-card:hover .post-image img {
  transform: scale(1.05);
}
.sd-post-card .post-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--sd-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sd-post-card .post-body {
  padding: 1.5rem;
}
.sd-post-card .post-meta {
  font-size: .8rem;
  color: var(--sd-text-light);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sd-post-card h3 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
  line-height: 1.35;
}
.sd-post-card p {
  font-size: .9rem;
  color: var(--sd-text-light);
}

/* =============================================
   FEATURES / WHY US
   ============================================= */
.sd-feature-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.sd-feature-item .feature-icon {
  width: 48px;
  height: 48px;
  background: var(--sd-primary-light);
  border-radius: var(--sd-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.sd-feature-item h4 {
  font-size: 1rem;
  margin-bottom: .25rem;
}
.sd-feature-item p {
  font-size: .9rem;
  color: var(--sd-text-light);
  margin: 0;
}

/* =============================================
   REVIEWS / TESTIMONIALS
   ============================================= */
.sd-review-card {
  background: #fff;
  border-radius: var(--sd-radius);
  padding: 2rem;
  box-shadow: var(--sd-shadow-sm);
  border: 1px solid var(--sd-border);
  height: 100%;
}
.sd-review-card .stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.sd-review-card .review-text {
  color: var(--sd-text);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.sd-review-card .reviewer {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sd-review-card .reviewer-avatar {
  width: 40px;
  height: 40px;
  background: var(--sd-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-primary);
  font-weight: 700;
  font-size: .9rem;
}
.sd-review-card .reviewer-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--sd-secondary);
}
.sd-review-card .reviewer-source {
  font-size: .78rem;
  color: var(--sd-text-light);
}

/* =============================================
   STATS BANNER
   ============================================= */
.sd-stats-banner {
  background: var(--sd-secondary);
  padding: 4rem 0;
}
.sd-stat-block {
  text-align: center;
}
.sd-stat-block .stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sd-primary);
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}
.sd-stat-block .stat-label {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =============================================
   MAP
   ============================================= */
.sd-map-container {
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  box-shadow: var(--sd-shadow-lg);
  height: 600px;
}
.sd-map-container #map {
  width: 100%;
  height: 100%;
}

.sd-clinic-list-sidebar {
  height: 600px;
  overflow-y: auto;
  padding-right: .5rem;
}
.sd-clinic-list-sidebar::-webkit-scrollbar { width: 4px; }
.sd-clinic-list-sidebar::-webkit-scrollbar-track { background: var(--sd-bg); }
.sd-clinic-list-sidebar::-webkit-scrollbar-thumb {
  background: var(--sd-primary);
  border-radius: 2px;
}

.sd-clinic-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--sd-radius-sm);
  cursor: pointer;
  transition: var(--sd-transition);
  border: 1px solid transparent;
  margin-bottom: .5rem;
}
.sd-clinic-list-item:hover,
.sd-clinic-list-item.active {
  background: var(--sd-primary-light);
  border-color: rgba(22,171,136,.2);
}
.sd-clinic-list-item .clinic-marker {
  width: 36px;
  height: 36px;
  background: var(--sd-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  flex-shrink: 0;
}
.sd-clinic-list-item h5 {
  font-size: .9rem;
  margin-bottom: .15rem;
}
.sd-clinic-list-item p {
  font-size: .78rem;
  color: var(--sd-text-light);
  margin: 0;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.sd-contact-form .form-control,
.sd-contact-form .form-select {
  border: 1.5px solid var(--sd-border);
  border-radius: var(--sd-radius-sm);
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--sd-text);
  background: #fff;
  transition: var(--sd-transition);
}
.sd-contact-form .form-control:focus,
.sd-contact-form .form-select:focus {
  border-color: var(--sd-primary);
  box-shadow: 0 0 0 3px rgba(22,171,136,.15);
  outline: none;
}
.sd-contact-form label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--sd-secondary);
  margin-bottom: .4rem;
}
.sd-contact-form .form-floating > .form-control {
  padding-top: 1.625rem;
}

.sd-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.sd-contact-info-item .contact-icon {
  width: 44px;
  height: 44px;
  background: var(--sd-primary-light);
  border-radius: var(--sd-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-primary);
  flex-shrink: 0;
}
.sd-contact-info-item h5 {
  font-size: .9rem;
  margin-bottom: .1rem;
}
.sd-contact-info-item p, .sd-contact-info-item a {
  font-size: .9rem;
  color: var(--sd-text-light);
  margin: 0;
}

/* =============================================
   TREATMENT PAGE
   ============================================= */
.sd-page-hero {
  background: linear-gradient(135deg, var(--sd-secondary) 0%, #1e3a4a 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
/* Páginas de tratamiento: hero más compacto arriba */
.single-tratamiento .sd-page-hero { padding-top: 3rem; }
/* Página de contacto: hero más compacto arriba */
.page-template-page-contacto .sd-page-hero { padding-top: 2rem; }
.sd-page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--sd-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.sd-page-hero h1 { color: #fff; }
/* Breadcrumbs: mismo diseño en todos los heroes (páginas, tratamientos, clínicas y posts) */
.sd-page-hero .breadcrumb,
.sd-clinic-hero .breadcrumb,
.sd-post-header .breadcrumb { background: none; padding: 0; margin-bottom: 0; }
.sd-page-hero .breadcrumb-item,
.sd-page-hero .breadcrumb-item a,
.sd-clinic-hero .breadcrumb-item,
.sd-clinic-hero .breadcrumb-item a,
.sd-post-header .breadcrumb-item,
.sd-post-header .breadcrumb-item a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  text-decoration: none;
}
.sd-page-hero .breadcrumb-item a:hover,
.sd-clinic-hero .breadcrumb-item a:hover,
.sd-post-header .breadcrumb-item a:hover { color: #fff; }
.sd-page-hero .breadcrumb-item.active,
.sd-clinic-hero .breadcrumb-item.active,
.sd-post-header .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.sd-page-hero .breadcrumb-item + .breadcrumb-item::before,
.sd-clinic-hero .breadcrumb-item + .breadcrumb-item::before,
.sd-post-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.sd-treatment-tabs .nav-link {
  color: var(--sd-text);
  border: none;
  border-bottom: 2px solid transparent;
  padding: .75rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 0;
}
.sd-treatment-tabs .nav-link.active {
  color: var(--sd-primary);
  border-bottom-color: var(--sd-primary);
  background: none;
}

.sd-price-card {
  background: #fff;
  border: 2px solid var(--sd-border);
  border-radius: var(--sd-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--sd-transition);
}
.sd-price-card:hover,
.sd-price-card.featured {
  border-color: var(--sd-primary);
  box-shadow: var(--sd-shadow);
}
.sd-price-card.featured {
  background: var(--sd-primary);
  color: #fff;
}
.sd-price-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.sd-price-card.featured h3,
.sd-price-card.featured .price,
.sd-price-card.featured p {
  color: #fff;
}

.sd-faq .accordion-button {
  font-weight: 700;
  color: var(--sd-secondary);
  font-size: .95rem;
}
.sd-faq .accordion-button:not(.collapsed) {
  color: var(--sd-primary);
  background: var(--sd-primary-light);
  box-shadow: none;
}
.sd-faq .accordion-button::after {
  filter: none;
}
.sd-faq .accordion-button:focus {
  box-shadow: none;
  border-color: var(--sd-primary);
}
.sd-faq .accordion-item {
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-sm) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}

/* =============================================
   CLINIC PAGE
   ============================================= */
.sd-clinic-hero {
  background: var(--sd-secondary);
  padding: 3rem 0 3rem;
}
.sd-clinic-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.sd-clinic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 8px;
  border-radius: var(--sd-radius);
  overflow: hidden;
}
.sd-clinic-gallery .gallery-main {
  grid-row: 1 / 3;
}
.sd-clinic-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Solo en ordenador (≥ 992px): la imagen destacada de la clínica 50px más alta
   y anclada arriba, para que el exceso se recorte por abajo */
@media (min-width: 992px) {
  .sd-clinic-gallery { grid-template-rows: 225px 225px; }
  .sd-clinic-gallery img { object-position: center top; }
}

.sd-doctor-card {
  background: #fff;
  border-radius: var(--sd-radius);
  overflow: hidden;
  box-shadow: var(--sd-shadow-sm);
  border: 1px solid var(--sd-border);
  transition: var(--sd-transition);
}
.sd-doctor-card:hover {
  box-shadow: var(--sd-shadow);
  transform: translateY(-3px);
}
.sd-doctor-card .doctor-photo {
  height: 260px;
  overflow: hidden;
}
.sd-doctor-card .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-doctor-card .doctor-info {
  padding: 1.25rem;
}
.sd-doctor-card h4 {
  font-size: 1rem;
  margin-bottom: .1rem;
}
.sd-doctor-card .specialty {
  font-size: .82rem;
  color: var(--sd-primary);
  font-weight: 700;
}

/* =============================================
   BLOG
   ============================================= */
.sd-blog-header {
  background: linear-gradient(135deg, var(--sd-secondary) 0%, #1e3a4a 100%);
  padding: 4rem 0;
}
.sd-blog-header h1 { color: #fff; }
.sd-blog-header p { color: rgba(255,255,255,.7); }

.sd-post-header {
  background: linear-gradient(135deg, var(--sd-secondary) 0%, #1e3a4a 100%);
  padding: 5rem 0 4rem;
}
.sd-post-header h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
}
.sd-post-header .post-meta {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

.sd-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
}
.sd-post-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--sd-secondary);
}
.sd-post-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 .75rem;
}
.sd-post-content p { margin-bottom: 1.25rem; }
.sd-post-content ul, .sd-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.sd-post-content li { margin-bottom: .4rem; }
.sd-post-content img {
  border-radius: var(--sd-radius);
  margin: 1.5rem 0;
}
.sd-post-content blockquote {
  border-left: 4px solid var(--sd-primary);
  padding: 1rem 1.5rem;
  background: var(--sd-primary-light);
  border-radius: 0 var(--sd-radius-sm) var(--sd-radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--sd-secondary);
  font-style: italic;
}

/* Sidebar */
.sd-sidebar .widget {
  background: #fff;
  border-radius: var(--sd-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sd-border);
}
.sd-sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sd-secondary);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sd-primary);
}
.sd-sidebar .sd-cta-widget {
  background: var(--sd-primary);
  border-color: transparent;
  text-align: center;
  color: #fff;
}
.sd-sidebar .sd-cta-widget h3 { color: #fff; font-size: 1.1rem; }
.sd-sidebar .sd-cta-widget p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 1rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.sd-cta-section {
  background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-primary-dark) 100%);
  padding: 5rem 0;
  text-align: center;
}
.sd-cta-section h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.sd-cta-section p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }

/* =============================================
   FOOTER
   ============================================= */
.sd-footer {
  background: var(--sd-secondary);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}
.sd-footer h5 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.sd-footer a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  display: block;
  margin-bottom: .5rem;
  transition: var(--sd-transition);
}
.sd-footer a:hover { color: var(--sd-primary); transform: translateX(3px); }
.sd-footer .footer-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.sd-footer .footer-desc { font-size: .88rem; line-height: 1.7; }
.sd-footer .social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.sd-footer .social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--sd-transition);
}
.sd-footer .social-links a:hover {
  background: var(--sd-primary);
  color: #fff;
  transform: translateY(-2px);
}
.sd-footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 1.25rem 0;
  margin-top: 3rem;
  font-size: .82rem;
}

/* =============================================
   BADGES & TAGS
   ============================================= */
.sd-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.sd-badge-primary { background: var(--sd-primary-light); color: var(--sd-primary); }
.sd-badge-dark { background: var(--sd-secondary); color: #fff; }

/* =============================================
   UTILITY
   ============================================= */
.text-primary { color: var(--sd-primary) !important; }
.bg-primary { background: var(--sd-primary) !important; }

.separator {
  width: 48px;
  height: 3px;
  background: var(--sd-primary);
  border-radius: 2px;
  margin: 1rem 0;
}
.separator-center { margin-left: auto; margin-right: auto; }

.hover-lift { transition: var(--sd-transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow-lg); }

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  .sd-hero { min-height: auto; padding: 2.5rem 0 3rem; }
  .sd-hero .hero-image {
    margin-top: 2rem;
    padding-bottom: 6.5rem; /* espacio para los floating cards */
  }
  .sd-hero .hero-card-float {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: calc(50% - 1.2rem);
    height: 5.5rem;
    min-width: 0 !important;
    padding: .7rem .85rem !important;
    box-sizing: border-box;
  }
  .sd-hero .hero-card-float.card-rating {
    bottom: .5rem;
    left: .5rem;
    top: auto;
  }
  .sd-hero .hero-card-float.card-clinics {
    bottom: .5rem;
    right: .5rem;
    left: auto;
    top: auto;
  }
  .sd-hero .hero-card-float.card-clinics svg {
    width: 100% !important;
    max-width: 130px;
  }
  .sd-clinic-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .sd-clinic-gallery .gallery-main { grid-row: auto; }
}

@media (max-width: 767.98px) {
  .sd-section { padding: 3.5rem 0; }
  .sd-section-lg { padding: 4rem 0; }
  .sd-stats-banner { padding: 2.5rem 0; }
  .sd-map-container { height: 400px; }
  .sd-clinic-list-sidebar { height: 300px; margin-top: 1.5rem; }
  .sd-navbar .phone-link { display: none; }
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.sd-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sd-secondary);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  display: none;
}
.sd-cookie-banner.show { display: block; }
.sd-cookie-banner p { font-size: .88rem; margin: 0; }
.sd-cookie-banner a { color: var(--sd-primary); }

/* =============================================
   MEGAMENU — Container-width, Vitaldent style
   ============================================= */

/* Li sin position relativa para que el drop se ancle al navbar */
@media (min-width: 992px) {
  .sd-mega-wrap { position: static !important; }
}

/* Botón de trigger (sin enlace propio) */
.sd-mega-trigger {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* Panel del megamenu: ancho 100% del navbar */
.sd-mega-drop {
  border: none !important;
  border-top: 3px solid var(--sd-primary) !important;
  border-radius: 0 0 16px 16px !important;
  padding: 0 !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.13) !important;
}
@media (min-width: 992px) {
  .sd-mega-drop {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
  }
}

/* ── Tratamientos: columnas por categoría (auto-fit) ── */
.sd-mega-trats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 1.6rem 0 1.2rem;
  gap: 0;
  border-bottom: 1px solid #eef0f3;
}
.sd-mega-col {
  padding: 0 1.1rem;
  border-right: 1px solid #eef0f3;
}
.sd-mega-col:first-child { padding-left: 0; }
.sd-mega-col:last-child  { border-right: none; padding-right: 0; }

.sd-mega-col-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 700;
  padding-bottom: .7rem;
  margin-bottom: .7rem;
  border-bottom: 2px solid currentColor;
  white-space: nowrap;
}
.sd-mega-col-head i { font-size: 1rem; }

/* Lista simple de tratamientos */
.sd-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sd-mega-list li { margin-bottom: .05rem; }
.sd-mega-list a {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  padding: .3rem .35rem;
  border-radius: 5px;
  line-height: 1.35;
  transition: color .13s, background .13s, padding-left .13s;
}
.sd-mega-list a:hover {
  color: var(--sd-primary);
  background: var(--sd-primary-light);
  padding-left: .6rem;
}

/* ── Clínicas: ocupa el 100% del ancho del dropdown ── */
.sd-mega-clinics-container {
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}
/* ── Clínicas: columnas por zona (auto-fit) ── */
.sd-mega-clinics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 1.4rem 0 1.1rem;
  border-bottom: 1px solid #eef0f3;
}
.sd-mega-zone {
  padding: 0 1rem;
  border-right: 1px solid #eef0f3;
}
.sd-mega-zone:last-child { border-right: none; }

.sd-mega-zone-head {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--sd-primary);
  padding-bottom: .55rem;
  margin-bottom: .6rem;
  border-bottom: 2px solid var(--sd-primary);
}

.sd-mega-clinic-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  padding: .3rem .25rem;
  border-radius: 6px;
  transition: color .13s, background .13s, padding-left .13s;
  white-space: nowrap;
}
.sd-mega-clinic-row i { font-size: .5rem; color: var(--sd-primary); flex-shrink: 0; }
.sd-mega-clinic-row:hover {
  color: var(--sd-primary);
  background: var(--sd-primary-light);
  padding-left: .55rem;
}

/* ── Footer del mega ── */
.sd-mega-foot {
  padding: .7rem 0;
  display: flex;
  gap: 2rem;
}
.sd-mega-foot a {
  font-size: .78rem;
  font-weight: 700;
  color: var(--sd-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: opacity .15s;
}
.sd-mega-foot a:hover { opacity: .7; }

/* ── Sidebar sticky (clínica + tratamiento) ── */
.sd-sidebar-sticky {
  position: sticky;
  top: 110px;
}
@media (max-width: 991.98px) {
  .sd-sidebar-sticky { position: static; }
}

/* ── Transport info boxes ── */
.sdtr-wrap {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.25rem;
}
.sdtr-box {
  border-radius: 12px;
  border: 1px solid #e8edf3;
  background: #f8fafb;
  padding: .9rem 1rem;
}
.sdtr-box-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #64748b;
}
.sdtr-lines {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.sdtr-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .6rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.sdtr-chip.bus {
  background: #1a56a0;
  border-radius: 4px;
}
.sdtr-chip.cercanias {
  border-radius: 20px;
}

/* ── Mobile: todo en columna ── */
@media (max-width: 991.98px) {
  .sd-mega-trats,
  .sd-mega-clinics { grid-template-columns: 1fr; }
  .sd-mega-col,
  .sd-mega-zone {
    border-right: none;
    border-bottom: 1px solid #eef0f3;
    padding: .8rem 0;
  }
  .sd-mega-col:first-child { padding-left: 0; }
  .sd-mega-col:last-child,
  .sd-mega-zone:last-child { border-bottom: none; }
  .sd-mega-drop .container { padding: 0 .75rem; }
}

/* ═══════════════════════════════════════════════════
   SECCIÓN CTA ENCUENTRA TU CLÍNICA (page-tratamiento)
═══════════════════════════════════════════════════ */
.sd-clinica-cta-section {
  margin: 3rem 0;
  padding: 0;
}
.sd-clinica-cta-inner {
  background: linear-gradient(135deg, #0d7a60 0%, #16ab88 60%, #1ec8a4 100%);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(22,171,136,.25);
}
.sd-clinica-cta-text {
  flex: 1 1 280px;
}
.sd-clinica-cta-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.sd-clinica-cta-sub {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 0;
  line-height: 1.5;
}
.sd-clinica-cta-form {
  flex: 1 1 320px;
}
.sd-clinica-cta-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: .3rem .3rem .3rem 1rem;
  gap: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.sd-clinica-cta-search-icon {
  color: #94a3b8;
  font-size: .9rem;
  flex-shrink: 0;
}
.sd-clinica-cta-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .92rem;
  color: #1a2332;
  background: transparent;
  min-width: 0;
}
.sd-clinica-cta-input::placeholder { color: #94a3b8; }
.sd-clinica-cta-btn {
  background: var(--sd-primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: .65rem 1.2rem;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: inline-flex;
  align-items: center;
}
.sd-clinica-cta-btn:hover {
  background: #0d7a60;
  transform: translateY(-1px);
}
.sd-clinica-cta-hint {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  margin-top: .6rem;
  margin-bottom: 0;
}
.sd-clinica-cta-hint a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 767px) {
  .sd-clinica-cta-inner {
    flex-direction: column;
    padding: 1.75rem 1.25rem 1.5rem;
    gap: 1.5rem;
  }
  .sd-clinica-cta-title { font-size: 1.2rem; }
  .sd-clinica-cta-input-wrap { flex-wrap: wrap; }
  .sd-clinica-cta-btn { width: 100%; justify-content: center; }
}

/* =================================================
   LANDING ORTODONCIA INVISIBLE
   ================================================= */
:root {
  --sd-oi-violet:       #8b5cf6;
  --sd-oi-violet-dark:  #6d28d9;
  --sd-oi-violet-light: #ede9fe;
  --sd-oi-grad:         linear-gradient(135deg, #16ab88 0%, #8b5cf6 100%);
  --sd-oi-grad-soft:    linear-gradient(135deg, #e8f8f4 0%, #ede9fe 100%);
}

/* Hero */
.sd-oi-hero {
  position: relative;
  background: linear-gradient(180deg, #fafaff 0%, #ffffff 100%);
  overflow: hidden;
  padding-top: 1.5rem;
}
.sd-oi-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  z-index: 0;
  animation: sd-oi-float 12s ease-in-out infinite;
}
.sd-oi-blob-1 {
  width: 380px; height: 380px;
  background: #16ab88;
  top: -60px; left: -120px;
}
.sd-oi-blob-2 {
  width: 460px; height: 460px;
  background: #8b5cf6;
  bottom: -120px; right: -160px;
  animation-delay: -6s;
}
@keyframes sd-oi-float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px, -30px) scale(1.08); }
}

.sd-oi-hero-image {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  height: 100%;
  min-height: 420px;
}
.sd-oi-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(139,92,246,.18);
}
.sd-oi-hero .hero-card-float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  z-index: 3;
}
.sd-oi-hero .hero-card-float.card-rating {
  bottom: 1.5rem; left: -1rem;
}
.sd-oi-hero .hero-card-float.card-clinics {
  top: 1.5rem; right: -1rem;
}

/* Form card */
.sd-oi-form-card {
  background: linear-gradient(165deg, #1a2332 0%, #2d1b69 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(45,27,105,.35);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.sd-oi-form-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(139,92,246,.4) 0%, transparent 70%);
  pointer-events: none;
}
.sd-oi-form-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(139,92,246,.2);
  color: #c4b5fd;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,.4);
  position: relative;
  z-index: 2;
}
.sd-oi-form-title {
  color: #fff;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 1rem 0 .25rem;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
.sd-oi-form-title span {
  background: linear-gradient(120deg, #4ade80 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sd-oi-form-sub {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin: 0;
  position: relative;
  z-index: 2;
}
.sd-oi-price-tag {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin: .5rem 0 1.25rem;
  position: relative;
  z-index: 2;
}
.sd-oi-price-num {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.sd-oi-price-cent {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-left: .15rem;
}
.sd-oi-price-foot {
  font-size: .65rem;
  color: rgba(255,255,255,.5);
  vertical-align: super;
}
.sd-oi-free-banner {
  background: linear-gradient(90deg, #16ab88 0%, #4ade80 100%);
  border-radius: 14px;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}
.sd-oi-free-banner i { font-size: 1.5rem; }
.sd-oi-free-banner > div { display: flex; flex-direction: column; line-height: 1.2; }
.sd-oi-free-tag {
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.sd-oi-free-banner > div > span:last-child { font-size: .82rem; opacity: .95; }

.sd-oi-form-h3 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .9rem;
  position: relative;
  z-index: 2;
}
.sd-oi-form-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  z-index: 2;
}
.sd-oi-form-wrap input,
.sd-oi-form-wrap select,
.sd-oi-form-wrap textarea {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  padding: .55rem .75rem !important;
  font-size: .9rem !important;
  width: 100% !important;
}
.sd-oi-form-wrap input[type="submit"],
.sd-oi-form-wrap .hs-button {
  background: linear-gradient(90deg, #16ab88 0%, #8b5cf6 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: .75rem 1.5rem !important;
  font-weight: 800 !important;
  font-size: .9rem !important;
  cursor: pointer;
  transition: transform .2s;
  width: 100% !important;
}
.sd-oi-form-wrap input[type="submit"]:hover,
.sd-oi-form-wrap .hs-button:hover { transform: translateY(-2px); }

.sd-oi-form-disclaimer {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  margin: .85rem 0 0;
  position: relative;
  z-index: 2;
}
.sd-oi-form-disclaimer i { margin-right: .25rem; }

/* Sections base */
.sd-oi-section { padding: 5rem 0; position: relative; }
.sd-oi-bg-light { background: #fafaff; }

.sd-oi-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--sd-oi-grad-soft);
  color: var(--sd-oi-violet-dark);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.sd-oi-h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.sd-oi-grad-text {
  background: var(--sd-oi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sd-oi-lead {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

/* Botones */
.sd-oi-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: .85rem 1.75rem;
  transition: all .25s;
  font-size: .95rem;
}
.sd-oi-btn-primary {
  background: var(--sd-oi-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139,92,246,.35);
}
.sd-oi-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(139,92,246,.5);
  color: #fff;
}
.sd-oi-btn-white {
  background: #fff;
  color: #1a2332;
}
.sd-oi-btn-white:hover {
  transform: translateY(-3px);
  color: var(--sd-oi-violet-dark);
}

/* Beneficios lista */
.sd-oi-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
.sd-oi-benefits li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sd-oi-bnf-ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sd-oi-grad-soft);
  color: var(--sd-oi-violet-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sd-oi-benefits li > div { display: flex; flex-direction: column; }
.sd-oi-benefits li strong { color: #1a2332; font-weight: 800; font-size: 1rem; }
.sd-oi-benefits li span { color: #64748b; font-size: .9rem; }

/* Frame de imagen */
.sd-oi-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: visible;
}
.sd-oi-img-frame img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(139,92,246,.18);
}
.sd-oi-img-tag {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 800;
  font-size: .85rem;
  color: #1a2332;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.sd-oi-img-tag i { color: #16ab88; margin-right: .35rem; }
.sd-oi-img-tag-1 { top: 1rem; right: -.75rem; }
.sd-oi-img-tag-2 { bottom: 1.5rem; left: -1rem; }

/* Plans */
.sd-oi-pricing-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(22,171,136,.08) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(139,92,246,.08) 0%, transparent 40%),
    #ffffff;
}
.sd-oi-plan {
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: 24px;
  padding: 1.75rem 1.4rem;
  height: 100%;
  position: relative;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.sd-oi-plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(139,92,246,.15);
  border-color: #ede9fe;
}
.sd-oi-plan.is-popular {
  background: linear-gradient(180deg, #1a2332 0%, #2d1b69 100%);
  border-color: transparent;
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 24px 48px rgba(45,27,105,.3);
}
.sd-oi-plan.is-popular:hover { transform: scale(1.04) translateY(-8px); }
.sd-oi-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a2332;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  padding: .4rem .85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245,158,11,.4);
  white-space: nowrap;
}
.sd-oi-plan-duration {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--sd-oi-grad-soft);
  color: var(--sd-oi-violet-dark);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.sd-oi-plan.is-popular .sd-oi-plan-duration {
  background: rgba(139,92,246,.25);
  color: #c4b5fd;
}
.sd-oi-plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  color: inherit;
}
.sd-oi-plan.is-popular .sd-oi-plan-name { color: #fff; }
.sd-oi-plan-desc {
  font-size: .82rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  min-height: 2.5em;
}
.sd-oi-plan.is-popular .sd-oi-plan-desc { color: rgba(255,255,255,.65); }
.sd-oi-plan-price {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  margin-bottom: .25rem;
}
.sd-oi-plan-price-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  background: var(--sd-oi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sd-oi-plan.is-popular .sd-oi-plan-price-num {
  background: linear-gradient(120deg, #4ade80 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sd-oi-plan-price-cur {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a2332;
}
.sd-oi-plan.is-popular .sd-oi-plan-price-cur { color: #c4b5fd; }
.sd-oi-plan-price-note {
  font-size: .72rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}
.sd-oi-plan.is-popular .sd-oi-plan-price-note { color: rgba(255,255,255,.55); }
.sd-oi-plan-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: .55rem;
  flex-grow: 1;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}
.sd-oi-plan.is-popular .sd-oi-plan-feats { border-top-color: rgba(255,255,255,.1); }
.sd-oi-plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .85rem;
  color: #4a5568;
  line-height: 1.4;
}
.sd-oi-plan.is-popular .sd-oi-plan-feats li { color: rgba(255,255,255,.85); }
.sd-oi-plan-feats i {
  color: #16ab88;
  font-size: .75rem;
  margin-top: .25rem;
  flex-shrink: 0;
}
.sd-oi-plan.is-popular .sd-oi-plan-feats i { color: #4ade80; }
.sd-oi-plan-cta {
  display: block;
  text-align: center;
  background: var(--sd-oi-grad);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  transition: transform .2s;
  margin-top: auto;
}
.sd-oi-plan-cta:hover { transform: translateY(-2px); color: #fff; }
.sd-oi-plan.is-popular .sd-oi-plan-cta {
  background: #fff;
  color: var(--sd-oi-violet-dark);
}

.sd-oi-disclaimer {
  font-size: .8rem;
  color: #94a3b8;
}

/* Feature grid */
.sd-oi-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.sd-oi-feat-item {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  text-align: left;
  transition: all .3s;
  border: 1px solid #f1f5f9;
}
.sd-oi-feat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(139,92,246,.12);
  border-color: #ede9fe;
}
.sd-oi-feat-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--sd-oi-grad-soft);
  color: var(--sd-oi-violet-dark);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.sd-oi-feat-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  color: #1a2332;
}
.sd-oi-feat-item h4 span {
  display: block;
  background: var(--sd-oi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sd-oi-feat-item p {
  font-size: .9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Steps */
.sd-oi-steps { counter-reset: sd-oi-step; }
.sd-oi-step {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  height: 100%;
  border: 1px solid #f1f5f9;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.sd-oi-step:hover {
  transform: translateY(-6px);
  border-color: #ede9fe;
  box-shadow: 0 20px 40px rgba(139,92,246,.12);
}
.sd-oi-step-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--sd-oi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.05em;
  margin-bottom: .75rem;
  opacity: .85;
}
.sd-oi-step h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: #1a2332;
}
.sd-oi-step p {
  font-size: .9rem;
  color: #64748b;
  margin: 0;
}

/* Google card */
.sd-oi-google-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  margin-top: 2rem;
}
.sd-oi-google-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sd-oi-google-rating {
  font-size: 2rem;
  font-weight: 900;
  color: #1a2332;
  line-height: 1;
}
.sd-oi-google-rating small { font-size: 1rem; color: #94a3b8; font-weight: 700; }
.sd-oi-google-stars { display: flex; gap: 2px; margin-top: .25rem; }
.sd-oi-google-count {
  font-size: .9rem;
  color: #64748b;
  margin: 0;
}

/* CTA Final */
.sd-oi-cta-final { padding: 4rem 0 5rem; }
.sd-oi-cta-final-box {
  background: var(--sd-oi-grad);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(139,92,246,.35);
}
.sd-oi-cta-final-box::before,
.sd-oi-cta-final-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  pointer-events: none;
}
.sd-oi-cta-final-box::before {
  width: 280px; height: 280px;
  top: -100px; left: -100px;
}
.sd-oi-cta-final-box::after {
  width: 360px; height: 360px;
  bottom: -180px; right: -150px;
}
.sd-oi-cta-final-box h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: .75rem;
  position: relative;
  z-index: 2;
}
.sd-oi-cta-final-box p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  opacity: .92;
  position: relative;
  z-index: 2;
}
.sd-oi-cta-final-box .sd-oi-btn { position: relative; z-index: 2; }

/* Mobile fixed CTAs */
.sd-oi-mobile-cta {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 76px;
  z-index: 9999;
}
.sd-oi-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--sd-oi-grad);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: .9rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  box-shadow: 0 12px 32px rgba(139,92,246,.4);
}
.sd-oi-mobile-cta-btn i { font-size: 1.05rem; }
.sd-oi-whatsapp-fab {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  text-decoration: none;
}
.sd-oi-whatsapp-fab:hover { color: #fff; }

/* Responsive */
@media (max-width: 991.98px) {
  .sd-oi-hero-image { min-height: 280px; padding-bottom: 6.5rem; }
  .sd-oi-hero-image img { max-height: 360px; }
  .sd-oi-hero .hero-card-float {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: calc(50% - 1.2rem);
    height: 5.5rem;
    min-width: 0 !important;
    padding: .7rem .85rem !important;
    box-sizing: border-box;
  }
  .sd-oi-hero .hero-card-float.card-rating  { bottom: .5rem; left: .5rem; top: auto; }
  .sd-oi-hero .hero-card-float.card-clinics { bottom: .5rem; right: .5rem; top: auto; left: auto; }
  .sd-oi-hero .hero-card-float.card-clinics svg { width: 100% !important; max-width: 130px; }

  .sd-oi-form-card { padding: 1.75rem 1.4rem; }
  .sd-oi-section { padding: 3.5rem 0; }
  .sd-oi-plan.is-popular { transform: scale(1); }
  .sd-oi-plan.is-popular:hover { transform: translateY(-8px); }
  .sd-oi-img-tag-1 { right: 0.5rem; }
  .sd-oi-img-tag-2 { left: 0.5rem; }
}
@media (max-width: 575.98px) {
  .sd-oi-form-title { font-size: 1.55rem; }
  .sd-oi-price-num { font-size: 2.5rem; }
  .sd-oi-cta-final-box { padding: 2.5rem 1.4rem; }
  .sd-oi-mobile-cta-btn { font-size: .85rem; padding: .75rem .85rem; }
}

/* =================================================
   TEST DE ORTODONCIA (estilo Impress, verde Soy Dentaria)
   ================================================= */
.sd-test-wrap {
  background: #fff;
  min-height: 80vh;
}
.sd-test-wrap .container { max-width: 920px; }

.sd-test-title {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1a2332;
  margin-bottom: .5rem;
}
.sd-test-grad {
  background: linear-gradient(120deg, #16ab88 0%, #0e8a6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sd-test-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Progress bar */
.sd-test-progress {
  height: 6px;
  background: #e8f8f4;
  border-radius: 999px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}
.sd-test-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #16ab88 0%, #0e8a6e 100%);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.sd-test-progress-text {
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  margin-top: .5rem;
}

/* Form / steps */
.sd-test-form {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  position: relative;
}
.sd-test-step {
  display: none;
  animation: sd-test-fadein .35s ease-out;
}
.sd-test-step.is-active { display: block; }
@keyframes sd-test-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sd-test-qhead {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .25rem;
}
.sd-test-qnum {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #16ab88;
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  font-size: .95rem;
  margin-top: .3rem;
}
.sd-test-qhead h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #1a2332;
  margin: 0;
  line-height: 1.3;
}
.sd-test-qhead h2 .req { color: #16ab88; margin-left: .15rem; }
.sd-test-qsub {
  font-size: .95rem;
  color: #64748b;
  font-style: italic;
  margin: 0 0 1.5rem 2.3rem;
}

/* Cards de selección con imagen */
.sd-test-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sd-test-cards[data-cols="3"] { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sd-test-cards[data-cols="4"] { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.sd-test-card {
  background: #e8f8f4;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 1rem .85rem .85rem;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.sd-test-card:hover {
  background: #d4f0e7;
  transform: translateY(-2px);
}
.sd-test-card input { position: absolute; opacity: 0; pointer-events: none; }
.sd-test-card-img {
  background: #fff;
  border-radius: 10px;
  padding: .75rem;
  margin-bottom: .85rem;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16ab88;
}
.sd-test-card-img svg { width: 100%; height: 100%; }
.sd-test-card-label {
  font-size: .9rem;
  font-weight: 700;
  color: #16ab88;
  line-height: 1.3;
}
.sd-test-card input:checked ~ .sd-test-card-img,
.sd-test-card:has(input:checked) {
  background: #fff;
  border-color: #16ab88;
}
.sd-test-card:has(input:checked) .sd-test-card-label { color: #16ab88; }

/* Select dropdown */
.sd-test-select-wrap {
  position: relative;
  max-width: 420px;
  margin-bottom: 1.5rem;
}
.sd-test-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #16ab88;
  border-bottom: 2px solid #16ab88;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.sd-test-select-wrap select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid #d4f0e7;
  padding: .75rem 32px .75rem 0;
  font-size: 1rem;
  color: #16ab88;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.sd-test-select-wrap select:focus {
  border-bottom-color: #16ab88;
  border-bottom-width: 2px;
}
.sd-test-select-wrap select option { color: #1a2332; }

/* Pills (radios horizontales) */
.sd-test-pills {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
  max-width: 580px;
}
.sd-test-pill {
  display: flex;
  align-items: center;
  background: #e8f8f4;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: .9rem 1.25rem;
  cursor: pointer;
  transition: all .2s;
}
.sd-test-pill:hover { background: #d4f0e7; }
.sd-test-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sd-test-pill span {
  font-size: .92rem;
  font-weight: 600;
  color: #16ab88;
}
.sd-test-pill:has(input:checked) {
  background: #fff;
  border-color: #16ab88;
}

/* Botón continuar */
.sd-test-next, .sd-test-submit {
  background: #16ab88;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.85rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(22,171,136,.25);
}
.sd-test-next:hover, .sd-test-submit:hover {
  background: #0e8a6e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22,171,136,.35);
}

.sd-test-step.has-error .sd-test-card,
.sd-test-step.has-error .sd-test-pill,
.sd-test-step.has-error select,
.sd-test-step.has-error input {
  animation: sd-test-shake .35s;
}
@keyframes sd-test-shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-6px); }
  75%     { transform: translateX(6px); }
}

/* Datos de contacto */
.sd-test-fields {
  display: grid;
  gap: .85rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.sd-test-fields input[type="text"],
.sd-test-fields input[type="tel"],
.sd-test-fields input[type="email"] {
  border: 1.5px solid #e2e8f0;
  background: #f8fafb;
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all .2s;
}
.sd-test-fields input:focus {
  border-color: #16ab88;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,171,136,.12);
}
.sd-test-legal {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: #64748b;
  margin-top: .25rem;
  cursor: pointer;
}
.sd-test-legal input { margin-top: .25rem; accent-color: #16ab88; }
.sd-test-legal a { color: #16ab88; text-decoration: underline; }

/* Submit loading */
.sd-test-submit { position: relative; }
.sd-test-submit-loading { display: none; }
.sd-test-submit.is-loading { pointer-events: none; opacity: .8; }
.sd-test-submit.is-loading .sd-test-submit-label { display: none; }
.sd-test-submit.is-loading .sd-test-submit-loading { display: inline; }

/* Success */
.sd-test-success { text-align: center; padding: 2rem 0; }
.sd-test-check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16ab88 0%, #0e8a6e 100%);
  color: #fff;
  font-size: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(22,171,136,.35);
  animation: sd-test-pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sd-test-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.sd-test-success h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a2332;
  margin-bottom: .75rem;
}
.sd-test-success p {
  font-size: 1rem;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .sd-test-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .sd-test-qsub { margin-left: 0; }
  .sd-test-qnum { width: 26px; height: 26px; }
}

/* =============================================
   MODO "DESDE LANDING" — ocultar navegación en tests
   ============================================= */
body.sd-from-landing .sd-topbar,
body.sd-from-landing .sd-navbar,
body.sd-from-landing #mainNav {
    display: none !important;
}
body.sd-from-landing .sd-footer {
    display: none !important;
}
body.sd-from-landing {
    /* Eliminar el padding que dejaba sitio al navbar fixed */
    padding-top: 0 !important;
}

/* Home – tarjetas de clínica: nombre 1 línea + rating Google estilo widget */
.sd-clinic-name-1line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sd-clinic-google-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    line-height: 1;
}
.sd-clinic-google-rating .reviews-count {
    color: #70757a;
    font-size: .78rem;
}
.sd-clinic-card { display: flex; flex-direction: column; height: 100%; }
.sd-clinic-card .clinic-body { display: flex; flex-direction: column; flex: 1; }
.sd-clinic-card .btn { margin-top: auto !important; }
/* Hueco mínimo garantizado sobre el botón aunque margin-top:auto colapse en tarjetas con mucho contenido */
.sd-clinic-card .clinic-body > :nth-last-child(2) { margin-bottom: .9rem; }

/* Contacto · selects bien identificables como desplegables */
.sd-card select.form-select,
.sd-contact-form select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316ab88'%3E%3Cpath d='M3.5 5.5l4.5 5 4.5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px !important;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
}
.sd-card select.form-select:focus,
.sd-contact-form select.form-select:focus {
    border-color: #16ab88;
    box-shadow: 0 0 0 .15rem rgba(22,171,136,.18);
}

/* Contacto · widget Google Rating (card sobre gradiente) */
.sd-google-widget {
    font-family: 'Roboto', 'Inter', system-ui, sans-serif;
}
.sd-gw-frame {
    background: linear-gradient(135deg, #16ab88 0%, #0e8a6e 100%);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(22,171,136,.25);
}
.sd-gw-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.sd-gw-logo { flex-shrink: 0; line-height: 0; }
.sd-gw-body { flex: 1; min-width: 0; }
.sd-gw-title-new {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}
.sd-gw-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.sd-gw-num {
    font-size: 32px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
    letter-spacing: -.02em;
}
.sd-gw-stars {
    color: #fbbc04;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1;
}
.sd-gw-link {
    display: inline-block;
    font-size: 13px;
    color: #5f6368;
    text-decoration: none;
    margin-top: 2px;
}
.sd-gw-link:hover { color: #4f46e5; text-decoration: underline; }
.sd-gw-count-line {
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    margin-top: 14px;
}
.sd-gw-count-line strong { color: #fff; font-weight: 600; }

/* ════════════════════════════════════════════════
   Tabla de precios (página de tratamiento) · sd-pt-*
   ════════════════════════════════════════════════ */
.sd-pt-section { margin-top: 8px; }
.sd-pt-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e6ebf1;
    border-radius: 16px;
    padding: 26px 22px 22px;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.sd-pt-card:hover {
    border-color: var(--sd-primary);
    box-shadow: 0 12px 32px rgba(22,171,136,.14);
    transform: translateY(-3px);
}
.sd-pt-card--popular {
    border-color: var(--sd-primary);
    box-shadow: 0 12px 32px rgba(22,171,136,.16);
}
.sd-pt-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sd-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(22,171,136,.35);
}
.sd-pt-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 14px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
}
.sd-pt-price {
    border-top: 1px solid #eef1f5;
    padding-top: 16px;
    margin-bottom: 16px;
}
.sd-pt-amount {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--sd-primary);
    line-height: 1.05;
}
.sd-pt-unit {
    font-size: .85rem;
    font-weight: 600;
    color: #718096;
    margin-left: 2px;
}
.sd-pt-ast {
    color: var(--sd-primary);
    text-decoration: none;
    font-weight: 800;
    margin-left: 1px;
}
.sd-pt-sub {
    font-size: .82rem;
    color: #718096;
    margin-top: 6px;
    font-weight: 600;
}
.sd-pt-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex: 1 1 auto;
}
.sd-pt-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .86rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 9px;
}
.sd-pt-features li i {
    color: var(--sd-primary);
    font-size: .8rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.sd-pt-cta {
    margin-top: auto;
    font-weight: 700;
}

/* ════════════════════════════════════════════════
   Pop-up "Pedir cita" · sd-cita-modal
   ════════════════════════════════════════════════ */
.sd-cita-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.sd-cita-modal .sd-cita-head {
    align-items: flex-start;
    background: linear-gradient(135deg,#0d7a60 0%,#16ab88 60%,#1ec8a4 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.3rem 1.5rem;
}
.sd-cita-modal .sd-cita-head .modal-title,
.sd-cita-modal .sd-cita-head .modal-title i {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}
.sd-cita-modal .sd-cita-sub {
    margin: .3rem 0 0;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
    font-weight: 400;
}
.sd-cita-modal .sd-cita-head .btn-close {
    filter: brightness(0) invert(1);
    opacity: .9;
}
.sd-cita-modal .modal-body { padding: 1.5rem; }
.sd-cita-modal .sd-contact-form label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: .35rem;
}

/* =============================================
   CASOS REALES · ESTILO YOUTUBE
   ============================================= */
.sd-yt-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0 0;
    position: sticky;
    top: 0;
    z-index: 30;
}
.sd-yt-channel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
}
.sd-yt-logo { flex-shrink: 0; }
.sd-yt-channel-info { flex: 1 1 auto; min-width: 200px; }
.sd-yt-channel-info h1 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 .15rem;
    color: #0f0f0f;
    line-height: 1.1;
}
.sd-yt-channel-info p { margin: 0; color: #606060; font-size: .92rem; }
.sd-yt-channel-info p strong { color: #0f0f0f; }
.sd-yt-subscribe {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #FF0000;
    color: #fff !important;
    border-radius: 999px;
    padding: .6rem 1.2rem;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
    white-space: nowrap;
}
.sd-yt-subscribe:hover { background: #cc0000; color: #fff; transform: translateY(-1px); }

/* Chips de filtro */
.sd-yt-filters {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: 0 0 1rem;
    scrollbar-width: none;
}
.sd-yt-filters::-webkit-scrollbar { display: none; }
.sd-yt-chip {
    flex-shrink: 0;
    border: none;
    background: #f2f2f2;
    color: #0f0f0f;
    border-radius: 8px;
    padding: .5rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.sd-yt-chip:hover { background: #e2e2e2; }
.sd-yt-chip.active { background: #0f0f0f; color: #fff; }

.sd-yt-wrap { padding-top: 2rem; padding-bottom: 4rem; }

/* Empty / no results */
.sd-yt-empty, .sd-yt-noresults {
    text-align: center;
    color: #606060;
    padding: 3rem 1rem;
}
.sd-yt-empty i { font-size: 3rem; color: #FF0000; margin-bottom: 1rem; }

/* ---- SHORTS ---- */
.sd-yt-shorts-section { margin-bottom: 2.5rem; }
.sd-yt-shorts-head { margin-bottom: 1rem; }
.sd-yt-shorts-logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f0f0f;
}
.sd-yt-shorts-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .75rem;
    scrollbar-width: thin;
}
.sd-yt-short {
    flex: 0 0 auto;
    width: 160px;
    cursor: pointer;
}
.sd-yt-short-thumb {
    position: relative;
    width: 160px;
    height: 285px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.sd-yt-short-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.sd-yt-short:hover .sd-yt-short-thumb img { transform: scale(1.05); }
.sd-yt-short-play, .sd-yt-thumb-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity .2s ease;
}
.sd-yt-short:hover .sd-yt-short-play,
.sd-yt-card:hover .sd-yt-thumb-play { opacity: 1; }
.sd-yt-short-title {
    margin: .55rem 0 0;
    font-size: .85rem;
    font-weight: 600;
    color: #0f0f0f;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- GRID DE VÍDEOS ---- */
.sd-yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem 1rem;
}
.sd-yt-card { cursor: pointer; }
.sd-yt-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.sd-yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.sd-yt-card:hover .sd-yt-thumb img { transform: scale(1.04); }
.sd-yt-meta {
    display: flex;
    gap: .75rem;
    margin-top: .75rem;
}
.sd-yt-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ececec;
    color: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}
.sd-yt-meta-text { min-width: 0; }
.sd-yt-title {
    font-size: .98rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 0 .2rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sd-yt-channel-name { font-size: .85rem; color: #606060; margin: 0; }
.sd-yt-desc {
    font-size: .85rem;
    color: #606060;
    margin: .25rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- LIGHTBOX ---- */
.sd-yt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sd-yt-lightbox.open { display: flex; }
.sd-yt-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(2px);
}
.sd-yt-lightbox-inner {
    position: relative;
    width: min(960px, 100%);
    z-index: 1;
}
.sd-yt-lightbox-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.sd-yt-lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.sd-yt-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background .15s ease;
}
.sd-yt-lightbox-close:hover { background: rgba(255,255,255,.3); }

@media (max-width: 575px) {
    .sd-yt-grid { grid-template-columns: 1fr; }
    .sd-yt-lightbox-close { top: 8px; right: 8px; background: rgba(0,0,0,.5); }
}

/* ===== CTAs fijos en móvil: Pedir cita (popup) + WhatsApp ===== */
.sd-mobile-cta { display: none; }
@media (max-width: 991.98px) {
  .sd-mobile-cta {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1030;
    box-shadow: 0 -3px 18px rgba(0,0,0,.14);
  }
  .sd-mobile-cta .sd-mcta-btn {
    flex: 1 1 50%;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem .5rem; min-height: 54px;
    font-size: .95rem; font-weight: 700; line-height: 1;
    border: none; text-decoration: none; cursor: pointer;
  }
  .sd-mobile-cta .sd-mcta-btn i { font-size: 1.2rem; }
  .sd-mcta-cita { background: var(--sd-primary); color: #fff; }
  .sd-mcta-cita:hover, .sd-mcta-cita:focus { background: #128f72; color: #fff; }
  .sd-mcta-wa { background: #25D366; color: #fff; }
  .sd-mcta-wa:hover, .sd-mcta-wa:focus { background: #1da851; color: #fff; }
  body { padding-bottom: 56px; }
}

/* ===== Scroll infinito del blog ===== */
.sd-blog-sentinel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-top: 2.5rem;
}
.sd-blog-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sd-border, #e0e0e0);
    border-top-color: var(--sd-primary, #16ab88);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s;
    animation: sd-blog-spin .7s linear infinite;
}
.sd-blog-sentinel.is-loading .sd-blog-spinner { opacity: 1; }
@keyframes sd-blog-spin { to { transform: rotate(360deg); } }

/* =============================================
   FIX MÓVIL · Header en una sola fila + sin scroll horizontal
   ============================================= */
/* El body ya tenía overflow-x:hidden, pero en móvil no basta:
   las filas .row (márgenes negativos de gutter) filtran ~12px.
   overflow-x:clip en html lo contiene SIN romper el navbar sticky. */
html { overflow-x: clip; }

@media (max-width: 991.98px) {
  /* Logo + botón teléfono + hamburguesa caben en una fila */
  #mainNav .navbar-brand { margin-right: 0; }
  #mainNav .navbar-brand img { width: 155px; height: auto; }
  #mainNav .d-lg-none { gap: .5rem; }
  #mainNav .d-lg-none .btn { padding: .4rem .7rem; font-size: .8rem; }
}

/* CTA "Encuentra tu clínica" (página de tratamiento): en móvil apila
   texto/formulario en columna para que la caja de búsqueda respete el
   mismo padding a izquierda y derecha (no se pega al borde). */
@media (max-width: 575.98px) {
  .sd-clinic-cta { flex-direction: column !important; align-items: stretch !important; gap: 1.2rem !important; }
  /* En columna, el flex-basis (260/300px) se aplicaría como ALTURA y crea hueco:
     reseteamos a auto para que texto y formulario ocupen solo su contenido. */
  .sd-clinic-cta > * { flex: 0 1 auto !important; width: 100% !important; min-width: 0 !important; }
}

/* Hero de la página de tratamiento · cada grupo en UNA sola línea en móvil
   (badges, tarjetas de precio y botones CTA). Se encoge el contenido para
   que quepa siempre en una línea, incluso en móviles muy pequeños (320px). */
@media (max-width: 575.98px) {
  /* 1) Icono + "Tratamiento dental" + reseñas */
  .sd-hero-badges { gap: .4rem !important; flex-wrap: nowrap !important; }
  .sd-hero-badge-icon { width: 40px !important; height: 40px !important; border-radius: 10px !important; }
  .sd-hero-badges > span { font-size: .62rem !important; padding: .22rem .5rem !important; white-space: nowrap !important; }

  /* 2) Total + Financiado + 1ª Consulta → una línea, texto centrado (v+h) */
  .sd-hero-prices { flex-wrap: nowrap !important; gap: .45rem !important; }
  .sd-hero-prices > div { min-width: 0 !important; flex: 1 1 0 !important; padding: .55rem .5rem !important;
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
  .sd-hero-prices strong { font-size: 1.02rem !important; }
  .sd-hero-prices > div > div:first-child { font-size: .55rem !important; margin-bottom: .15rem !important; }

  /* 3) Pedir Cita + teléfono → una línea, a todo el ancho (mitad y mitad) */
  .sd-hero-cta { flex-wrap: nowrap !important; gap: .6rem !important; }
  .sd-hero-cta .btn { flex: 1 1 0 !important; min-width: 0 !important; justify-content: center !important;
    padding: .85rem .4rem !important; font-size: .9rem !important; white-space: nowrap !important; }

  /* 4) Menos espacio hero → "Casos reales": NO tocamos el padding-bottom del
     hero (su curva blanca ::after mide 60px y cortaría los botones). Solo
     subimos el texto de la 1ª sección reduciendo SU padding-top. */
  .sd-page-hero + .sd-section { padding-top: 1.25rem !important; }
}

/* Página de CLÍNICA · ajustes móvil
   - Botones del hero (Pedir cita + teléfono) en una sola fila, a todo el ancho.
   - Cajas de info (horario, laboratorio…) misma altura + contenido centrado.
   - Listado de tratamientos: misma altura, texto centrado verticalmente. */
@media (max-width: 575.98px) {
  .sd-clinic-hero-cta { flex-wrap: nowrap !important; gap: .6rem !important; }
  .sd-clinic-hero-cta .btn { flex: 1 1 0 !important; min-width: 0 !important; justify-content: center !important;
    padding: .8rem .4rem !important; font-size: .9rem !important; white-space: nowrap !important; }

  .sd-clinic-infobox { height: 100% !important; display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; text-align: center !important; }

  .sd-clinic-treat { height: 100% !important; }
}

/* HOME · secciones "Casos reales" y "Tratamientos" más compactas (todos los dispositivos) */
.sd-section-tight { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* HOME · botones del hero (Cita Gratis + Ver tratamientos) en una fila en móvil */
@media (max-width: 575.98px) {
  .sd-home-hero-cta { flex-wrap: nowrap !important; gap: .6rem !important; }
  .sd-home-hero-cta .btn { flex: 1 1 0 !important; min-width: 0 !important; justify-content: center !important;
    padding: .7rem .5rem !important; font-size: .9rem !important; white-space: nowrap !important; }
  .sd-section-tight { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* Móviles muy pequeños (≤340px): logo y botón del nav algo menores para que
   el header no se parta en dos filas. */
@media (max-width: 340px) {
  #mainNav .navbar-brand img { width: 118px !important; }
  #mainNav .d-lg-none { gap: .35rem !important; }
  #mainNav .d-lg-none .btn { padding: .32rem .55rem !important; font-size: .74rem !important; }
}
