/* ==========================================================================
   Dr. Alejandro Lozano – Cirugía Plástica
   Hoja de estilos principal (réplica HTML del sitio WordPress / tema Zephyr)
   ========================================================================== */

:root {
  --primary: #277cea;
  --primary-faded: rgba(39, 124, 234, .15);
  --heading: #3b3d40;
  --text: #3b3d40;
  --faded: #9da6a8;
  --bg: #fff;
  --bg-alt: #eee;
  --border: #eee;
  --wa: #25d366;
  --shadow-card: 0 5px 30px 0 rgba(28, 26, 51, .10);
  --font-body: "Open Sans", Arial, sans-serif;
  --font-head: "Lexend", sans-serif;
  --container: 1140px;          /* ancho útil del contenido (igual al original) */
  --side-pad: 2.5rem;           /* margen lateral de secciones */
  --section-pad: 4rem;          /* separación vertical de secciones (height_medium) */
  --header-h: 100px;
  --header-h-sticky: 75px;
  --logo-h: 75px;
  --logo-h-sticky: 75px;
  --gap: 3rem;
}

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

html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 30px;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-h);
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--heading); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1.2em; padding-left: 1.4em; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 1rem; line-height: 1.3; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--side-pad)); margin: 0 auto; padding: 0 var(--side-pad); }
.container.narrow { max-width: calc(800px + 2 * var(--side-pad)); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
  transition: height .3s;
}
.header-inner {
  max-width: calc(var(--container) + 2 * var(--side-pad)); margin: 0 auto; padding: 0 var(--side-pad);
  height: var(--header-h); display: flex; align-items: center; gap: 0;
  transition: height .3s;
}
.site-header.is-sticky .header-inner { height: var(--header-h-sticky); }
.logo { margin-right: auto; display: flex; align-items: center; height: 100%; }
.logo img { height: var(--logo-h); width: auto; transition: height .3s; }
.site-header.is-sticky .logo img { height: var(--logo-h-sticky); }

.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav .menu > li { position: relative; }
.nav-link {
  display: flex; align-items: center; padding: 0 20px; height: var(--header-h);
  color: #000; font-size: 1rem; transition: color .2s, height .3s;
}
.site-header.is-sticky .nav-link { height: var(--header-h-sticky); }
.nav-link:hover, .main-nav li.current > .nav-link { color: #737475; }
.sub-toggle { display: none; }
.sub-menu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 100%; left: 0; min-width: 279px;
  background: #fff; box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .6rem 20px; line-height: 1.5; color: #000; font-size: 1rem; }
.sub-menu a:hover { color: #737475; }

.header-social {
  color: #000; width: 2.4rem; height: 2.4rem; margin-left: 1.4rem; border-radius: .3rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.32rem;
}
.header-social:hover { color: #e1306c; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: #000; content: ""; transition: transform .3s, top .3s, background .3s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { left: 0; top: -8px; }
.menu-toggle span::after { left: 0; top: 8px; }
.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); }

/* ---------------------------------------------------------------- Secciones */
.section { padding: var(--section-pad) 0; position: relative; }
.section-small { padding: calc(var(--section-pad) / 2) 0; }
.section-auto { padding: 0 0 var(--section-pad); }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-body); font-weight: 400; text-align: center;
  font-size: 1.8rem; line-height: 30px; margin-bottom: 2%;
}
.section-lead {
  color: var(--faded); text-align: center; font-size: 1.3rem; line-height: 1.7;
  max-width: 700px; margin: 0 auto 3rem;
}
.bg-image { background-size: cover; background-position: center; }
.bg-overlay { position: absolute; inset: 0; }
.bg-image > .container { position: relative; }

/* ---------------------------------------------------------------- Hero (home) */
.hero {
  position: relative; overflow: hidden; background: #fff;
  /* Igual que el Slider Revolution original: 500px de alto, proporcional (1240×500) en pantallas más angostas */
  height: min(500px, calc(100vw * 500 / 1240));
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-grid { position: relative; height: 100%; max-width: 1240px; margin: 0 auto; }
.hero-mark {
  position: absolute; left: 6.5%; top: .6%; width: 40.4%; max-width: 501px;
  opacity: 0; transform: scale(.95); transition: opacity 1.2s .2s, transform 1.2s .2s;
}
.hero-title {
  position: absolute; left: 15.4%; top: 27.8%; width: 51.2%; margin: 0;
  font-family: "Roboto", sans-serif; font-weight: 700; color: rgba(0, 0, 0, .87);
  font-size: min(55px, calc(100vw * 55 / 1240)); line-height: 0.96;
  opacity: 0; transform: translateY(20px); transition: opacity 1s .5s, transform 1s .5s;
}
.hero-slide.is-active .hero-mark { opacity: 1; transform: none; }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; }
.hero-dots { position: absolute; bottom: .6rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(0, 0, 0, .2); transition: background .3s, transform .3s;
}
.dot.is-active { background: var(--primary); transform: scale(1.2); }

