/* =========================================================
   Clínica Odontológica Mayer — hoja de estilos
   Medidas, colores y tipografías tomados del sitio original.
   ========================================================= */

:root {
  --naranja: #FF6600;
  --texto: #666666;
  --titulo: #917C6F;
  --menu-color: #666666;
  --menu-hover: #FF6600;
  --borde: #BBBBBB;
  --negro-footer: rgba(0,0,0,0.79);
  --ancho: 1080px;
  --radio: 100px;
  --fuente: "Open Sans", Arial, sans-serif;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/opensans-300.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/opensans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/opensans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/opensans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/opensans-700.woff2") format("woff2");
}

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

body {
  font-family: var(--fuente);
  font-size: 14px;
  line-height: 23.8px;
  color: var(--texto);
  background: #fff;
}

h2 { font-size: 32px; font-weight: 600; color: var(--titulo); }
h3 { font-weight: 600; color: var(--titulo); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: var(--fuente); }

/* Sólo para lectores de pantalla */
.oculto-visual {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor: 80% del ancho, tope 1080px (igual que el original) */
.contenedor { width: 80%; max-width: var(--ancho); margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 20px;
  line-height: 34px;
  font-weight: 500;
  color: #fff;
  background: var(--naranja);
  border-radius: var(--radio);
  border: none;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: #fff; }
.btn-negro { background: #000; font-size: 27px; padding: 8px 27px; }

/* ---------- Header ---------- */
.header { background: #fff; padding: 7px 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 9px;
}
.header-logo img { width: 246px; height: auto; }
.header-nav { display: flex; gap: 26px; }
.header-nav a {
  font-size: 19px;
  line-height: 14px;
  font-weight: 500;
  color: #917C6F;
  padding-bottom: 8px;
}
.header-nav a:hover { color: #FF6600; }
.header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  color: #666666;
}
.header-phone svg { width: 32px; height: 32px; color: var(--naranja); flex: none; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 40px; height: 40px; fill: var(--naranja); }

/* Menú móvil */
.mobile-menu { display: none; border-top: 1px solid #eee; }
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 19px;
  font-weight: 500;
  color: #917C6F;
  border-bottom: 1px solid #eee;
}

/* ---------- Carrusel (portada) ---------- */
.hero { background: rgba(0,0,0,0.06); padding: 26px 0 10px; margin: 0; position: relative; }
.slides { position: relative; width: 1080px; max-width: 100%; margin: 0 auto; overflow: hidden; }
.slides-track { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; min-width: 100%; }
.slide img { width: 100%; height: 660px; object-fit: cover; display: block; }

/* Controles del carrusel */
.hero-controls {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 1080px;
  max-width: 100%;
  height: 660px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}
.hero-controls .carousel-btn {
  pointer-events: auto;
}
.hero-dots {
  width: 1080px;
  max-width: 100%;
  height: 67px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  width: 30px;
  height: 30px;
  border: none;
  background: url("../img/flechas-slider.png") no-repeat;
  background-size: auto 27px;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.prev { left: 3px; background-position: 0% 50%; }
.carousel-btn.next { right: 17px; background-position: 100% 50%; }
.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}
.dot.active { background: rgba(0,0,0,.9); }

/* ---------- Banda naranja ---------- */
.banda { background: var(--naranja); color: #fff; padding: 21px 0 42px; }
.banda-grid {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 59px;
  justify-content: center;
  padding: 27px 0;
}
.banda-col img { width: 157px; height: 157px; object-fit: contain; margin: 0 auto 11px; }
.banda-col h2 {
  font-size: 27px;
  line-height: 27px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 13px;
}
.banda-col p {
  font-size: 16px;
  line-height: 23.8px;
  font-weight: 500;
  color: #fff;
  text-align: left;
}

/* ---------- Servicios ---------- */
.seccion-servicios { background: #fff; padding: 54px 0 70px; }
.seccion-servicios h2 {
  font-size: 45px;
  line-height: 58px;
  font-weight: 600;
  color: var(--naranja);
  text-align: center;
  margin: 27px 0 44px;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 59px;
  row-gap: 54px;
}
.servicio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 13px;
}
.servicio-card h3 {
  font-size: 27px;
  line-height: 27px;
  color: var(--titulo);
  text-align: center;
  margin-bottom: 20px;
}
.servicio-card p { font-size: 16px; line-height: 23.8px; color: #000; font-weight: 500; text-align: left; }

/* ---------- CTA ---------- */
.cta {
  background-image: linear-gradient(rgba(255,102,0,.85) 0%, rgba(255,102,0,.29) 99%), url("../img/sonrisa.webp");
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #fff;
  padding: 40px 0 52px;
  text-align: center;
}
.cta h2 {
  font-size: 45px;
  line-height: 45px;
  color: #fff;
  font-weight: 600;
  padding: 27px 0 94px;
  margin: 0;
}
.cta { position: relative; }
.cta-divisor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: url("../img/divisor-curvo.svg") no-repeat 0 0;
  background-size: 100% 100px;
  pointer-events: none;
}

/* ---------- Reserva de hora ---------- */
.reserva {
  background: #fff;
  padding: 6px 0 127px;
}
.reserva-grid {
  display: grid;
  grid-template-columns: 510px 510px;
  gap: 59px;
  align-items: start;
  padding: 27px 0;
}
.reserva-card {
  background: #ededed;
  border-radius: 21px;
  padding: 9px 20px 62px;
}
.reserva-card .intro { font-size: 18px; line-height: 28px; color: #000; margin: 13px 0 27px; }
.reserva-card label { display: block; font-size: 14px; line-height: 19px; color: #666; padding-bottom: 5px; }
.reserva-card .form-group { margin-bottom: 0; }
.reserva-card input[type="text"],
.reserva-card input[type="email"],
.reserva-card input[type="tel"],
.reserva-card input[type="date"],
.reserva-card select,
.reserva-card textarea {
  background: #f5f5f5;
  height: 40px;
  margin-top: 7px;
  padding: 10px 15px;
  font-size: 13.33px;
  color: #4e4e4e;
  border: 1px solid var(--borde);
  border-radius: 0;
}
.reserva-card select { height: 42px; }
.reserva-card input[type="date"] { height: 44px; }
.reserva-card textarea { min-height: 150px; }
.reserva-card .form-check {
  display: inline-flex;
  width: 48%;
  vertical-align: top;
  margin-bottom: 6px;
  color: #333;
  font-size: 11px;
  line-height: 14px;
}
.reserva-card .form-check label { font-size: 11px; line-height: 14px; padding-bottom: 0; }
.reserva-card .form-check a { color: var(--naranja); }
.reserva-card .enviar { text-align: right; margin-top: 16px; }
.form-group { margin-bottom: 0; }

/* Campos de formulario */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 10px 15px;
  font-size: 13.33px;
  color: #4e4e4e;
  background: #f5f5f5;
  border: 1px solid var(--borde);
  border-radius: 0;
}
textarea { height: auto; min-height: 80px; resize: vertical; }
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-size: 13px; color: #333; }
.form-check input { margin-top: 3px; }
.form-check a { color: var(--naranja); text-decoration: underline; }
.formulario-reserva { max-width: 100%; }

/* Columna de datos, mapa y medios de pago */
.reserva-datos { font-size: 16px; line-height: 23.8px; color: #000; }
.dato {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 5px;
  min-height: 39px;
  font-size: 16px;
  line-height: 23.8px;
  color: #000;
}
.dato-icono { flex-shrink: 0; fill: var(--naranja); }
.dato a { color: #000; }
.reserva-datos .mapa-container { margin-top: 47px; }
.mapa-container iframe { width: 100%; height: 450px; border: 0; display: block; }
.medios-pago { margin-top: 36px; }
.medios-pago img { width: 300px; height: 85px; margin: 0 auto; }
.aviso-legal { font-size: 12px; line-height: 23.8px; color: #000; margin-top: 16px; text-align: center; }

/* ---------- Aviso de estado de los formularios (reserva y contacto) ----------
   Lo inserta js/main.js para mostrar el resultado del envío sin salir de la
   página. Si el sitio se ve sin JavaScript, el POST normal sigue funcionando. */
.form-estado {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: #5b6470;
}
.form-estado-ok { color: #1e7e34; font-weight: 600; }
.form-estado-error { color: #c0392b; font-weight: 600; }
.enviar-btn { width: 100%; justify-content: center; height: 55px; margin-top: 12px; }

/* ---------- Contacto ---------- */
.page-hero {
  background-image: linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.45) 98%), url("../img/Sin-titulo-4-scaled-1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 65px 0 79px;
}
.page-hero h1 { font-size: 43px; line-height: 1.1; font-weight: 600; color: #fff; }

.contacto {
  background-image: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.17) 100%), url("../img/woman-patient-at-dentist.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 37px 0 108px;
}
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.contacto-card { background: var(--naranja); border-radius: 21px; padding: 9px 20px 50px; }
.contacto-card .intro { font-size: 18px; line-height: 1.8em; color: #fff; margin: 13px 0 10px; text-align: center; }
.contacto-card input[type="text"],
.contacto-card input[type="email"],
.contacto-card input[type="tel"],
.contacto-card textarea {
  background: #fff;
  height: 51px;
  padding: 16px;
  font-size: 14px;
  color: #4e4e4e;
  border: none;
}
.contacto-card textarea { min-height: 150px; }
.contacto-card .form-check { color: #fff; }
.contacto-card .form-check a { color: #fff; }
.contacto-card .enviar { text-align: right; margin-top: 16px; }
.contacto-datos { font-size: 16px; line-height: 23.8px; }
.contacto-datos p { margin-bottom: 8px; }
.contacto-datos strong { color: var(--titulo); }
.contacto-datos a { color: var(--naranja); }

/* ---------- Privacidad ---------- */
.privacidad-section { padding: 60px 0 80px; }
.privacidad-section h1 { font-size: 43px; line-height: 1.1; color: var(--titulo); margin-bottom: 24px; }
.privacidad-section h2 { font-size: 24px; margin: 32px 0 16px; }
.privacidad-section p, .privacidad-section li { line-height: 1.8; margin-bottom: 8px; }
.privacidad-section ul { padding-left: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--negro-footer); color: #fff; padding: 25px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 59px;
  justify-content: center;
  align-items: start;
  padding: 10px 0 27px;
}
.footer-logo img { width: 320px; height: auto; }
.footer-links { text-align: center; }
.footer-links a { display: block; font-size: 16px; line-height: 23.8px; color: #fff; margin-bottom: 16px; }
.footer-links a:hover { color: var(--naranja); }
.footer-address { font-size: 16px; line-height: 23.8px; color: #fff; text-align: left; }
.footer-address .dato { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 5px; min-height: 39px; color: #fff; }
.footer-address .dato-icono { fill: var(--naranja); }
.footer-address a { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
}

/* ---------- Botón flotante WhatsApp ----------
   Componente copiado tal cual de cermax-web (css/style.css): mismo código en los
   dos sitios para que el botón sea idéntico. Fuente del glifo: la misma que usa
   el plugin QLW en el original (woff embebido en base64, glifo \e900). */
@font-face{font-family:"qlwapp-whatsapp";src:url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAYEAAsAAAAABbgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFKmNtYXAAAAFoAAAAVAAAAFQXVtKHZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAfwAAAH8pb7IGGhlYWQAAAPAAAAANgAAADYUXm9HaGhlYQAAA/gAAAAkAAAAJAfAA8ZobXR4AAAEHAAAABQAAAAUCgAAA2xvY2EAAAQwAAAADAAAAAwAKAESbWF4cAAABDwAAAAgAAAAIAAJAJluYW1lAAAEXAAAAYYAAAGGmUoJ+3Bvc3QAAAXkAAAAIAAAACAAAwAAAAMDAAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QADwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkA//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAA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AQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) format("woff");font-weight:400;font-style:normal}
.qlwapp-whatsapp-icon { font-family: "qlwapp-whatsapp" !important; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.qlwapp-whatsapp-icon::before { content: "\e900"; }
#qlwapp { position: fixed; right: 0; bottom: 0; width: 430px; z-index: 9999999; pointer-events: none; font-size: 18px; }
#qlwapp .qlwapp-container { display: flex; flex-direction: column; }
.qlwapp-toggle {
  display: inline-flex; align-items: center; justify-content: center; margin: 24px 20px 24px auto;
  height: 40px; padding: 12px 24px; border-radius: 50px; white-space: nowrap;
  background: #25D366; color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 500; line-height: 23.8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06), 0 2px 32px rgba(0,0,0,.16);
  pointer-events: auto;
  transition: filter .2s ease;
}
.qlwapp-toggle:hover { filter: brightness(1.05); }
.qlwapp-icon { display: block; width: 18px; height: 18px; line-height: 18px; font-size: 18px; margin: 0 12px 0 0; pointer-events: none; }
.qlwapp-text { display: block; padding: 0; font-size: 18px; line-height: 23.8px; font-weight: 500; white-space: nowrap; }
.qlwapp-close { display: none; }
.qlwapp-toggle:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }
  .banda-grid { grid-template-columns: 1fr; gap: 40px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .reserva-grid, .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-links, .footer-address { text-align: center; }
  .footer-logo img { margin: 0 auto; }
}

@media (max-width: 767px) {
  .hero { padding: 16px 0 10px; }
  .carousel-btn { width: 32px; height: 32px; }
  .titulo-servicios { font-size: 32px; line-height: 36px; }
  .cta h2 { font-size: 32px; line-height: 36px; }
  .page-hero h1, .privacidad-section h1 { font-size: 32px; }
  .banda-item img { width: 110px; height: 110px; }
  .form-row { flex-direction: column; gap: 0; }
  .contacto-card .enviar { text-align: center; }
  .reserva, .contacto { padding-bottom: 60px; }
  .footer-logo img { width: 220px; }
}

.hero-title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
