:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #2c2419;
  --slate: #5c5246;
  --muted: #f8f6f4;
  --accent: #b79b76;
  --accent-dark: #9a8260;
  --calipso: #8b7355;
  --calipso-light: #a08b6b;
  --line: #eae6e1;
  --beige-subtle: #ebe6e1;
  --beige-bg: #f5f2ee;
  --shadow: 0 20px 50px rgba(44, 36, 25, 0.08);
  --tooth-tile: url("assets/dientes-patron.png");
  --tooth-tile-size: 400px;
  --tooth-opacity: 0.25;
}

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

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--muted);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Barra superior de contacto */
.top-bar {
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.top-bar a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.8rem;
    padding: 6px 0;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  width: min(1120px, 97%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 16px;
  overflow: visible;
}

.brand {
  display: block;
  text-decoration: none;
  color: inherit;
  align-self: center;
}

.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
}

.brand-fallback {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.brand-fallback--show {
  display: flex;
}

@media (max-width: 768px) {
  .header-content {
    padding: 4px 0;
  }
  .brand-logo {
    height: 52px;
    max-width: 220px;
  }
}

.brand-title {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--calipso);
}

.brand-subtitle {
  font-size: 1.2rem;
  color: var(--calipso-light);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--slate);
}

.nav-links a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-links a.is-active {
  color: var(--ink);
  border-color: var(--accent);
}

.hero {
  position: relative;
  padding: 80px 0 72px;
  background: linear-gradient(180deg, var(--muted) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image: var(--tooth-tile);
  background-size: var(--tooth-tile-size);
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  animation: tooth-drift 18s ease-in-out infinite;
}

.hero::after {
  content: none;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  text-align: center;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
}

.hero .lead {
  font-size: 1rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--accent-dark);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(155, 130, 96, 0.25);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--slate);
  background: var(--white);
}

.btn-small {
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.85rem;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 200px;
  background: var(--white);
}

.badge span {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
}

.badge strong {
  display: block;
  font-size: 0.95rem;
}

.hero-card {
  background: var(--white);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-image {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(160deg, #e8e2dc 0%, #f5f2ee 100%);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-info {
  margin-top: 18px;
  color: var(--slate);
}

.section {
  position: relative;
  padding: 72px 0;
}

#sobre-mi,
#tratamientos,
#horario,
#metodos-pago,
#contacto {
  position: relative;
  overflow: hidden;
}

#sobre-mi::before,
#tratamientos::before,
#horario::before,
#metodos-pago::before,
#sobre-mi::after,
#tratamientos::after,
#horario::after,
#metodos-pago::after,
#contacto::after {
  content: none;
}

#contacto::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image: var(--tooth-tile);
  background-size: var(--tooth-tile-size);
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  animation: tooth-drift 18s ease-in-out infinite;
}

#sobre-mi > .container,
#tratamientos > .container,
#horario > .container,
#metodos-pago > .container,
#contacto > .container,
#contacto > .map-card {
  position: relative;
  z-index: 1;
}

.section::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 20px;
  width: 160px;
  height: 160px;
  opacity: 0.05;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='30' cy='30' r='18' fill='%239a8260'/%3E%3Ccircle cx='90' cy='60' r='14' fill='%239a8260'/%3E%3Cpath d='M20 84c18-10 44-10 62 2' stroke='%239a8260' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
  pointer-events: none;
}

.section-muted::after {
  left: -40px;
  right: auto;
  top: 10px;
}

.section-muted {
  background: var(--muted);
}

.section-header {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--slate);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--beige-subtle);
  color: var(--accent-dark);
}

.section-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.section-actions {
  margin-top: 28px;
}

.page-hero {
  padding: 80px 0 48px;
  background: linear-gradient(180deg, var(--muted) 0%, var(--white) 100%);
}

.page-lead {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 640px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  color: var(--slate);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card h3 {
  color: var(--ink);
  margin-top: 0;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--slate);
}

.list li {
  margin-bottom: 8px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  color: var(--slate);
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--slate);
}

.testimonial-card span {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink);
}

.home-gallery {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.home-gallery .section-header {
  max-width: none;
}

.promos-section {
  padding-top: 0;
}

.promos-block {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--line);
}

.promos-block::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image: var(--tooth-tile);
  background-size: var(--tooth-tile-size);
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  animation: tooth-drift 18s ease-in-out infinite;
}

.promos-block > * {
  position: relative;
  z-index: 1;
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--slate);
}

.promo-card-text {
  margin: 0;
  line-height: 1.5;
  color: var(--accent-dark);
  font-weight: 700;
}

.promo-card-price {
  margin: auto 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.promo-card-prices {
  margin-top: auto;
}

.promo-card-prices p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.promo-card-prices strong {
  font-weight: 700;
  color: var(--accent-dark);
}

.promos-footer {
  margin: 24px 0 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: italic;
}

.promos-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  color: var(--slate);
}