/* ---------------------------------------------------------------- Tarjetas de procedimientos */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.proc-card {
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-card);
  color: var(--heading); transition: transform .3s, box-shadow .3s;
}
.proc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(28, 26, 51, .16); color: var(--heading); }
.proc-img { height: 200px; overflow: hidden; }
.proc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proc-card:hover .proc-img img { transform: scale(1.05); }
.proc-title { margin: 0; font-family: var(--font-body); font-weight: 400; color: inherit; text-align: center; font-size: 1.8rem; line-height: 30px; padding: 1.5rem .5rem 2.15rem; }

/* ---------------------------------------------------------------- Action box */
.actionbox {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2.5rem 3rem; border-radius: .3rem; color: #fff;
  background-color: var(--heading); background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.actionbox::before { content: ""; position: absolute; inset: 0; background: rgba(20, 45, 80, .35); }
.actionbox > * { position: relative; }
.actionbox h2 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1.2; margin: 0 0 .7rem; }
.actionbox p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: 1rem; line-height: 1.2; padding: .8em 1.8em; border-radius: .3em;
  border: 0; transition: background .3s, color .3s, box-shadow .3s;
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #fff; box-shadow: inset 0 0 0 2px #fff; color: var(--wa); }

/* ---------------------------------------------------------------- Filas / columnas */
.row { display: grid; gap: var(--gap); align-items: start; }
.row + .row { margin-top: 2rem; }
.row.cols-1 { grid-template-columns: 1fr; }
.row.cols-2 { grid-template-columns: 1fr 1fr; }
.row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.row.cols-1-2 { grid-template-columns: 1fr 2fr; }
.row.cols-2-1 { grid-template-columns: 2fr 1fr; }
.row.valign-center { align-items: center; }
.row.mt-10 { margin-top: 10%; }
.row.my-5 { margin-top: 5%; margin-bottom: 5%; }
.col { min-width: 0; }
.col > * + * { margin-top: 1.5rem; }
.col-pad { padding-left: 20%; padding-right: 20%; }

.text.justify { text-align: justify; }
.caption { text-align: center; font-size: 1.2rem; margin-top: .8rem !important; }
.img-block img { width: 100%; }

/* Doctor (home) */
.doctor-name { font-family: var(--font-body); font-size: 1.8rem; line-height: 30px; font-weight: 700; margin-bottom: 4%; }
.doctor .text ul, .acc-body ul { padding-left: 1.2em; }
.doctor .text li, .acc-body li { margin-bottom: .5rem; }

/* ---------------------------------------------------------------- Encabezado de página */
.page-hero {
  position: relative; background-size: cover; background-position: center;
  /* 450px en escritorio y 243px en móvil contando el header, como en el original */
  min-height: clamp(183px, calc(120px + 16.85vw), 350px); padding: var(--section-pad) 0; display: flex; align-items: center;
  animation: fadeIn 1s ease both;
}
.page-hero .hero-overlay { position: absolute; inset: 0; }
.page-hero .container { position: relative; }
.page-hero-title {
  font-family: var(--font-head); font-weight: 700; color: var(--heading);
  font-size: calc(32px + 2vw); line-height: 1.2; letter-spacing: -.02em; margin: 0;
}

