/* =====================================================================
   INSTITUTO DE NEUROCIENCIAS (INEDI) - Réplica estática
   Hoja de estilos única. Valores tomados del tema original
   (style.css, style_dynamic.css, js_composer y plugins).
   ===================================================================== */

:root {
  --accent: #00bdca;
  --accent-hover: #00a4b0;
  --accent-2: #35bac9;
  --heading: #333333;
  --text: #717375;
  --nav: #3b3f42;
  --topbar: #d7dfe2;
  --border: #d8d8d8;
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a, a:visited { color: var(--accent); text-decoration: none; transition: color .2s ease-in-out; }
a:hover, a:focus { color: var(--accent-hover); }
p { margin: 0 0 20px; }
strong { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--heading);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.6em;
  margin: 0 0 15px;
}
h1 { font-size: 46px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; font-weight: 600; }
h6 { font-size: 13px; font-weight: 600; }
ul, ol { margin: 0 0 20px 20px; padding: 0; }
ul li, ol li { line-height: 24px; position: relative; }
ul.unstyled { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

#main { background: #fff; position: relative; overflow-x: clip; }

/* ------------------------------------------------------------ Grilla */
.container { max-width: 1196px; width: 100%; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; min-width: 0; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-6 { width: 50%; }
.col-8 { width: 66.6667%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }
.my-table { display: table; width: 100%; }
.my-td { display: table-cell; vertical-align: middle; }
.block-right { text-align: right; }
.empty-space { display: block; }
.text-column { margin-bottom: 35px; }
.text-column > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Barra superior */
#top-bar {
  background: var(--topbar);
  color: var(--nav);
  font-size: 12px;
  border-bottom: 1px solid #ddd;
}
#top-bar .call-us { line-height: 1; padding: 5px 0; display: inline-block; margin: 0 25px 0 -15px; }
#top-bar .call-us ul { display: inline-block; }
.call-us ul li { display: inline-block; margin-left: 15px; line-height: 24px; }
.call-us ul li i { padding-right: 8px; line-height: 1; }
.social-icons { display: inline-block; vertical-align: middle; padding: 10px 0; }
.social-icons ul { list-style: none; margin: 0; overflow: hidden; }
.social-icons ul li { float: left; margin: 0; padding: 0; }
.social-icons ul li a {
  display: block; width: 24px; height: 24px; line-height: 24px; text-align: center;
  font-size: 18px; border-radius: 2px; margin: 2px; color: var(--nav);
  transition: all .2s ease 0s;
}
.social-icons ul li a:hover { background-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------ Cabecera */
#header {
  background-color: #fff;
  border-bottom: 1px solid rgba(216, 216, 216, .3);
  position: relative;
  z-index: 99;
}
#header .my-table { height: 100px; }
#header .logo { padding: 15px 0; }
#header .logo img { max-width: 140px; }

.navigation { float: right; }
.navigation ul.menu { list-style: none; margin: 0; padding: 0; display: flex; }
.navigation ul.menu > li { position: relative; margin: 0 0 0 25px; display: flex; align-items: center; }
#header .navigation ul.menu > li { height: 100px; }
#fixed_header .navigation ul.menu > li { height: 50px; }
.navigation ul.menu > li > a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nav);
  line-height: 1;
}
.navigation ul.menu > li:hover > a,
.navigation ul.menu > li > a:hover { color: var(--accent-hover); }
.navigation ul.menu > li.current-menu-item > a,
.navigation ul.menu > li.current-menu-ancestor > a { color: var(--accent); }