.gallery-image {
  border-radius: 14px;
  background: var(--beige-bg);
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-image--single {
  height: 240px;
}

.gallery-card--single .gallery-image--single {
  margin-bottom: 10px;
}

.gallery-image--contain img {
  object-fit: contain;
}

.gallery-image--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-image--centered img {
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.gallery-labels {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}

.gallery-label {
  font-size: 0.95rem;
}

.gallery-images {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-images--pair {
  grid-template-columns: 1fr 1fr;
  height: 240px;
}

.gallery-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-note {
  margin-top: 20px;
  color: var(--slate);
}

.gallery-image--clickable,
.gallery-img-clickable {
  cursor: zoom-in;
}

/* Lightbox con zoom y pan */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(44, 36, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10001;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  cursor: grab;
  touch-action: none;
}

.lightbox-content:active {
  cursor: grabbing;
}

.lightbox-img {
  max-width: 90vw;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  user-select: none;
  transform-origin: center center;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  color: var(--slate);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  align-items: start;
}

.about-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-image .credential {
  margin-top: 0;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(17, 32, 43, 0.04);
}

.about-intro {
  color: var(--slate);
  margin-bottom: 28px;
  line-height: 1.65;
}

.studies-title {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 600;
}

.studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.study-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(17, 32, 43, 0.04);
}

.study-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(44, 36, 25, 0.12);
  border-color: rgba(155, 130, 96, 0.45);
}

.study-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--beige-subtle);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.study-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.5;
}

.study-card--ongoing {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, #faf8f6 0%, var(--beige-bg) 100%);
}

.study-card--ongoing .study-year {
  background: rgba(155, 130, 96, 0.18);
  color: var(--accent-dark);
}

.image-frame {
  border-radius: 24px;
  border: 1px dashed var(--line);
  padding: 0;
  min-height: 360px;
  background: #fcfbf9;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.credential {
  margin-top: 24px;
  background: var(--beige-bg);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e0dad4;
}

.credential-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.credential-link:hover .credential-text strong {
  color: var(--accent-dark);
}

.credential-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  background: transparent;
}

.credential-text strong {
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.credential span,
.credential-text span {
  display: block;
  color: var(--slate);
  font-weight: 600;
}

@media (max-width: 600px) {
  .credential-link {
    flex-direction: column;
    text-align: center;
  }

  .credential-logo {
    width: 100px;
  }
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.treatment-card {
  background: var(--white);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--slate);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.schedule-card {
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.schedule-row:last-child {
  border-bottom: none;
}

/* Métodos de pago */
.payment-block {
  max-width: 720px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(44, 36, 25, 0.06);
}

.payment-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}

.payment-content > div:first-child {
  flex: 1;
  min-width: 220px;
}

.payment-block .section-title {
  margin-top: 0;
  margin-bottom: 8px;
}

.payment-intro {
  color: var(--slate);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.payment-list li {
  position: relative;
  padding-left: 1.1em;
  color: var(--slate);
  font-size: 0.95rem;
}

.payment-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.payment-logos {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.payment-logos img {
  width: 320px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
}

.section-cta {
  background: linear-gradient(180deg, var(--muted) 0%, var(--white) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-list span {
  display: block;
  color: var(--slate);
  font-size: 0.9rem;
}

.contact-list a {
  font-weight: 600;
  color: var(--ink);
}

.contact-list address {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.cta-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-card {
  margin-top: 32px;
}

.map-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--beige-bg);
  min-height: 360px;
}

.map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
}

.map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -100%) rotate(45deg);
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform-origin: center;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 30px rgba(155, 130, 96, 0.3);
  pointer-events: none;
}

.map-marker svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
  transform: rotate(-45deg);
}

.closing {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-bottom: 120px;
}

.closing::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image: var(--tooth-tile);
  background-size: var(--tooth-tile-size);
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  animation: tooth-drift 18s ease-in-out infinite;
}

.closing::after {
  content: none;
}

.closing > .container {
  position: relative;
  z-index: 1;
}

.closing-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.closing-quote {
  font-style: italic;
  color: var(--slate);
}

.socials {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
  color: var(--ink);
  opacity: 0.9;
}

.social-link svg:not(.social-brand-icon) {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-brand-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.social-link-instagram .social-brand-icon {
  width: 36px;
  height: 36px;
}

.wa-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn:has(.wa-icon) {
  gap: 8px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 18px 30px rgba(155, 130, 96, 0.22);
  z-index: 20;
}

/* Botón hamburger (3 líneas) - visible solo en móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar lateral */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 25, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-open {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(44, 36, 25, 0.12);
  z-index: 999;
  padding: 80px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover {
  background: var(--beige-subtle);
  color: var(--accent-dark);
}

.sidebar-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding: 14px 20px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-content {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .btn-small {
    display: none;
  }

  .promos-action .btn {
    width: 100%;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .closing-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .closing-content .socials {
    justify-content: center;
    width: 100%;
  }

  .hero-badges {
    flex-direction: column;
  }

  .cta-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .promos-block::before,
  #contacto::before,
  .closing::before {
    animation: none;
  }
}

@keyframes tooth-drift {
  0%,
  100% {
    background-position: 0 0;
    transform: rotate(0deg);
  }
  25% {
    background-position: 140px 90px;
    transform: rotate(8deg);
  }
  50% {
    background-position: 220px 30px;
    transform: rotate(-6deg);
  }
  75% {
    background-position: 70px 180px;
    transform: rotate(10deg);
  }
}