/* ---------------------------------------------------------------- Acordeón */
.accordion { border-top: 1px solid var(--border); }
.acc-title { margin: 0; font: inherit; line-height: inherit; color: inherit; }  /* h2 semántico sin cambiar el diseño */
.acc-item { border-bottom: 1px solid var(--border); }
.acc-header {
  width: 100%; display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.5rem; background: none; border: 0; text-align: left;
  color: var(--heading); font-size: 1rem; line-height: 1.5; transition: color .2s, background .2s;
}
.acc-header:hover { background: #f7f7f7; }
.acc-header span { flex: 1; }
.acc-icon { font-size: .8rem; transition: transform .3s; }
.acc-item.is-open > .acc-header { color: var(--primary); }
.acc-item.is-open > .acc-header .acc-icon { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-item.is-open > .acc-panel { grid-template-rows: 1fr; }
.acc-panel > .acc-body { overflow: hidden; min-height: 0; }
.acc-body > :first-child { margin-top: 1.5rem; }
.acc-body > :last-child { margin-bottom: 2.5rem; }
.acc-body { padding: 0 1.5rem; }
.acc-body.bold strong { font-weight: 700; }

/* Nosotros: acordeón sobre fondo claro */
.bg-image .accordion { background: transparent; }
.bg-image .acc-header:hover { background: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- Carrusel */
.carousel { position: relative; }
.carousel-track { display: grid; }
.carousel .slide {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.carousel .slide.is-active { opacity: 1; visibility: visible; }
.carousel .slide img { max-height: 520px; width: auto; max-width: 100%; object-fit: contain; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; background: none; color: #fff;
  font-size: 1.5rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); opacity: .85;
}
.carousel-nav:hover { opacity: 1; }
.carousel-nav.prev { left: .25rem; }
.carousel-nav.next { right: .25rem; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; }

/* ---------------------------------------------------------------- Antes / después
   Réplica visual del plugin "twentytwenty" usado en el sitio original */
.ba {
  position: relative; overflow: hidden; --pos: 50%;
  cursor: ew-resize; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;                /* permite hacer scroll vertical en móvil y arrastrar en horizontal */
  -webkit-tap-highlight-color: transparent;
}
.ba img {
  display: block; width: 100%; pointer-events: none;
  -webkit-user-drag: none; user-select: none;
}
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-after img { height: 100%; object-fit: cover; }
.ba::after {                           /* velo oscuro al pasar el mouse */
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0);
  transition: background .5s; pointer-events: none;
}
.ba-label {
  position: absolute; top: 50%; z-index: 2; margin-top: -19px;
  height: 38px; line-height: 38px; padding: 0 20px; border-radius: 2px;
  background: rgba(255, 255, 255, .2); color: #fff;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.ba-label-l { left: 10px; }
.ba-label-r { right: 10px; }
@media (hover: hover) {
  .ba:hover::after { background: rgba(0, 0, 0, .5); }
  .ba:hover .ba-label { opacity: 1; }
}
.ba.is-dragging::after { background: rgba(0, 0, 0, 0); }
.ba.is-dragging .ba-label { opacity: 0; }
.ba:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 38px; margin-left: -19px; pointer-events: none;
}
.ba-handle::before, .ba-handle::after {  /* línea blanca arriba y abajo del círculo */
  content: ""; position: absolute; left: 50%; width: 3px; margin-left: -1.5px;
  height: calc(50% - 22px); background: #fff; box-shadow: 0 0 12px rgba(51, 51, 51, .5);
}
.ba-handle::before { top: 0; }
.ba-handle::after { bottom: 0; }
.ba-handle span {
  position: absolute; top: 50%; left: 0; width: 38px; height: 38px; margin-top: -22px;
  border: 3px solid #fff; border-radius: 1000px; box-shadow: 0 0 12px rgba(51, 51, 51, .5);
  box-sizing: content-box; margin-left: -3px;
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; margin-top: -6px; width: 0; height: 0;
  border: 6px inset transparent;
}
.ba-handle span::before { left: 50%; margin-left: -17px; border-right: 6px solid #fff; }
.ba-handle span::after { right: 50%; margin-right: -17px; border-left: 6px solid #fff; }

/* ---------------------------------------------------------------- Galerías */
.gallery { display: grid; gap: 1.5rem; align-items: start; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); align-items: center; }
.gallery-item { display: block; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform .4s, opacity .3s; }
.gallery.square .gallery-item { aspect-ratio: 1; }
.gallery.square .gallery-item img { height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.04); opacity: .9; }

/* No invasivos: lista */
.checklist ul { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; }
.checklist li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: .1rem; color: var(--primary); font-size: .9rem;
}

/* ---------------------------------------------------------------- Contacto */
.video-box { position: relative; background: #000; aspect-ratio: 9 / 16; }  /* vertical, como el original */
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.contact-title { font-family: var(--font-body); font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 1.5rem; }
.contacts { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.contacts li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.c-icon {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-faded); color: var(--primary); font-size: 1rem;
}
.socials { display: flex; gap: .3rem; }
.socials a {
  position: relative; width: 3.8rem; height: 3.8rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px var(--border); font-size: 1.8rem; transition: background .3s, color .3s;
}
.socials a .fa-facebook { color: #1877f2; }
.socials a .fa-instagram { color: #000; }
.socials a:hover { background: #f4f4f4; }
.socials a::after {
  content: attr(data-tip); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, .8); color: #fff; font-size: .75rem; padding: .2rem .6rem; border-radius: 3px;
  opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap;
}
.socials a:hover::after { opacity: 1; }
.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------------------------------------------------------------- Footer */
.site-footer { padding: var(--section-pad) 0; background: #fff; }
.footer-brand { display: flex; align-items: center; gap: 1.5rem; margin-top: 31px; }
.footer-brand::before, .footer-brand::after { content: ""; flex: 1; height: 1px; background: var(--heading); }
.footer-brand span {
  font-family: var(--font-head); font-weight: 600; font-size: 36px; line-height: 1.2;
  letter-spacing: .3em; text-transform: uppercase; color: var(--heading); text-align: center;
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 3em; margin: 62px 0 31px; }
.footer-menu a { font-family: var(--font-head); font-weight: 500; color: var(--heading); display: inline-block; line-height: 23px; }
.footer-menu a:hover { color: var(--primary); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  box-shadow: 1px 6px 24px rgba(7, 94, 84, .24);
  animation: waIn .5s 3s both cubic-bezier(.18, .89, .32, 1.28);
  transition: transform .3s;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes waIn { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; width: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 1.8rem; padding: 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- Animaciones de entrada */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.js .reveal-l, .js .reveal-r { opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.js .reveal-l { transform: translateX(-40px); }
.js .reveal-r { transform: translateX(40px); }
.js .reveal-l.is-visible, .js .reveal-r.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal-l, .js .reveal-r { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1380px) {
  :root { --header-h-sticky: 60px; --logo-h-sticky: 65px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .col-pad { padding-left: 10%; padding-right: 10%; }
}

@media (max-width: 900px) {
  :root { --header-h: 80px; --header-h-sticky: 60px; }
  .menu-toggle { display: block; order: 2; margin-left: 1rem; }
  .header-social { order: 3; margin-left: .5rem; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease;
    border-top: 1px solid var(--border);
  }
  .site-header.is-sticky .main-nav { top: var(--header-h-sticky); }
  .menu-open .main-nav { transform: none; }
  .main-nav .menu { flex-direction: column; align-items: stretch; }
  .main-nav .menu > li { border-bottom: 1px solid var(--border); }
  .nav-link, .site-header.is-sticky .nav-link { height: auto; padding: 1rem 1.5rem; font-size: 1.1rem; }
  .has-sub { display: flex; flex-wrap: wrap; }
  .has-sub > .nav-link { flex: 1; }
  .sub-toggle { display: block; width: 56px; border: 0; background: none; border-left: 1px solid var(--border); }
  .sub-toggle i { transition: transform .3s; }
  .has-sub.sub-open .sub-toggle i { transform: rotate(180deg); }
  .sub-menu {
    position: static; width: 100%; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; background: #f7f7f7;
  }
  .has-sub.sub-open .sub-menu { display: block; }
  .sub-menu a { padding: .85rem 2.5rem; }

  .row.cols-2, .row.cols-3, .row.cols-4, .row.cols-1-2, .row.cols-2-1 { grid-template-columns: 1fr; }
  .col-pad { padding: 0; }
  .actionbox { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.5rem; }
  .actionbox .btn { align-self: center; }
}

@media (max-width: 600px) {
  :root { --side-pad: 1.5rem; --section-pad: 1.5rem; --gap: 1.5rem; --header-h: 60px; --logo-h: 55px; --logo-h-sticky: 55px; }
  .header-inner { padding: 0 1rem; }
  .section-lead { margin-bottom: 1.5rem; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-title { padding: 1.5rem .5rem 1.8rem; }
  .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: .8rem; }
  .acc-header, .acc-body { padding-left: .5rem; padding-right: .5rem; }
  .text.justify { text-align: left; }
  .footer-brand::before, .footer-brand::after { display: none; }
  .footer-menu { flex-direction: column; align-items: center; gap: 1.6em; margin-top: 45px; }
  .map iframe { height: 320px; }
}

/* Contacto: título del encabezado más discreto, como en el original */
.hero-small-title .page-hero-title { font-family: var(--font-body); font-size: 2.1rem; }

/* Video de Contáctanos: sin barra de controles (ni siquiera la que Safari/iOS muestra al tocarlo) */
.video-box video { pointer-events: none; }
.video-box video::-webkit-media-controls,
.video-box video::-webkit-media-controls-enclosure,
.video-box video::-webkit-media-controls-panel,
.video-box video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