/* Submenú */
.navigation .sub-menu {
  position: absolute; top: 100%; left: 0; width: 180px; z-index: 2000;
  list-style: none; margin: 0; padding: 0;
  background: #f4f4f4;
  border-top: 3px solid var(--accent);
  visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.navigation .sub-menu::before {
  content: ""; position: absolute; top: -9px; left: 15px;
  border: 0 solid transparent; border-width: 0 6px 6px; border-bottom-color: var(--accent);
}
.navigation ul.menu > li:hover > .sub-menu,
.navigation ul.menu > li:focus-within > .sub-menu {
  visibility: visible; opacity: 1; transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.navigation .sub-menu li { display: block; margin: 0; border-bottom: 1px solid #dde2e5; position: relative; }
.navigation .sub-menu li:last-child { border-bottom: 0; }
.navigation .sub-menu li a {
  display: block; padding: 0 15px; color: var(--nav); font-size: 13px;
  font-weight: 400; line-height: 30px; text-transform: none;
}
.navigation .sub-menu li a:hover,
.navigation .sub-menu li.current-menu-item a { color: #fff !important; background-color: var(--accent); }

.select-menu {
  display: none; width: 100%; padding: 10px 15px; margin: 0 0 15px;
  border: 1px solid; color: var(--nav); background: #fff;
  font-family: inherit; font-size: 13px;
}

/* Cabecera fija */
#fixed_header {
  position: fixed; top: -100%; left: 0; right: 0; width: 100%; z-index: 999;
  background-color: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(216, 216, 216, .3);
  transition: all .5s ease;
}
#fixed_header.header-scrolled {
  top: 0; padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .26);
}
#fixed_header .my-table { height: 50px; }
#fixed_header .logo img { max-height: 50px; max-width: 140px; }

/* ------------------------------------------------------------ Barra de título */
#title {
  background-color: var(--accent-2);
  background-image: url("/img/breadcrumb_bg2.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}
#title .inner { padding: 25px 0; }
#title .title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#title .title-col { flex: 0 0 58.333%; }
#title .crumb-col { flex: 0 0 41.666%; }
#title h1 { font-size: 18px; line-height: 1.6em; color: #fff; margin: 0; text-transform: uppercase; }
#title #breadcrumbs { font-size: 13px; line-height: 28px; text-align: right; color: #ededed; white-space: pre-wrap; }
#title #breadcrumbs a { color: #ededed; }
#title #breadcrumbs a:hover { color: #d3d3d3; }

/* ------------------------------------------------------------ Contenido */
#page-wrap { overflow: hidden; }
#page-wrap.page-home { padding: 0; }
.single-image { margin: 0 0 35px; }
.single-image img { display: block; }
.alignleft { float: left; margin: 5px 20px 10px 0; }
.custom-heading { font-size: 20px; color: #3ebbca; text-align: left; font-weight: 400; font-style: normal; }
.inner-row { margin-bottom: 0; }
.list-cols ul { margin-bottom: 0; }

/* Capitulares */
.dropcap {
  display: block; float: left;
  font-size: 46px; line-height: 40px;
  margin: 6px 10px 0 0;
  font-weight: 600;
  color: var(--heading);
  text-transform: uppercase;
}
.dropcap-circle {
  width: 36px; height: 36px; line-height: 36px; font-size: 16px; text-align: center;
  border-radius: 50%; background-color: var(--accent); color: #fff; margin: 0 12px 4px 0;
}

blockquote {
  margin: 0 0 20px; padding: 10px 0 10px 25px;
  border-left: 3px solid var(--accent);
  font-size: 15px; line-height: 26px; font-style: italic; color: #8a8c8e;
}
blockquote p:last-child { margin-bottom: 0; }

.vc-separator { border-top: 1px solid #ebebeb; margin: 0 0 35px; height: 0; }

/* ------------------------------------------------------------ Slider principal */
.rev-slider {
  position: relative; height: 350px; overflow: hidden; background: #fff;
  --rs: 1;
}
.rs-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.rs-slide.active { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; z-index: 2; }
/* colores de respaldo mientras falten las imágenes del slider */
.rs-slide { background-color: #eef3f5; }
.rs-slide-1 { background-color: #3ebbca; }
.rs-square {
  width: 303px; height: 316px;
  background: url("/wp-content/uploads/2017/03/slide_square.png") center / contain no-repeat;
}
.rs-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .45) .7px, transparent 1px);
  background-size: 3px 3px;
}
.rs-grid {
  position: absolute; top: 50%; left: 50%;
  width: 960px; height: 350px; margin: -175px 0 0 -480px;
  transform: scale(var(--rs)); transform-origin: center center;
}
.rs-layer {
  position: absolute; white-space: nowrap; opacity: 0;
  transition: opacity .3s ease-in-out;
}
.rs-slide.active .rs-layer { opacity: 1; transition-delay: var(--d, 0ms); }
.rs-layer.rs-center {
  left: calc(50% + var(--hx, 0px)); top: calc(50% + var(--vy, 0px));
  transform: translate(-50%, -50%);
}
.rs-layer img { max-width: none; display: block; }
.cap-medium-light-white { font-size: 34px; line-height: 40px; font-weight: 300; color: #fff; }
.cap-thin-dark { font-size: 30px; line-height: 30px; font-weight: 300; color: rgba(0, 0, 0, .85); }
.cap-large-bold { font-size: 58px; line-height: 60px; font-weight: 800; color: #34495e; }
.rs-arrow {
  position: absolute; top: 50%; z-index: 5; width: 50px; height: 50px; margin-top: -25px;
  border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0;
  font-size: 46px; line-height: 50px; text-shadow: 0 0 6px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .3s ease;
}
.rs-prev { left: 20px; }
.rs-next { right: 20px; }
.rev-slider:hover .rs-arrow, .rs-arrow:focus-visible { opacity: 1; }
.rs-arrow:hover { opacity: .75 !important; }

/* ------------------------------------------------------------ Inicio */
.home-intro { text-align: center; color: var(--accent-2); margin-bottom: 0; }

.parallax-row {
  position: relative;
  padding: 40px 0;
  background-image: url("/wp-content/uploads/2017/03/paralax-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #e8eef0;
}
.box-icon-link, .box-icon-link:visited { color: #444; display: block; }
.box-shadow-raised {
  background: #fff;
  box-shadow: 0 15px 10px -10px rgba(0, 0, 0, .5), 0 1px 4px rgba(0, 0, 0, .3), 0 0 40px rgba(0, 0, 0, .1) inset;
  transition: transform .3s ease, box-shadow .3s ease;
}
.box-icon-inner { border: 1px solid #ddd; padding: 10px; text-align: center; }
.box-icon-img { display: inline-block; width: 100px; height: 100px; padding: 5px; margin: 0 auto 10px; }
.box-icon h5 { margin: 10px 0 0; font-size: 14px; line-height: 16px; color: #333; }
.box-icon-link:hover .box-icon-img { animation: ts-pulse 1s linear infinite; }
.box-icon-link:hover h5 { color: var(--accent-hover); }
@keyframes ts-pulse {
  25% { transform: scale(1.1); }
  75% { transform: scale(.9); }
}

.adv-textblock {
  position: relative; width: 92%; margin: 0 auto;
  color: #696969; font-size: 15px; line-height: 2;
  padding: 20px 15px 5px;
}
.adv-textblock i { color: #8e9596; }
.adv-textblock p { margin-bottom: 15px; }

/* Llamado a la acción (vc_cta3) */
.cta3 { padding: 28px; margin-bottom: 35px; }
.cta3 h2 { margin: 0 0 15px; font-size: 30px; }
.cta3 p { font-size: 13px; }
.cta3-turnos {
  background: #d7dfe2 url("/wp-content/uploads/2017/03/telefonista1.jpg") center / cover no-repeat;
  border: 1px solid #d7dfe2;
}
.btn3-turquoise { font-weight: 600; }
.cta3-peacoc { background-color: #4cadc9; color: #fff; }
.cta3-peacoc p { color: #fff; }
.cta3-actions { margin-top: 10px; }

.btn3, .btn3:visited {
  display: inline-block; position: relative; border: 0; cursor: pointer;
  font-family: inherit; line-height: 1.42857; text-align: center;
  transition: all .2s ease-in-out;
}
.btn3 i { position: absolute; left: 0; top: 0; height: 100%; text-align: center; display: flex; align-items: center; justify-content: center; }
.btn3-md { font-size: 14px; padding: 14px 20px 14px 48px; }
.btn3-md i { width: 48px; }
.btn3-lg { font-size: 18px; padding: 18px 25px 18px 62px; }
.btn3-lg i { width: 62px; }
.btn3-turquoise { background-color: #00c1cf; color: #fff !important; }
.btn3-turquoise:hover { background-color: #00a8b5; color: #f7f7f7 !important; }
.btn3-grey { background-color: #ebebeb; color: #666 !important; }
.btn3-grey:hover { background-color: #dcdcdc; color: #5e5e5e !important; }

/* ------------------------------------------------------------ Cajas de mensaje (vc_message_box) */
.message-box {
  position: relative; display: block; overflow: hidden;
  border: 1px solid transparent; margin: 0 0 21.74px;
  padding: 1em 1em 1em 4em; font-size: 1em;
}
.message-box > p:last-child { margin-bottom: 0; }
.message-box-icon { position: absolute; top: 0; bottom: 0; left: 0; width: 4em; }
.message-box-icon i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.7em; line-height: 1; }
.message-box-rounded { border-radius: 5px; }
.color-info.message-box-standard { color: #5e7f96; border-color: #cfebfe; background-color: #dff2fe; }
.color-info .message-box-icon { color: #56b0ee; }
.color-info.message-box-solid-icon { color: #5e7f96; border-color: #56b0ee; background: transparent; }
.color-info.message-box-solid-icon .message-box-icon { background-color: #56b0ee; color: #fff; }
.color-peacoc.message-box-standard { border-color: #c2e3ec; }
.color-peacoc .message-box-icon { color: #4cadc9; }
.color-success.message-box-standard { border-color: #cfefe0; }
.color-success .message-box-icon { color: #5cb85c; }
.step-box { background-color: #697989 !important; color: #ebebeb; }
.step-box h2 { color: #ebebeb; margin: 0; line-height: 1.2; }
.step-box p { color: #ebebeb; margin: 0; }
.step-text {
  padding: 20px; background-color: #fdece6;
}
.step-text ul { margin: 20px 0 0 56px; list-style: square; }

/* ------------------------------------------------------------ Desplegables (toggle) */
.toggle { margin-bottom: 10px; }
.toggle-title {
  display: block; position: relative; cursor: pointer; list-style: none;
  padding: 10px 40px 10px 15px; font-weight: 600; color: #333;
  border: 1px solid #e5e5e5; background: #fff; transition: all .2s ease;
}
.toggle-title::-webkit-details-marker { display: none; }
.toggle-title .icon { margin-right: 6px; color: #999; }
.toggle-title .status-icon {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  color: #bbb; transition: transform .25s ease;
}
.toggle[open] > .toggle-title .status-icon i::before { content: "\f068"; }
.toggle-inner { padding: 15px; border: 1px solid #e5e5e5; border-top: 0; background: #fff; }
.toggle-inner > :last-child { margin-bottom: 0; }
/* style1: icono acentuado al abrir */
.toggle.style1[open] > .toggle-title .status-icon,
.toggle.style1[open] > .toggle-title .icon { color: var(--accent); }
/* style4: fondo de color al abrir */
.toggle.style4 > .toggle-title { background: #f5f5f5; border-color: #f5f5f5; }
.toggle.style4 > .toggle-title:hover { background: #ececec; }
.toggle.style4[open] > .toggle-title { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.toggle.style4[open] > .toggle-title .icon,
.toggle.style4[open] > .toggle-title .status-icon { color: #fff; }

/* ------------------------------------------------------------ Formularios */
.wpcf7-form p { color: #a5a7a8; margin: 0 0 15px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%; max-width: 100%; margin: 5px 0 0;
  padding: 10px 12px; font-family: inherit; font-size: 13px; color: #777;
  border: 1px solid #e1e1e1; background: #fff; border-radius: 2px;
  transition: border-color .2s ease;
}
.wpcf7-form textarea { height: 150px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--accent); }
.wpcf7-form input[type="submit"] {
  font-family: inherit; font-size: 11px; text-transform: uppercase; font-weight: 400;
  color: #fff; background-color: var(--accent); border: 0; padding: 12px 25px; cursor: pointer;
  border-radius: 2px; transition: background-color .2s ease;
}
.wpcf7-form input[type="submit"]:hover { background-color: var(--accent-hover); }

/* ------------------------------------------------------------ Páginas de servicios */
.service-main { padding-top: 30px; }
.service-main .inner-row ul { margin-left: 18px; }
.icon-title {
  position: relative; display: flex; align-items: center; gap: 10px;
  background-color: var(--accent); color: #fff; font-size: 16px; font-weight: 300;
  line-height: 17.6px; padding: 12px 15px 12px 0; margin-bottom: 20px;
}
.icon-title i { background-color: var(--accent-2); width: 26px; height: 41.6px; margin: -12px 0; display: flex; align-items: center; justify-content: center; }
.flex-button {
  display: flex; align-items: stretch; width: 100%; margin-bottom: 10px;
  background-color: #d7dfe2; color: #000 !important; font-size: 14px;
  transition: background-color .3s ease;
}
.flex-button:hover { background-color: #eaeaea; }
.flex-button-icon { width: 46px; min-height: 46px; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(0, 0, 0, .08); font-size: 16px; transition: transform .3s ease; }
.flex-button:hover .flex-button-icon { transform: translateX(4px); }
.flex-button-title { display: flex; align-items: center; padding: 12px 15px; }

/* ------------------------------------------------------------ Cobertura médica */
.cobertura-box {
  background-color: #f7f7f7; border: 1px solid #bcbcbc; border-radius: 1px;
  padding: 0 15px 1px; margin-bottom: 35px;
}
.os-slider { position: relative; width: 200px; height: 100px; overflow: hidden; background: #fff; }
.os-slider ul { list-style: none; margin: 0; padding: 0; }
.os-slider li {
  position: absolute; inset: 0; opacity: 0; background: #fff;
  animation: os-fade 20s infinite;
  animation-delay: calc(var(--i) * 2s);
}
.os-slider li:first-child { opacity: 1; }
.os-name {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #00a4b0; font-size: 18px; font-weight: 700; text-transform: uppercase; text-align: center;
}
.os-logo { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
@keyframes os-fade {
  0% { opacity: 0; }
  1.5% { opacity: 1; }
  10% { opacity: 1; }
  11.5% { opacity: 0; }
  100% { opacity: 0; }
}
.os-slider-content { margin: 0 auto 35px; }

/* ------------------------------------------------------------ Atención al paciente */
.derechos-row { background-color: #e8eef7; padding: 0 30px; }
.derechos p { overflow: hidden; }

/* ------------------------------------------------------------ Contacto */
.shortcode-map { width: 100%; height: 400px; }
.shortcode-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-box {
  background-color: #eaeaea; border: 1px solid #dbdbdb;
  padding: 30px 20px 20px; margin-bottom: 35px;
}
/* ------------------------------------------------------------ Newsletter (formulario MyMail) */
.newsletter-box {
  background-color: #eaeaea; border: 1px solid #dbdbdb;
  padding: 25px 30px; margin-bottom: 35px;
}
.newsletter-form { margin-bottom: 20px; }
.nl-field { margin-bottom: 2px; }
.nl-field label { display: block; }
.nl-required { font-size: 120%; font-weight: 700; color: #bf4d4d; }
.nl-field input {
  width: 100%; padding: 10px 12px; margin: 5px 0 10px;
  font-family: inherit; font-size: 13px; color: #777;
  background-color: #f2f2f2; border: 1px solid transparent; border-radius: 2px;
  transition: border-color .2s ease;
}
.nl-field input:focus { outline: none; border-color: var(--accent); }
.nl-submit { margin-top: 6px; }
.nl-submit input {
  font-family: inherit; font-size: 11px; text-transform: uppercase;
  color: #fff; background-color: #00bdca; border: 0; padding: 12px 25px;
  border-radius: 2px; cursor: pointer; transition: background-color .2s ease;
}
.nl-submit input:hover { background-color: #00a4b0; }
.color-grey.message-box-solid { color: #858585; background-color: #ebebeb; }
.color-grey.message-box-solid .message-box-icon { color: #858585; }
.contact-info h3 { margin-bottom: 10px; }
.contact-info p { margin-bottom: 5px; }
.contact-info .text-column { margin-bottom: 25px; }
.ts-social-icons { list-style: none; margin: 0 0 0 -5px; padding: 0; display: flex; }
.ts-social-icons li { margin: 5px; }
.ts-social-icons a { display: block; width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 20px; color: #888; transition: color .2s ease, transform .2s ease; }
.ts-social-icons a:hover { color: var(--accent); transform: translateY(-2px); }

/* ------------------------------------------------------------ Pie */
#footer {
  background-color: #e3e3e3;
  background-image: url("/img/footer_bg_images.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  padding: 60px 0 30px;
}
#footer a { color: var(--accent); }
#footer a:hover { color: #0198ab; text-decoration: underline; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 30px; row-gap: 0; }
#footer .widget { color: #fff; margin-bottom: 20px; min-width: 0; }
#footer .widget h3 {
  font-size: 13px; line-height: 1.6em; font-weight: 600; text-transform: uppercase;
  color: #fff; margin: 0; padding: 0; min-height: 1.6em;
}
#footer .separator { margin: 24px 0 32px; }
#footer .separator .separator_line { width: 100%; height: 3px; background: var(--accent); }
#footer .footer-col .widget + .widget .separator { margin-top: 0; }
#footer .textwidget { font-size: 13px; }
.widget_contact address { font-style: normal; font-size: 13px; }
.widget_contact address span { display: block; overflow-wrap: anywhere; }
.widget_contact address span strong { display: inline-block; width: 52px; }
.sponsors { margin-right: -9px; overflow: hidden; }
.sponsors a, .sponsors .sponsor { float: left; margin: 0 9px 9px 0; }
.sponsors img { opacity: .9; transition: opacity .2s ease; }
.sponsors a:hover img { opacity: 1; }

#copyright { background: #f2f2f2; color: #f7f7f7; padding: 5px 0; }
#copyright .copyright-text { padding: 10px 0; }
#copyright .copyright-logo { margin-right: 10px; }
#copyright .menu { list-style: none; display: inline-block; margin: 0; padding: 0; vertical-align: middle; }
#copyright .menu li { display: inline-block; line-height: 1; }
#copyright .menu li a { font-size: 12px; color: #7a7a7a; padding: 10px 0; display: block; }
#copyright .menu li a:hover { color: #0198ab; text-decoration: underline; }

#back-to-top {
  position: fixed; z-index: 1000; bottom: 20px; right: 20px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
}
#back-to-top.visible { opacity: 1; visibility: visible; transition: opacity .4s ease; }
#back-to-top a {
  display: block; width: 46px; height: 46px; line-height: 46px; text-align: center;
  background: #333; color: #fff; border-radius: 5px; transition: .4s all ease;
}
#back-to-top a:hover { background-color: var(--accent); }

/* ------------------------------------------------------------ Animaciones de aparición (Visual Composer) */
html.js .wpb_animate_when_almost_visible { opacity: 0; }
html.js .wpb_animate_when_almost_visible.wpb_start_animation { opacity: 1; }
.wpb_appear.wpb_start_animation { animation: wpb_appear .7s 1 cubic-bezier(.175, .885, .32, 1.275); }
.wpb_right-to-left.wpb_start_animation { animation: wpb_rtl .7s 1 cubic-bezier(.175, .885, .32, 1.275); }
.wpb_bottom-to-top.wpb_start_animation { animation: wpb_btt .7s 1 cubic-bezier(.175, .885, .32, 1.275); }
.wpb_top-to-bottom.wpb_start_animation { animation: wpb_ttb .7s 1 cubic-bezier(.175, .885, .32, 1.275); }
@keyframes wpb_appear { 0% { transform: scale(.5); opacity: .1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wpb_rtl { 0% { transform: translate(10%, 0); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes wpb_btt { 0% { transform: translate(0, 10%); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes wpb_ttb { 0% { transform: translate(0, -10%); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .wpb_animate_when_almost_visible { opacity: 1; }
  .os-slider li { opacity: 0; }
  .os-slider li:first-child { opacity: 1; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1100px) and (min-width: 783px) {
  .navigation ul.menu > li { margin-left: 18px; }
}
@media (max-width: 959px) {
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
  .my-td, .my-td.block-right { display: block; text-align: center; width: 100%; }
  #top-bar .call-us { margin: 0; }
  .call-us ul li { display: block; margin-left: 0; }
  #header .my-table { height: auto; }
  #header .logo { text-align: center; margin: 10px 0; padding: 0; }
  .navigation { float: none; }
  .navigation ul.menu { display: none; }
  .select-menu { display: block; }
  #fixed_header { display: none; }
  #title .title-row { flex-direction: column; gap: 0; }
  #title h1, #title #breadcrumbs { text-align: center; }
  #back-to-top { display: none; }
  .parallax-row { background-attachment: scroll; }
}
@media (max-width: 767px) {
  .col-3, .col-4, .col-6, .col-8, .col-9 { width: 100%; }
  .parallax-row .col-3 { margin-bottom: 20px; }
  .parallax-row .row[style] { margin-top: 0 !important; }
  .alignleft { float: none; display: block; margin: 0 0 15px; }
  .derechos-row { padding: 0 10px; }
  .adv-textblock { width: 100%; margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .footer-widgets { grid-template-columns: 1fr; }
  .rs-arrow { display: none; }
}

/* ------------------------------------------------------------ Galería (Centro de Día) */
.gallery-title { margin: 30px 0 15px; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 35px; }
.photo-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef3f5; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, opacity .3s ease; }
.photo-gallery a:hover img { transform: scale(1.04); opacity: .9; }

/* Visor de la galería */
.lb-open, .lb-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 50px 70px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: calc(100% - 30px); object-fit: contain; box-shadow: 0 5px 25px rgba(0,0,0,.5); }
.lb-count { color: #ccc; font-size: 13px; margin-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s; padding: 0; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 10px; right: 18px; font-size: 40px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 54px; width: 60px; height: 90px; }
.lb-prev { left: 5px; }
.lb-next { right: 5px; }
@media (max-width: 600px) {
  .lb-figure { padding: 50px 10px; }
  .lb-prev, .lb-next { font-size: 40px; width: 44px; background: rgba(0,0,0,.35); }
}

/* ------------------------------------------------------------ Formularios */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid #3ebbca; background: #eef8f9; color: #333; }
.form-msg.error { border-left-color: #d9534f; background: #fbeeee; }
/* Botón mientras se envía: franjas en movimiento sobre el color del botón */
.js-form.enviando input[type="submit"] {
  cursor: wait; pointer-events: none; color: #fff;
  background-color: var(--accent);
  background-image: linear-gradient(-45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent);
  background-size: 28px 28px;
  animation: boton-enviando .7s linear infinite;
}
@keyframes boton-enviando { from { background-position: 0 0; } to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) {
  .js-form.enviando input[type="submit"] { animation: none; opacity: .75; }
}

/* ------------------------------------------------------------ Artículos */
.post-date { color: #8e9596; font-size: 13px; margin: 0 0 15px; }
.post-date .fa { margin-right: 5px; }
.post-list { list-style: none; margin: 0 0 35px; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid #ebebeb; }
.post-list h3 { margin: 0 0 6px; font-size: 18px; }
.post-list p { margin: 0; }
.post-nav { margin: 30px 0 35px; padding-top: 15px; border-top: 1px solid #ebebeb; }
