/* Moxie Dental: estilos del sitio */
:root {
  --gold: #ca9c58;
  --brown: #ab793e;
  --cream: #f9efe9;
  --ink: #161515;
  --text: #2f2d2c;
  --line: #e2e2e2;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Quicksand', system-ui, sans-serif;
  --wrap: 1100px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.5; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: var(--gold); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Tipografía */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; color: var(--gold); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
h4 { font-size: 24px; }
h5 { font-size: 22px; }
h6 { font-family: var(--sans); font-size: 20px; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin-bottom: .6em; }
.byline { font-size: 16px; opacity: .9; }

/* Botones */
.btn { display: inline-block; background: var(--brown); color: #fff; text-decoration: none; padding: 12px 34px; border-radius: var(--radius); font-family: var(--sans); font-size: 18px; border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }
.btn-wrap { margin: 1.4em 0 0; }

/* Barra superior y encabezado */
.topbar { background: var(--gold); color: #fff; font-size: 15px; padding: 6px 0; }
.topbar .wrap { max-width: none; padding: 0 22px; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.site-header .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; }
.logo img { width: 165px; height: auto; }
.main-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; margin: 0; }
.main-nav a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.main-nav > ul > li > a.active, .main-nav a:hover { color: var(--gold); }
.main-nav > ul > li > a.active { box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav .has-sub > a { padding-right: 24px; }
.main-nav .has-sub > a::after { content: ''; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.main-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; list-style: none; margin: 0; padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-top: 2px solid var(--gold); }
.main-nav .sub .sub { left: 100%; top: -10px; }
.main-nav .sub a { font-size: 16px; padding: 8px 18px; white-space: normal; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; }
.main-nav > ul > li:nth-last-child(-n+3) .sub { left: auto; right: 0; }
.sub-toggle, .menu-toggle { display: none; }

/* Secciones */
.row { padding: 100px 0; }
.row .row { padding: 0; }
.row.alt { background: var(--cream); }
.col > :last-child { margin-bottom: 0; }
.cols-2 > .wrap, .row.cols-2:not(section), .cols-3 > .wrap, .row.cols-3:not(section), .cols-4 > .wrap, .row.cols-4:not(section) { display: grid; gap: 60px 80px; align-items: center; grid-template-columns: var(--grid, repeat(var(--n), 1fr)); }
.cols-2 { --n: 2; } .cols-3 { --n: 3; } .cols-4 { --n: 4; }
.cols-3 > .wrap, .cols-4 > .wrap, .row.cols-3:not(section), .row.cols-4:not(section) { gap: 40px; align-items: start; }
section.row:not(.cols-2):not(.cols-3):not(.cols-4) > .wrap > .col { max-width: 100%; }
.col.media img, .img img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.col.media { align-self: stretch; }
.col.media img { height: 100%; min-height: 320px; max-height: 620px; }
.img { margin: 0 0 1em; }
.icon { width: 48px; margin: 0 auto 16px; color: var(--gold); }
.icon svg { width: 100%; height: auto; fill: currentColor; }

/* Secciones con foto de fondo */
.has-bg { position: relative; background: var(--bg) center / cover no-repeat; color: #fff; }
.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.has-bg > .wrap { position: relative; }
.has-bg h1, .has-bg h2, .has-bg h3, .has-bg .eyebrow { color: #fff; }
.has-bg h1 { color: var(--gold); }
section.has-bg:first-child { padding: 200px 0 130px; text-align: center; }
section.has-bg:first-child p { max-width: 900px; margin-left: auto; margin-right: auto; }
section.has-bg:first-child .img img { width: 70px; margin: 0 auto 18px; border-radius: 0; }
section.has-bg.cols-2 { text-align: left; }
.has-bg a:not(.btn) { color: #fff; }

/* Portada con video */
.hero-video { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: #222; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 1; }
.hero-video .wrap { position: relative; z-index: 2; width: 100%; }
.hero-video h1 { color: #fff; max-width: 520px; }
.hero-video h6 { color: #fff; font-weight: 500; }

/* Preguntas frecuentes */
.faq { margin-top: 24px; text-align: left; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--sans); font-size: 20px; line-height: 27px; text-align: center; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 4px 18px; }

/* Galería, tablas, blog */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.tile img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .4s; }
a.tile:hover img { transform: scale(1.05); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-family: var(--serif); font-size: 22px; text-align: center; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; }
.table-wrap td, .table-wrap th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.post-card .post-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: 14px; color: var(--brown); }
.post-body h3 { font-size: 24px; margin: 6px 0 10px; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body p { font-size: 16px; flex: 1; }
.post-body .more { font-weight: 600; }

/* Bloques antes del pie */
.prefooter-clinic { padding: 90px 0; }
.prefooter-clinic::before { background: rgba(0,0,0,.15); }
.prefooter-clinic .card { background: #fff; color: var(--text); max-width: 540px; padding: 44px 46px; border-radius: var(--radius); text-align: center; }
.prefooter-clinic .card h2 { color: var(--gold); font-size: clamp(28px, 3vw, 42px); }
.prefooter-form h2 { text-align: center; }
.prefooter-form .col:first-child > p { text-align: center; }

/* Formulario */
.appt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 24px; text-align: left; }
.appt-form .field { display: flex; flex-direction: column; }
.appt-form .full, .appt-form .form-msg { grid-column: 1 / -1; }
.appt-form label { font-size: 17px; margin-bottom: 4px; }
.appt-form input, .appt-form select, .appt-form textarea { font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #333; border-radius: 4px; background: #fff; }
.appt-form .btn { align-self: flex-start; }
.appt-form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 6px; font-size: 16px; }
.form-msg.ok { background: #eef7ee; border: 1px solid #9c9; }
.form-msg.err { background: #fbeeee; border: 1px solid #d99; }

/* Pie */
.site-footer { background: var(--ink); color: #fff; padding: 70px 0 0; font-size: 16px; }
.site-footer .logo img { width: 190px; margin-bottom: 30px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.site-footer h5 { color: var(--gold); font-size: 24px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.contact-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.contact-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--gold); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.i-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.hours { list-style: none; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.copy { background: var(--gold); padding: 10px 0; font-size: 14px; }
.copy .wrap { max-width: none; padding: 0 22px; }
.floating-book { position: fixed; left: 30px; bottom: 30px; z-index: 40; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* Tablet y celular */
@media (max-width: 1100px) {
  .menu-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ''; transition: .2s; }
  .menu-toggle span { top: 21px; }
  .menu-toggle span::before { left: 0; top: -7px; }
  .menu-toggle span::after { left: 0; top: 7px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .menu-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .main-nav li { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav li > a { flex: 1; padding: 12px 22px; }
  .main-nav > ul > li > a.active { box-shadow: none; }
  .main-nav .has-sub > a::after { display: none; }
  .sub-toggle { display: block; width: 48px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ''; position: absolute; left: 19px; top: 15px; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: .2s; }
  .open > .sub-toggle::after { transform: rotate(-135deg); top: 19px; }
  .main-nav .sub, .main-nav .sub .sub { position: static; display: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: none; }
  .main-nav li.open > .sub { display: block; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  body { font-size: 17px; }
  .row { padding: 64px 0; }
  .cols-2 > .wrap, .row.cols-2:not(section), .cols-3 > .wrap, .row.cols-3:not(section), .cols-4 > .wrap, .row.cols-4:not(section) { grid-template-columns: 1fr; gap: 32px; }
  section.has-bg:first-child { padding: 130px 0 90px; }
  .appt-form { grid-template-columns: 1fr; }
  .prefooter-clinic .card { padding: 32px 24px; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar { font-size: 14px; }
  .logo img { width: 130px; }
  .floating-book { left: 12px; bottom: 12px; padding: 10px 22px; font-size: 16px; }
}
.site-footer > .wrap { max-width: 1440px; }
/* Filas anidadas (ícono + texto, columnas internas) */
.col > .row:not(section) { gap: 16px 32px; margin-bottom: 14px; }
.col > .row[style*="1fr 11fr"], .col > .row[style*="2fr 10fr"] { gap: 16px; align-items: center; }
.col > .row:not(section) .icon { margin: 0; width: 40px; }
.col > .row:not(section) p { margin: 0; }
/* Tarjeta blanca sobre foto de fondo */
.col.card, .has-bg.cols-2 > .wrap > .media + .col { background: #fff; color: var(--text); padding: 48px 46px; border-radius: var(--radius); }
.col.card h1, .col.card h2, .col.card h3, .has-bg .media + .col h2, .has-bg .media + .col h3 { color: var(--gold); }
.col.card .eyebrow, .has-bg .media + .col .eyebrow { color: var(--text); }
.col.card a:not(.btn), .has-bg .media + .col a:not(.btn) { color: var(--brown); }
.icon-img img { width: 64px !important; margin: 0 0 18px; border-radius: 0 !important; }
section.has-bg:first-child .icon-img img { margin: 0 auto 18px; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.embed iframe { width: 100%; border-radius: var(--radius); display: block; }
.contact-list { list-style: none; padding: 0; }
.contact-list.big li { font-size: 20px; padding-left: 36px; margin-bottom: 16px; }
.contact-list.big li::before { width: 22px; height: 22px; top: 2px; }
.has-bg .hours { max-width: 420px; }
.social { list-style: none; padding: 0; display: flex; gap: 18px; }

/* Landings de Ads: sin menú, un solo objetivo (llamar, reservar o dejar el pedido) */
.lp-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.lp-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.lp-header-cta { display: flex; align-items: center; gap: 22px; }
.lp-phone { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--ink); }
.lp-phone::before { content: '☎'; color: var(--gold); margin-right: 8px; }
.lp-hero { position: relative; background: var(--bg) center / cover no-repeat; color: #fff; padding: 70px 0 80px; }
.lp-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,12,.82) 0%, rgba(20,16,12,.62) 55%, rgba(20,16,12,.35) 100%); }
.lp-hero > .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); }
.lp-hero .eyebrow { color: var(--gold); }
.lp-hero .lead { font-size: 20px; max-width: 600px; }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 28px; }
.lp-checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.lp-checks li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 14px; line-height: 22px; text-align: center; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.lp-hero .btn-outline { color: #fff; }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); }
.lp-form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px 30px 26px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.lp-form-card h2 { font-size: 30px; margin-bottom: .2em; }
.lp-form-card > p { font-size: 16px; margin-bottom: 0; }
.lp-form { gap: 12px 16px; margin-top: 16px; }
.lp-form label { font-size: 15px; font-weight: 600; }
.lp-form input, .lp-form select, .lp-form textarea { border-color: #bbb; padding: 11px 12px; }
.lp-form .btn { width: 100%; font-weight: 600; padding: 14px 20px; }
.lp-form .opt { font-weight: 400; color: #777; }
.form-note { font-size: 14px; color: #666; margin: 0; text-align: center; }
.lp-thanks h3 { color: var(--brown); font-size: 26px; margin-bottom: .3em; }
.lp-form-card:has(.lp-thanks) > p { display: none; }
.lp-doctor h2 { font-size: clamp(28px, 3.2vw, 40px); }
.lp-trust { background: var(--cream); padding: 26px 0; }
.lp-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-trust li { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; font-size: 17px; line-height: 1.3; }
.lp-trust svg { flex: none; width: 34px; height: 34px; stroke: var(--brown); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp .row { padding: 80px 0; }
.lp-center { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.lp-cards { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; }
.lp-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.lp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-card div { padding: 22px 24px 26px; }
.lp-card h3 { font-size: 26px; }
.lp-card p { margin: 0; font-size: 17px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.lp-steps li { counter-increment: step; margin: 0; }
.lp-steps li::before { content: counter(step); display: block; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--serif); font-size: 24px; line-height: 46px; text-align: center; margin-bottom: 14px; }
.lp-steps h3 { font-size: 23px; margin-bottom: .3em; }
.lp-steps p { font-size: 17px; margin: 0; }
.lp-band { background: var(--brown); color: #fff; padding: 46px 0; }
.lp-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.lp-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0; }
.lp-band .btn { background: #fff; color: var(--brown); }
.lp-band .btn:hover { background: var(--cream); color: var(--brown); }
.lp-band .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.lp-doctor img { border-radius: var(--radius); }
.lp-visit .hours { max-width: 380px; }
.lp-map { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); }
.lp-footer { background: var(--ink); color: #ddd; padding: 40px 0 100px; text-align: center; font-size: 16px; }
.lp-footer img { margin: 0 auto 14px; }
.lp-footer a { color: #fff; }
.lp-footer .small { font-size: 14px; opacity: .8; margin: 0; }
.lp-sticky { display: none; }
@media (max-width: 900px) {
  .lp-hero > .wrap { grid-template-columns: 1fr; gap: 34px; }
  .lp-hero { padding: 44px 0 50px; }
  .lp-hero::before { background: rgba(20,16,12,.7); }
  .lp-trust ul, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-header .btn { display: none; }
}
@media (max-width: 600px) {
  .lp-phone { font-size: 17px; }
  .lp-header .logo img { width: 130px; }
  .lp-trust ul, .lp-steps { grid-template-columns: 1fr; }
  .lp .row { padding: 56px 0; }
  .lp-form-card { padding: 24px 18px; }
  .lp-form { grid-template-columns: 1fr; }
  .lp-sticky { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
  .lp-sticky a { padding: 16px 10px; text-align: center; font-weight: 700; text-decoration: none; color: #fff; background: var(--brown); }
  .lp-sticky a:first-child { background: var(--gold); }
}

/* ===== Diseño medido de Duda (content/*.html generado por tools/rebuild.py) ===== */
.dr { position: relative; padding: var(--pt, 100px) 0 var(--pb, 100px); background-color: var(--bgc, transparent); }
.dr[style*="--bg:"] { background-image: var(--bg); background-size: cover; background-position: var(--bgp, center); background-repeat: no-repeat; }
.dr.has-ov::before { content: ''; position: absolute; inset: 0; background: var(--ov); pointer-events: none; }
.dw { position: relative; display: flex; flex-wrap: wrap; width: 100%; max-width: var(--inner, 1200px); margin: 0 auto; }
.dn { display: flex; flex-wrap: wrap; width: 100%; padding: var(--pt, 0) 0 var(--pb, 0); margin-top: var(--mt, 0); background-color: var(--bgc, transparent); }
.dc { position: relative; display: flex; flex-direction: column; justify-content: var(--jc, flex-start); align-items: stretch; flex: 0 0 var(--w, 100%); max-width: var(--w, 100%); margin-left: var(--ml, 0); padding: var(--pad, 0); border-radius: var(--rad, 0); background-color: var(--cbg, transparent); min-width: 0; }
.dc.cimg { background-image: var(--cimg); background-size: cover; background-position: center; }
.dc.media { padding: 0; min-height: var(--mh, 320px); }
.dc.media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dc > h1, .dc > h2, .dc > h3, .dc > h4, .dc > h5, .dc > h6, .dc > p, .dc > ul, .dc > ol, .dc > .btn, .dc > figure, .dc > .ico, .dc > .gal, .dc > .faq, .dc > form, .dc > .table-wrap { margin: var(--mt, 0) 0 0; }
.dc h1 { font-size: var(--fs, 60px); }
.dc h2 { font-size: var(--fs, 48px); }
.dc h3 { font-size: var(--fs, 32px); }
.dc h4 { font-size: var(--fs, 24px); }
.dc h5 { font-size: var(--fs, 24px); color: #000; margin-bottom: 0; }
.dc h6 { font-size: var(--fs, 20px); font-family: var(--serif); color: #000; }
.dc p, .dc li { font-size: var(--fs, 18px); }
.dc .eyebrow { font-family: var(--sans); font-weight: 400; font-size: 20px; letter-spacing: 0; text-transform: none; color: #000; }
.dc > .btn { display: block; width: var(--bw, auto); max-width: 100%; text-align: center; align-self: var(--al, flex-start); }
.dc > .btn[style*="--al:center"] { align-self: center; }
.dc > .btn[style*="--al:right"] { align-self: flex-end; }
.btn { line-height: 1.45; }
.fig { width: var(--iw, auto); max-width: 100%; }
.fig[style*="--al:center"], .ico[style*="--al:center"] { align-self: center; }
.fig[style*="--al:right"], .ico[style*="--al:right"] { align-self: flex-end; }
.fig img { width: 100%; height: auto; }
.ico { width: var(--iw, 35px); max-width: 100%; color: var(--gold); line-height: 0; }
.ico svg { width: 100%; height: auto; fill: currentColor; display: block; }
.gal { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gy, 0) var(--gap, 0); width: 100%; }
.gi { display: flex; flex-direction: column; position: relative; min-width: 0; }
.gi > a { display: block; }
.gi img { width: 100%; aspect-ratio: var(--ratio, 1); object-fit: var(--fit, cover); border-radius: var(--radius); }
.gc { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; padding: var(--cp, 12px 0 0); }
.gc h3 { font-size: var(--fs, 24px); color: #000; margin: 0 0 6px; }
.gc p { font-size: var(--fs, 18px); line-height: 1.4; margin: 0 0 16px; flex: 1; }
.gc .btn { width: var(--bw, 200px); max-width: 100%; text-align: center; }
.gi.over .gc { position: absolute; inset: auto 0 0 0; padding: 40px 12px 14px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.gi.over .gc h3 { color: #fff; margin: 0; }
.dc > .faq { width: 100%; }
.dc .faq-item { border-bottom: 1px solid var(--gold); }
.dc .faq-item summary { font-size: 24px; color: #000; padding: 20px 15px; align-items: center; }
.dc .faq-item summary::after { content: ''; width: 25px; height: 25px; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.dc .faq-item[open] summary::after { transform: rotate(180deg); }
.dc .faq-item summary::after { transition: transform .3s ease-in-out; }
.dc .faq-item.closing summary::after { transform: none; }
.dc .faq-a { padding: 0 15px 20px; color: #000; }
.hero-duda { position: relative; padding: 250px 0; overflow: hidden; background: #000; }
.hero-duda video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-duda::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 1; }
.hero-duda .dw { z-index: 2; }
@media (max-width: 1240px) { .dr:not(.full) > .dw { padding: 0 24px; } }
@media (max-width: 800px) {
  .dr { padding: min(var(--pt, 100px), 64px) 0 min(var(--pb, 100px), 64px); }
  .dw { flex-direction: column; }
  .dr.rev-m > .dw { flex-direction: column-reverse; }
  .dw > .dc { flex: 0 0 auto; width: 100%; max-width: 100%; margin-left: 0; }
  .dw > .dc + .dc { margin-top: 28px; }
  .dw > .dc[style*="--pad"] { padding: 32px 22px; }
  .dw > .dc.media { min-height: min(var(--mh, 320px), 380px); }
  .dn .dc[style*="--w:91"], .dn .dc[style*="--w:83"] { padding-left: 10px; }
  .dc h1 { font-size: min(var(--fs, 60px), 38px); }
  .dc h2 { font-size: min(var(--fs, 48px), 32px); }
  .dc h3 { font-size: min(var(--fs, 32px), 26px); }
  .dc .faq-item summary { font-size: 20px; padding: 16px 6px; }
  .gal { grid-template-columns: 1fr; gap: 28px; }
  .hero-duda { padding: 150px 0 110px; }
}
.video-box { padding: 0; border: 0; background: #000; max-width: 92vw; overflow: visible; }
.video-box::backdrop { background: rgba(0,0,0,.8); }
.video-box video { display: block; width: min(1100px, 92vw); max-height: 86vh; }
.video-box button { position: absolute; right: 0; top: -40px; width: 36px; height: 36px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
/* Encabezado, pie y formulario medidos de Duda */
.site-header .wrap { padding: 20px 25px 15px; }
.logo img { width: 180px; }
.topbar { font-size: 16px; padding: 5px 0; }
.topbar .wrap { padding: 0 25px; }
.site-footer { padding: 100px 0 0; font-size: 18px; }
.site-footer > .wrap { max-width: none; padding: 0 25px; }
.site-footer .logo img { width: 210px; margin-bottom: 50px; }
.footer-cols { grid-template-columns: 1.05fr .9fr 1fr 1fr; gap: 40px 50px; padding-bottom: 100px; }
.copy { padding: 15px 0 100px; font-size: 16px; }
.copy .wrap { padding: 0 25px; }
.appt-form { gap: 14px 28px; }
.appt-form .btn { width: 300px; max-width: 100%; display: block; margin: 12px auto 0; align-self: center; }
.prefooter-form .field:last-child { align-items: center; }
.dc .appt-form { margin-top: 25px; }
@media (max-width: 800px) { .site-footer { padding-top: 60px; } .footer-cols { padding-bottom: 50px; } .copy { padding-bottom: 80px; } }
/* Las variables de una columna no se heredan a sus hijos */
.dc { --mt: 0px; --al: flex-start; --pad: 0; --rad: 0; --cbg: transparent; --ml: 0; --jc: flex-start; }
.dn { --pt: 0px; --pb: 0px; --mt: 0px; --bgc: transparent; }
.dc > .gal { max-width: var(--gw, 100%); align-self: center; }
.hero-duda h1 { max-width: 560px; }
/* Pie como en Duda */
.footer-cols { grid-template-columns: 373px 347px 348px 1fr; gap: 40px 0; }
.footer-cols > div:first-child, .footer-cols > div:nth-child(3) { padding-right: 40px; }
.site-footer .contact-list li { padding-left: 37px; }
.site-footer .contact-list li::before { width: 24px; height: 24px; top: 0; }
.site-footer .contact-list .i-pin a, .site-footer .contact-list .i-mail a { text-decoration: underline; }
.site-footer ul a.active, .site-footer ul a[aria-current] { color: var(--gold); text-decoration: underline; }
@media (max-width: 1100px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr; } }
/* Ajustes finos */
.main-nav a { color: #000; }
.dc { margin-top: var(--ct, 0); --ct: 0px; }
.dc.media { height: var(--mh, auto); align-self: flex-start; }
.dc.has-cov::before { content: ''; position: absolute; inset: 0; background: var(--cov); border-radius: inherit; pointer-events: none; }
.dc.has-cov > * { position: relative; }
.dc.media.has-cov::before { z-index: 1; }
.legal h3 { font-size: var(--lhs, 24px); color: var(--lhc, var(--gold)); margin: 40px 0 15px; }
.legal p, .legal li { font-size: var(--lfs, 18px); }
.legal p { margin: 0 0 1em; }
.blog-search { display: flex; justify-content: center; margin-bottom: 25px; width: 100%; }
.blog-search input { width: 400px; max-width: 100%; height: 53px; padding: 0 37px 0 15px; font: inherit; border: 1px solid #333; border-radius: 10px; background: #fff; }
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { background: var(--cream); border-radius: 10px; border-bottom: 10px solid var(--gold); box-shadow: none; }
.post-card[hidden] { display: none; }
.post-card .post-img img { aspect-ratio: auto; height: 190px; }
.post-body { padding: 15px 15px 15px; }
.post-body h3 { font-size: 24px; line-height: 36px; margin: 0 0 15px; }
.post-body h3 a { color: var(--ink); }
.post-body .post-by { font-size: 15px; line-height: 22.5px; color: var(--ink); margin: 0 0 15px; }
.post-body .post-desc { font-size: 18px; line-height: 25.2px; margin: 0 0 15px; }
.post-body .more { font-weight: 400; color: var(--gold); text-decoration: underline; }
.social { gap: 16px; margin: 15px 0 0; }
.social svg { width: 20px; height: 20px; fill: var(--gold); display: block; }
@media (max-width: 800px) { .dc { margin-top: 0; } .dw > .dc.media { height: auto; } .blog-grid { grid-template-columns: 1fr; } }

.dc > .btn[style*="--bh"] { display: flex; align-items: center; justify-content: center; min-height: var(--bh); }
.dc > .btn[style*="background"]:hover { filter: brightness(.96); }
@media (min-width: 801px) { .dw.nw, .dn.nw { flex-wrap: nowrap; } .dw.nw > .dc, .dn.nw > .dc { flex-shrink: 1; } }
.dn[style*="--bgc"] { background-color: var(--bgc); }
.price { display: block; font-family: var(--serif); font-size: 38px; font-weight: 400; color: var(--brown); line-height: 1.2; }
.li-row { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px solid #e0d2c0; align-items: flex-start; }
.li-row > img { flex: 0 0 var(--lw, 120px); width: var(--lw, 120px); height: var(--lh, 120px); object-fit: cover; border-radius: 10px; }
.li-body { flex: 1; min-width: 0; }
.legal .li-body h3 { margin: 0 0 10px; }
.legal .li-body p { margin: 0 0 12px; }
.li-link { color: #000; font-size: 15px; text-decoration: underline; }
.li-link:hover { color: var(--gold); }
@media (max-width: 800px) { .li-row { gap: 14px; } .li-row > img { flex-basis: 80px; width: 80px; height: 80px; } }

.floating-book { left: 25px; bottom: 25px; width: 300px; text-align: center; }
@media (max-width: 800px) { .floating-book { left: 12px; bottom: 12px; width: auto; } }
/* Landings: el formulario no ensancha la página en celular y el botón ocupa todo el ancho */
.lp-hero > .wrap > * { min-width: 0; }
.lp-form .field { min-width: 0; }
.lp-form input, .lp-form select, .lp-form textarea { width: 100%; min-width: 0; }
.lp-form .btn { width: 100%; margin: 0; }
.lp-form .field:last-child { align-items: stretch; }
/* Celular: palabras largas y tablas no ensanchan la página */
@media (max-width: 800px) {
  .dc, .dc h1, .dc h2, .dc h3, .dc h4, .dc h5, .dc p, .dc li { overflow-wrap: break-word; min-width: 0; }
  .dc h1, .dc h2, .dc h3 { hyphens: auto; }
  .dc > .btn { width: min(var(--bw, 100%), 100%); }
  .fig, .dc > .table-wrap { max-width: 100%; }
  .dc > .table-wrap { overflow-x: auto; }
  .dn > .dc { flex-shrink: 1; }
  .dn { max-width: 100% !important; }
}

/* ===== Celular medido de Duda a 390 px =====
   Valores generales acá; los de cada elemento van en content/*.html como variables --m*, escritas por tools/mobile_sync.py. */
@media (min-width: 801px) { .m-only { display: none !important; } }
.logo-m { display: none; }
@media (max-width: 800px) {
  .m-only { display: block; }
  .d-only { display: none !important; }
  .topbar { display: none; }
  .site-header { position: sticky; top: 0; z-index: 60; background: #fff; }
  .site-header .wrap { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; height: 80px; padding: 0 15px 0 10px; max-width: none; }
  .site-header .menu-toggle { grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
  .site-header .menu-toggle span, .site-header .menu-toggle span::before, .site-header .menu-toggle span::after { background: #000; }
  .menu-open .site-header .menu-toggle span { background: transparent; }
  .site-header .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .logo-d { display: none; }
  .site-header .logo .logo-m { display: block; width: 150px; height: auto; }
  .m-tel { grid-column: 3; grid-row: 1; justify-self: end; width: 30px; height: 30px; color: #000; }
  .m-tel svg { width: 100%; height: 100%; fill: currentColor; display: block; }
  body.menu-open { overflow: hidden; }
  .main-nav { position: fixed; top: 80px; left: 0; right: 0; bottom: 0; max-height: none; background: #f9efe9; box-shadow: none; }
  .main-nav > ul { padding: 50px 25px 0; }
  .main-nav > ul.m-extra { padding: 0 25px 50px; }
  .main-nav li { justify-content: center; }
  .main-nav li > a { flex: 0 1 auto; padding: 0 0 10px; min-height: 44px; font-size: 16px; letter-spacing: .48px; color: #000; text-align: center; }
  .main-nav > ul > li > a.active { color: var(--brown); box-shadow: inset 0 -2px 0 var(--brown); height: 34px; min-height: 0; padding: 0; margin-bottom: 10px; }
  .main-nav .sub, .main-nav .sub .sub { padding: 0; background: transparent; }
  .main-nav .sub li > a { min-height: 34px; padding: 5px 10px; color: #161515; }
  .main-nav .sub-toggle { width: 30px; height: 34px; margin-bottom: 10px; }
  .main-nav .sub-toggle::after { left: 10px; top: 9px; border-color: #000; }
  .m-info { padding: 50px 25px; text-align: center; color: #fff; background: linear-gradient(rgba(171,121,62,.88), rgba(171,121,62,.88)), url(/assets/img/pexels-photo-8465944-bg.webp) center / cover no-repeat; }
  .m-info a { color: #fff; text-decoration: underline; }
  .m-ic { width: 35px; height: 35px; margin: 0 auto 12px; }
  .m-ic + a + .m-ic { margin-top: 28px; }
  .m-ic svg { width: 100%; height: 100%; fill: #fff; display: block; }

  /* Filas y columnas: en Duda todo se apila */
  .dr, .dr.has-ov { padding: 50px 0; }
  .dr > .dw, .dr:not(.full) > .dw { padding: 0 15px; }
  .hero-duda { padding: 100px 0; }
  .hero-duda > .dw { padding: 0 15px; }
  .dc > ul, .dc > ol, .dc .legal ul, .dc .legal ol { padding-left: 35px; }
  .dw, .dn, .dw.nw, .dn.nw { flex-direction: column; flex-wrap: nowrap; }
  .dr.rev-m > .dw { flex-direction: column-reverse; }
  .dn { max-width: 100% !important; }
  .dw > .dc, .dn > .dc { flex: 0 0 auto; width: 100%; max-width: 100%; margin-left: 0; margin-top: 0; }
  .dw > .dc + .dc { margin-top: 0; }
  .dw > .dc[style*="--pad"] { padding: 0; }
  .dn .dc[style*="--w:91"], .dn .dc[style*="--w:83"] { padding-left: 0; }
  .dc > .ico { align-self: center; }

  /* Tipografía */
  .dc h1, .dc h2, .dc h3, .dc h4, .dc h5, .dc h6 { line-height: normal; hyphens: manual; }
  .dc h1 { font-size: 40px; }
  .dc h2 { font-size: 36px; }
  .dc h3 { font-size: 36px; }
  .dc h4 { font-size: 24px; }
  .dc h5 { font-size: 22px; }
  .dc h6 { font-size: 20px; }
  .dc p, .dc li, .gc p { font-size: 16px; line-height: 24px; color: #000; text-align: justify; }
  .dc .eyebrow { font-size: 18px; line-height: normal; text-align: center; }
  .dc .btn, .gc .btn { font-size: 16px; line-height: 22px; }
  .dc td { font-size: 16px; line-height: 24px; color: #000; }
  .gal { grid-template-columns: 1fr; }

  /* Valores por elemento */
  [style*="--mfs:"] { font-size: var(--mfs) !important; }
  [style*="--mlh:"] { line-height: var(--mlh) !important; }
  [style*="--mal:"] { text-align: var(--mal) !important; }
  [style*="--mc:"] { color: var(--mc) !important; }
  [style*="--mw:"] { font-weight: var(--mw) !important; }
  [style*="--mmt:"] { margin-top: var(--mmt) !important; }
  [style*="--mpt:"] { padding-top: var(--mpt) !important; }
  [style*="--mpb:"] { padding-bottom: var(--mpb) !important; }
  [style*="--mpad:"] { padding: var(--mpad) !important; }
  .fig[style*="--miw:"] { width: var(--miw) !important; }
  .fig[style*="--mas:"] { align-self: var(--mas) !important; }
  .dc > .btn[style*="--mbw:"] { width: var(--mbw) !important; min-height: var(--mbh, 0); }
  .dc > .btn[style*="--mas:"] { align-self: var(--mas) !important; }
  .dc.media[style*="--mmh:"] { min-height: var(--mmh) !important; height: var(--mmh) !important; }

  .dn.rev-m { flex-direction: column-reverse; }
  .dr[style*="--mrev:1"] > .dw, .dn[style*="--mrev:1"] { flex-direction: column-reverse; }
  .dr[style*="--mrev:0"] > .dw, .dn[style*="--mrev:0"] { flex-direction: column; }
  [style*="--mrad:"] { border-radius: var(--mrad) !important; }
  .dr[style*="--mpl:"] > .dw, .hero-duda[style*="--mpl:"] > .dw { padding-left: var(--mpl); padding-right: var(--mpl); }
  .ico[style*="--miw:"] { width: var(--miw) !important; }
  .dc > h1, .dc > h2, .dc > h3, .dc > h4, .dc > h5, .dc > h6, .dc > p { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .dc > .gal { max-width: 100%; }
  .gal[style*="--mcols:"] { grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); gap: var(--mgy, 0px) var(--mgap, 0px); }
  .gal[style*="--mratio:"] .gi img { aspect-ratio: var(--mratio); }
  .gc { padding: 15px 10px 25px; }
  .gc h3 { margin: 0; }
  .gc p { margin: 0 0 10px; flex: none; }
  .gc .btn { padding: 15px 10px; }

  /* Preguntas frecuentes */
  .dc .faq-item summary { font-size: 22px; line-height: normal; padding: 16px 15px; color: #000; }

  /* Listas con foto y textos legales */
  .li-row { flex-direction: column; gap: 0; padding: 0; margin-bottom: 20px; border-bottom: 0; align-items: stretch; }
  .li-row > img { flex: 0 0 auto; width: 100% !important; height: 250px; }
  .li-body { padding: 10px 15px 0; text-align: center; }
  .dc .legal h3, .dc .legal .li-body h3 { font-size: 22px; line-height: 33px; color: var(--brown); margin: 10px 0 0; }
  .dc .legal .li-body h3 { margin: 0; text-align: center; }
  .dc .legal .li-body p { font-size: 16px; line-height: 24px; color: #000; text-align: center; }
  .dc .legal > h3:not(:first-child) { margin-top: 30px; padding-top: 10px; border-top: 1px solid #e9e1d8; }
  .dc .legal ul, .dc .legal ol { margin: 10px 0 35px; }
  .li-link { display: block; font-size: 16px; line-height: 24px; margin-top: 10px; }

  /* Tarjetas del blog */
  .dc .post-body { padding: 15px; }
  .dc .post-body h3 { font-size: 20px; line-height: 30px; margin: 0 0 15px; color: #161515; }
  .dc .post-body .post-by { font-size: 15px; line-height: 22.5px; text-align: left; color: #161515; }
  .dc .post-body .post-desc { font-size: 16px; line-height: 22.4px; text-align: left; color: #000; }
  .dc .post-body .more { font-size: 16px; line-height: 24px; }

  /* Bloques de antes del pie */
  .prefooter-clinic { padding: 50px 0; background-position: 0% 50%; }
  .prefooter-clinic .dc { padding: 25px !important; }
  .prefooter-clinic .dc > p { margin-top: 10px; }
  .prefooter-form { padding: 50px 0 25px; }
  .prefooter-form > .dw { flex-direction: column-reverse; }
  .prefooter-form .dc.media { min-height: 350px; height: 350px; margin-bottom: 25px; }
  .prefooter-form .dc > p { margin-top: 10px; }
  .prefooter-form .appt-form { grid-template-columns: 1fr; gap: 0; margin-top: 35px; padding: 0 15px; }
  .prefooter-form .appt-form .field { margin-bottom: 10px; }
  .prefooter-form .appt-form label { font-size: 16px; line-height: 24px; color: #161515; margin: 0; }
  .prefooter-form .appt-form input, .prefooter-form .appt-form select { height: 40px; padding: 0 10px; margin: 3px 0; border: 1px solid #000; border-radius: 5px; font-size: 16px; appearance: none; -webkit-appearance: none; }
  .prefooter-form .appt-form textarea { height: 80px; padding: 5px 10px; margin: 3px 0; border: 1px solid #000; border-radius: 5px; }
  .prefooter-form .appt-form .btn, .dc .appt-form .btn { width: 250px; font-size: 16px; line-height: 22px; padding: 15px 10px; margin: 25px auto; }
  .dc .appt-form { grid-template-columns: 1fr; gap: 0; }

  /* Pie */
  .site-footer { padding: 50px 0 0; font-size: 16px; text-align: center; }
  .site-footer > .wrap { padding: 0 15px; }
  .site-footer .logo { display: block; }
  .site-footer .logo img { width: 200px; margin: 0 auto 25px; }
  .footer-cols { padding-bottom: 50px; gap: 40px; }
  .footer-cols > div:first-child, .footer-cols > div:nth-child(3) { padding-right: 0; }
  .site-footer h5 { font-size: 20px; color: var(--gold); margin-bottom: 8px; }
  .site-footer ul:not(.hours):not(.contact-list) li { margin: 0 0 10px; font-size: 16px; }
  .site-footer .contact-list li { padding: 42px 0 0; margin-bottom: 25px; }
  .site-footer .contact-list li::before { left: 50%; margin-left: -15px; width: 30px; height: 30px; top: 0; }
  .site-footer .hours { max-width: 310px; margin: 0 auto; text-align: left; }
  .site-footer .hours li { font-size: 16px; line-height: 24px; margin-bottom: 10px; }
  .copy { padding: 15px 0 90px; font-size: 13px; text-align: center; }
  .floating-book { left: 25px; bottom: 25px; width: 250px; padding: 15px 10px; font-size: 16px; line-height: 22px; }
}

/* Botón flotante de WhatsApp */
.floating-wa { position: fixed; right: 25px; bottom: 25px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.floating-wa:hover { background: #1ebe5b; color: #fff; }
.floating-wa svg { width: 32px; height: 32px; fill: currentColor; }
@media (max-width: 800px) { .floating-wa { right: 15px; bottom: 23px; } }

/* Contacto: mail y dirección en negro, como en Duda */
.page-contact-our-dental-clinic-in-toronto main a[href^="mailto:"], .page-contact-our-dental-clinic-in-toronto main a[href*="google.com/maps"] { color: #000; }

/* Escritorio y entradas del blog, medidos de Duda */
.dc > h2 + .blog-grid { margin-top: 25px; }
.dc > .blog-search + .blog-grid { margin-top: 25px; }
@media (min-width: 801px) { .dc > .blog-search + .blog-grid { margin-top: 50px; } }
.dc strong, .dc b { font-weight: 700; }
.dc p a:not(.btn), .dc li a:not(.btn) { text-decoration: none; }
.post-body .more { color: var(--brown); }
.post-card { box-shadow: 3px 3px 11px rgba(0,0,0,.05); }
.blog-search input { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m16 16 5.5 5.5'/%3E%3C/svg%3E") no-repeat right 15px center / 18px 18px; }
.post-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 50px 0; min-height: 163px; }
.post-nav a { color: var(--brown); text-decoration: none; }
.post-nav .newer { margin-left: auto; }
.dr:has(.share-icons) { --pb: 100px; }
.share-icons { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.share-icons a { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: var(--brown); color: #fff; }
.share-icons a:hover { background: var(--gold); color: #fff; }
.share-icons svg { width: 21px; height: 21px; fill: currentColor; display: block; }
.posts-more { display: block; align-self: center; width: 300px; max-width: 100%; height: 24px; margin: 20px auto 0; padding: 0; border: 0; border-radius: 10px; background: var(--brown); color: #fff; font: inherit; line-height: 24px; cursor: pointer; }
.posts-more:hover { background: var(--gold); }
@media (min-width: 801px) {
  .dc p, .dc li, .gc p { color: #000; }
  [style*="--dal:"] { text-align: var(--dal) !important; }
  [style*="--dco:"] { color: var(--dco) !important; }
  [style*="--dlh:"] { line-height: var(--dlh) !important; }
  .dc h1, .dc h2 { line-height: normal; }
  .legal h3, .legal .li-body h3 { line-height: 36px; }
  .li-link { font-size: 18px; }
  .gc p { line-height: normal; }
  .dc .eyebrow { line-height: 25px; }
  .dc .faq-item summary { line-height: 28.8px; }
  .post-card { height: 532px; }
  .post-body { min-height: 0; }
  .post-body .post-by { flex: none; }
  .post-body .post-desc { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .post-body .more { flex: none; }
  .blog-search { margin-bottom: 50px; }
}
@media (max-width: 800px) {
  .post-nav { padding: 50px 0; min-height: 156px; font-size: 16px; }
  .share-icons { gap: 14.5px; margin-top: 10px; }
  .share-icons a { width: 30px; height: 30px; }
  .share-icons svg { width: 18px; height: 18px; }
  .posts-more { height: 53px; line-height: 53px; font-size: 16px; }
}

/* Formularios del sitio, medidos de Duda. Las landings tienen el suyo (.lp-form). */
.dc .appt-form:not(.lp-form) .field { margin-bottom: 10px; }
.dc .appt-form:not(.lp-form) .field:last-child { margin-bottom: 0; align-items: center; }
.dc .appt-form:not(.lp-form) label { margin: 0; color: #161515; }
.dc .appt-form:not(.lp-form) input:not([type=hidden]), .dc .appt-form:not(.lp-form) select { height: 40px; padding: 0 10px; margin: 3px 0; border: 1px solid #000; border-radius: 5px; }
.dc .appt-form:not(.lp-form) textarea { height: 80px; padding: 5px 10px; margin: 3px 0; border: 1px solid #000; border-radius: 5px; }
.dr:not(.prefooter-form) .appt-form:not(.lp-form) label { color: #000; }
.dr:not(.prefooter-form) .appt-form:not(.lp-form) input:not([type=hidden]), .dr:not(.prefooter-form) .appt-form:not(.lp-form) select, .dr:not(.prefooter-form) .appt-form:not(.lp-form) textarea { background: transparent; }
.page-contact-our-dental-clinic-in-toronto .dr:not(.prefooter-form) .appt-form:not(.lp-form) label { color: #161515; }
.dr:not(.prefooter-form) .appt-form:not(.lp-form) .field:has(#f-email), .dr:not(.prefooter-form) .appt-form:not(.lp-form) .field:has(#f-patient) { grid-column: 1 / -1; }
.page-our-dental-services-in-toronto__dental-implants-in-toronto .dr:not(.prefooter-form) .appt-form:not(.lp-form) .field { grid-column: 1 / -1; }
@media (min-width: 801px) {
  .dc .appt-form:not(.lp-form) { gap: 0 34px; padding: 0 17px; }
  .dc .appt-form:not(.lp-form) label { font-size: 18px; line-height: 27px; }
  .dc .appt-form:not(.lp-form) input:not([type=hidden]), .dc .appt-form:not(.lp-form) select, .dc .appt-form:not(.lp-form) textarea { font-size: 18px; }
  .dc .appt-form:not(.lp-form) .btn { width: 300px; height: 53px; padding: 0 10px; margin: 20px auto; line-height: 53px; }
}
@media (max-width: 800px) {
  .dc .appt-form:not(.lp-form) { gap: 0; padding: 0 15px; }
  .dc .appt-form:not(.lp-form) label { font-size: 16px; line-height: 24px; }
  .dc .appt-form:not(.lp-form) input:not([type=hidden]), .dc .appt-form:not(.lp-form) select, .dc .appt-form:not(.lp-form) textarea { font-size: 16px; appearance: none; -webkit-appearance: none; }
  .dc .appt-form:not(.lp-form) .btn { width: 250px; height: 53px; padding: 0 10px; margin: 20px auto; line-height: 53px; }
}

/* Botón flotante de turnos: borde blanco como en Duda, sin sombra */
.floating-book { border-color: #fff; box-shadow: none; }

/* Submenús de escritorio: como en Duda, bajan con una animación, tienen línea entre ítems y el sub-submenú abre a la izquierda.
   Sin el fondo de color de Duda; la página actual va en dorado con una barra a la izquierda. Ancho según el texto, sin cortar renglones. */
@media (min-width: 1101px) {
  .main-nav .sub { display: block; visibility: hidden; opacity: 0; transform: translateY(-10px); padding: 0; min-width: 240px; transition: transform .4s ease-out, opacity .1s ease-out, visibility 0s linear .1s; }
  .main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; visibility: visible; opacity: 1; transform: none; transition: transform .4s ease-out, opacity .1s ease-out; }
  .main-nav .sub .sub { left: auto; right: 100%; top: -2px; transform: translateX(-24px); }
  .main-nav .sub > li { border-bottom: 1px solid #d1d1d1; }
  .main-nav .sub > li:last-child { border-bottom: 0; }
  .main-nav .sub a { font-size: 15px; line-height: 22.5px; padding: 5px 34px 5px 15px; white-space: nowrap; }
  .main-nav .sub a.active { color: var(--gold); font-weight: 500; box-shadow: inset 3px 0 0 var(--gold); }
  .main-nav .has-sub > a::after { transition: transform .3s ease; }
  .main-nav > ul > li.has-sub:hover > a::after, .main-nav > ul > li.has-sub:focus-within > a::after { transform: translateY(-20%) rotate(-135deg); }
  .main-nav .sub .has-sub > a::after { transform: translateY(-50%) rotate(135deg); }
}

/* Galerías: zoom al pasar el mouse dentro del recuadro de la foto (.zoom) y entrada animada (.fiu), como en Duda. */
.gal.zoom .zw { display: block; overflow: hidden; }
.gal.zoom .zw img { display: block; transition: transform .2s ease-out; }
.gal.zoom .zw:hover img { transform: scale(1.06); }
.gal.fiu-wait > .gi { opacity: 0; }
.gal.fiu-in > .gi { animation: fiu 1s ease both; animation-delay: calc(var(--i, 0) * .1s + .1s); }
@keyframes fiu { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
/* Fotos sueltas que crecen apenas al pasar el mouse, sin recorte (página de encías). */
.hz { transition: transform .2s ease-out; }
.hz:hover { transform: scale(1.06); }
/* Video de fondo en una columna de foto (About). */
.dc.media video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Lista "Dental Care for Common Concerns" en escritorio: como en Duda, el título arriba y "Learn More" al pie de la foto. */
@media (min-width: 801px) {
  .li-row { gap: 35px; padding: 20px 0; align-items: stretch; }
  .li-body { display: flex; flex-direction: column; align-items: flex-start; }
  .legal .li-body h3 { margin-bottom: 20px; }
  .legal .li-body p { margin-bottom: 0; }
  .li-link { margin-top: auto; padding: 15px 0 14px; }
}

/* Foto al lado de preguntas frecuentes: como en Duda, se estira con la columna de texto al abrir una respuesta (alto mínimo el de Duda). */
@media (min-width: 801px) {
  .dw:has(> .dc .faq-item) > .dc.media, .dn:has(> .dc .faq-item) > .dc.media { align-self: stretch; height: auto; min-height: var(--mh); }
}

/* Animaciones de entrada de la home (data-anim), como en Duda; site.js las activa solo en escritorio. */
.dr:has([data-anim]) { overflow-x: clip; }
.anim-wait[data-anim="slide-up"] { transform: translateY(20%); }
.anim-wait[data-anim="fade-left"] { opacity: 0; transform: translateX(-20%); }
.anim-wait[data-anim="fade-right"] { opacity: 0; transform: translateX(20%); }
.anim-wait[data-anim="fade"] { opacity: 0; }
.anim-in[data-anim="slide-up"] { animation: a-slide-up .5s ease both; }
.anim-in[data-anim="fade-left"] { animation: a-fade-x .6s ease both; --ax: -20%; }
.anim-in[data-anim="fade-right"] { animation: a-fade-x .6s ease both; --ax: 20%; }
.anim-in[data-anim="fade"] { animation: a-fade 1s linear both; }
@keyframes a-slide-up { from { transform: translateY(20%); } to { transform: none; } }
@keyframes a-fade-x { from { opacity: 0; transform: translateX(var(--ax)); } to { opacity: 1; transform: none; } }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }

/* Fotos que rotan con fundido, como la galería de fondo de Duda: 5 s por foto, 0,8 s de fundido (home y Dental Technology). */
.dc.media.slides > img { transition: opacity .8s ease-in-out; }
.dc.media.slides > img:not(:first-child) { opacity: 0; }
/* Tabla como en Duda (CDCP): encabezado marrón con letra blanca, filas intercaladas en crema, bordes negros. */
.table-wrap td, .table-wrap th { border-color: #000; padding: 15px 10px; vertical-align: middle; }
.table-wrap th { background: var(--brown); color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.5; padding: 19px 10px; }
.table-wrap tr:nth-child(odd):not(:first-child) { background: var(--cream); }
/* Enlaces internos en títulos de tarjetas (class="il"): mismo color que el título, dorado al pasar el mouse. */
:is(h3, h4, h5, h6) > a.il { color: inherit; text-decoration: none; }
:is(h3, h4, h5, h6) > a.il:hover { color: var(--gold); }
