/* =====================================================================
   Sisgenyca – ajustes sobre el tema Cardia (main.css).
   Solo se agregan reglas necesarias para React (sin jQuery) y para los
   componentes propios del laboratorio. El diseño base permanece intacto.
   ===================================================================== */

/* ---------- Logo (SVG inline) ---------- */
.sg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.sg-logo svg {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.sg-logo .sg-logo-text {
  font-family: var(--header-font);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.5px;
  color: var(--header);
}
.sg-logo .sg-logo-text span {
  color: var(--theme);
}
.sg-logo.sg-logo-white .sg-logo-text {
  color: var(--white);
}
.sg-logo .sg-logo-tag {
  display: block;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme);
  margin-top: 4px;
}
.sg-logo.sg-logo-white .sg-logo-tag {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Header: menú extenso ---------- */
@media (min-width: 1200px) and (max-width: 1699px) {
  .nav-menu > li > a {
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 15px !important;
  }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .nav-menu > li > a {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 14px !important;
  }
}
.header-topbar .ta-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.header-topbar .ta-item a:hover {
  color: var(--theme);
}
.header-topbar .ta-item.sg-pill {
  background: var(--transparent);
  border-radius: 30px;
  padding: 4px 14px;
}
.header-actions .ta-button-02 {
  white-space: nowrap;
}

/* ---------- Buscador: resultados ---------- */
.sg-search-results {
  max-width: 900px;
  margin: 24px auto 0;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  max-height: 55vh;
  overflow-y: auto;
  box-shadow: var(--box-shadow);
}
.sg-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--header);
  text-decoration: none;
  font-family: var(--header-font);
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.sg-search-results a small {
  font-family: var(--body-font);
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}
.sg-search-results a:hover {
  background: var(--transparent);
  color: var(--theme);
}
.sg-search-results .sg-empty {
  padding: 16px;
  text-align: center;
  color: var(--text);
}

/* ---------- Marquee (CSS, reemplaza jquery.marquee) ---------- */
.marquee-right,
.marquee-left {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-right .marquee-track,
.marquee-left .marquee-track {
  display: inline-flex;
  width: max-content;
  animation: sgMarqueeRight 40s linear infinite;
}
.marquee-left .marquee-track {
  animation-name: sgMarqueeLeft;
}
.marquee-track .marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
}
@keyframes sgMarqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes sgMarqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Acordeón animado (sin jQuery) ---------- */
.faq-item .content {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.35s var(--ease), padding-top 0.4s var(--ease);
}
.faq-item.active .content {
  max-height: 800px;
  opacity: 1;
}

/* ---------- Pestañas: animación de entrada ---------- */
.ta-tab-pane.active {
  animation: sgFadeUp 0.35s ease both;
}
@keyframes sgFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Imágenes referenciales (ilustraciones sobre fondo blanco) ---------- */
.sg-ref-img {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sg-ref-img img {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.service-single-thumb.sg-ref-img {
  min-height: 320px;
}
.ta-facilities-content .img-box.sg-ref-img {
  padding: 16px;
  border-radius: 20px;
}
.ta-facilities-content .img-box.sg-ref-img img {
  max-height: 260px;
}
.ta-tab-content .ta-facilities-content .img-box.sg-case-img {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.ta-tab-content .ta-facilities-content .img-box.sg-case-img img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
}

/* Servicios (home, fondo oscuro): imagen circular al hover */
.service-one-item .icon .service-img img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}
.service-one-item .icon .service-icon i {
  color: var(--white);
  font-size: 34px;
}
.service-one-item .icon .service-icon img,
.ta-feature-one-item .icon .img img,
.ta-service-four-item .icon .img img {
  max-width: 45px;
  max-height: 45px;
}

/* Icono FontAwesome en lugar de imagen (feature/about/process) */
.sg-fa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  font-size: 34px;
  line-height: 1;
}
.ta-about-one-right .icon .sg-fa-icon {
  font-size: 36px;
  color: var(--white);
}
.process-item-one .icon .sg-fa-icon {
  font-size: 40px;
  color: var(--white);
}
.pricing-item .pricing-header .icon .sg-fa-icon {
  font-size: 40px;
}

/* ---------- Tarjeta de análisis (páginas de servicio) ---------- */
.sg-test-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: var(--box-shadow);
  transition: transform 0.4s ease-in-out;
}
.sg-test-card:hover {
  transform: translateY(-4px);
}
.sg-test-card .sg-test-img {
  flex: 0 0 300px;
  max-width: 300px;
  background: #f7f9fe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  min-height: 190px;
}
.sg-test-card .sg-test-img img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.sg-test-card .sg-test-body {
  flex: 1 1 auto;
}
.sg-test-card .sg-test-body .header-md {
  margin-bottom: 10px;
}
.sg-test-card .sg-test-body p {
  margin-bottom: 12px;
}
.sg-test-card .sg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.sg-test-card .sg-meta li {
  font-size: 14px;
  color: var(--header);
  background: var(--transparent);
  border-radius: 30px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sg-test-card .sg-meta li i {
  color: var(--theme);
}
.sg-test-card .sg-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sg-test-card .sg-test-body .ta-button-01,
.sg-test-card .sg-test-body .ta-button-02 {
  padding: 12px 22px;
  font-size: 14px;
}
@media (max-width: 767px) {
  .sg-test-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .sg-test-card .sg-test-img {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* Lista de viñetas del contenido (reutiliza ser-single-feaure) */
.ser-single-feaure li strong {
  color: var(--header);
}
.sg-note {
  background: var(--transparent);
  border-left: 4px solid var(--theme);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.sg-note p {
  margin: 0 0 6px;
}
.sg-note p:last-child {
  margin-bottom: 0;
}
.sg-note strong {
  color: var(--header);
}
.sg-anchor {
  scroll-margin-top: 130px;
}

/* Sub-secciones internas */
.sg-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 20px;
}
.sg-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

/* Widgets del sidebar: accesos */
.ta-widget-categories ul li a.active {
  color: var(--theme);
}
.sg-quick-links li a i:first-child {
  margin-right: 10px;
  color: var(--theme);
}

/* ---------- Botón COTIZAR flotante (mockup) ---------- */
.sg-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
}
.sg-fab-tab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--header);
  color: var(--white);
  font-family: var(--header-font);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
  padding: 18px 12px;
  border-radius: 0 12px 12px 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 24, 55, 0.25);
  transition: background 0.3s;
}
.sg-fab-tab:hover {
  background: var(--theme);
}
.sg-fab-panel {
  width: 290px;
  background: var(--white);
  border-radius: 16px 0 0 16px;
  box-shadow: 0 10px 40px rgba(0, 24, 55, 0.2);
  padding: 22px;
  margin-right: -300px;
  opacity: 0;
  visibility: hidden;
  transition: margin 0.4s var(--ease), opacity 0.3s;
}
.sg-fab.is-open .sg-fab-panel {
  margin-right: 0;
  opacity: 1;
  visibility: visible;
}
.sg-fab-panel h4 {
  font-family: var(--header-font);
  font-weight: 800;
  color: var(--header);
  font-size: 18px;
  margin-bottom: 6px;
}
.sg-fab-panel p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}
.sg-fab-panel .sg-fab-choice {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.sg-fab-panel .sg-fab-choice a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--header);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.sg-fab-panel .sg-fab-choice a i {
  color: var(--theme);
  font-size: 20px;
}
.sg-fab-panel .sg-fab-choice a:hover {
  border-color: var(--theme);
  background: var(--transparent);
  color: var(--theme);
}
.sg-fab-panel .sg-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: filter 0.3s;
}
.sg-fab-panel .sg-whatsapp:hover {
  filter: brightness(0.92);
  color: var(--white);
}
.sg-fab-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.sg-fab-panel {
  position: relative;
}
@media (max-width: 575px) {
  .sg-fab-panel {
    width: calc(100vw - 60px);
  }
}

/* ---------- Formularios: select con estilo del tema ---------- */
.contact-form-one select,
.contact-page-one select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.sg-radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sg-radio-group label {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  color: var(--header);
  transition: all 0.3s;
}
.sg-radio-group label:has(input:checked) {
  border-color: var(--theme);
  background: var(--transparent);
  color: var(--theme);
}
.sg-radio-group input {
  accent-color: var(--theme);
  width: 18px;
  height: 18px;
}
.sg-form-success {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}
.sg-form-success i {
  font-size: 56px;
  color: var(--theme);
  margin-bottom: 16px;
}

/* ---------- Sedes ---------- */
.sg-sedes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sg-sedes li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--white);
  color: var(--header);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--box-shadow);
  transition: all 0.3s;
}
.sg-sedes li a i {
  color: var(--theme);
}
.sg-sedes li a:hover {
  background: var(--theme);
  color: var(--white);
}
.sg-sedes li a:hover i {
  color: var(--white);
}
.footer-open-hours li span:last-child a {
  color: inherit;
  text-decoration: none;
}
.footer-open-hours li span:last-child a:hover {
  color: var(--theme);
}

/* Mapa de contacto */
.ta-map-one-wrap iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 20px;
}

/* Publicaciones: imagen con altura fija */
.ta-blog-grid-01 .news-thumb img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: var(--white);
}
.ta-blog-grid-01 .news-thumb.sg-contain img {
  object-fit: contain;
  padding: 16px;
}

/* Hero: imagen principal, píldora del título y tarjeta de cifra */
.ta-hero-one-wrap .hero-right .main-img {
  max-height: 640px;
}
@media (min-width: 992px) {
  .ta-hero-one-wrap .hero-left .header-xxl {
    font-size: 72px;
    line-height: 84px;
  }
}
.ta-hero-one-wrap .hero-left .header-xxl img {
  height: 65px;
  width: auto;
  vertical-align: middle;
  border-radius: 40px;
}
@media (max-width: 991px) {
  .ta-hero-one-wrap .hero-left .header-xxl img {
    height: 46px;
  }
}
.ta-hero-one-wrap .hero-left .btn-grp .popup-video {
  text-decoration: none;
}

/* Cursor personalizado: ocultar en táctiles */
@media (hover: none) {
  .mouseCursor {
    display: none !important;
  }
}

/* Preloader ocultar */
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Botones dentro de párrafos en contenido */
.sg-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

/* Tabla de paneles NIPT */
.sg-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.sg-panel {
  background: var(--white);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sg-panel .sg-panel-tag {
  align-self: flex-start;
  background: var(--transparent);
  color: var(--theme);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 30px;
  padding: 4px 12px;
}
.sg-panel h4 {
  font-family: var(--header-font);
  font-weight: 800;
  color: var(--header);
  font-size: 20px;
  margin: 0;
}
.sg-panel p {
  margin: 0;
  font-size: 15px;
}
.sg-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sg-panel ul li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.sg-panel ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--theme);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
}
.sg-panel .ta-button-02 {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 14px;
}

/* Footer: miniaturas de publicaciones (el enlace debe comportarse como bloque) */
.ta-footer-wrapper .footer-blog li .blog-img {
  display: block;
  flex: 0 0 80px;
}

/* Inputs tipo tel / number: mismo estilo que text/email del tema */
input[type="tel"],
input[type="number"] {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--text);
  border: 1px solid transparent;
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  outline: none;
  transition: all 0.4s ease-in-out;
}
.contact-form-one input[type="tel"],
.contact-page-one input[type="tel"] {
  background: var(--body);
  color: var(--header);
}
.contact-form-one input[type="tel"]::placeholder,
.contact-page-one input[type="tel"]::placeholder {
  color: var(--text);
}

/* ---------- Paleta Sisgenyca: #163353 (azul marino) y #F5A6B9 (rosa) ---------- */
:root {
  --theme: #F5A6B9;
  --header: #163353;
  --black: #163353;
  --body: #FBF3F6;
  --transparent: rgb(from #F5A6B9 r g b / 18%);
}
/* Botones rosa: texto oscuro para contraste */
.ta-button-01,
.contact-form-one .ta-button-01,
.ser-single-form .ta-button-01 {
  color: var(--header) !important;
}
.ta-button-01 .button__icon-wrapper {
  background: var(--header);
  color: var(--white);
}
.ta-button-01:hover {
  color: var(--white) !important;
}
.ta-button-01:hover .button__icon-wrapper {
  background: var(--white);
  color: var(--header);
}
/* Iconos sobre círculos rosa */
.service-one-item .icon .service-icon i,
.ta-about-one-right .icon .sg-fa-icon,
.process-item-one .icon .sg-fa-icon,
.contact-info-item .icon i,
.footer-top-contact .icon i {
  color: var(--header) !important;
}
.hero-left .popup-video {
  color: var(--header) !important;
}
.sg-fab-tab:hover {
  background: var(--theme);
  color: var(--header);
}
.sg-search-results a:hover,
.sg-logo .sg-logo-text span {
  color: #e0668a;
}
.ta-tab-nav li.active,
.ta-facilities-list li.active {
  color: var(--header) !important;
}

/* ---------- Contenedor más angosto para lectura cómoda ---------- */
@media (min-width: 1400px) {
  .container {
    max-width: 1240px;
  }
  /* La cabecera conserva el ancho completo para que quepa el menú */
  .header-topbar .container,
  .header-main .container,
  .search-overlay .container {
    max-width: 1630px;
  }
  /* Secciones que usan container-fluid: alinear al mismo ancho */
  .ta-feature-one .container-fluid {
    max-width: 1240px;
    margin: 0 auto;
  }
}

/* ---------- Tipografía: Noir para títulos, Montserrat para párrafos ---------- */
:root {
  --header-font: 'Noir Pro', 'Noir', 'Outfit', sans-serif;
  --header-font-2: 'Noir Pro', 'Noir', 'Outfit', sans-serif;
  --body-font: 'Montserrat', sans-serif;
}
body,
p,
li,
input,
select,
textarea,
button,
a {
  font-family: var(--body-font);
}
h1, h2, h3, h4, h5, h6,
.header-xxl, .header-xl, .header-lg, .header-md, .header-sm,
.sg-logo .sg-logo-text,
.marquee-text,
.sg-fab-tab,
.sg-panel h4,
.sg-fab-panel h4 {
  font-family: var(--header-font);
}
.ta-button-01,
.ta-button-02 {
  font-family: var(--body-font);
  font-weight: 600;
}
/* Íconos: azul marino sobre fondos rosa */
.sg-fa-icon,
.ta-about-two-img .card .icon i {
  color: var(--header) !important;
}

/* Logo oficial (imagen) */
.sg-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-logo .sg-logo img {
  height: 60px;
}
.mob-hdr .sg-logo img {
  height: 46px;
}
@media (max-width: 575px) {
  .sg-logo img {
    height: 42px;
  }
}

/* ---------- Pesos tipográficos más ligeros (Noir Pro: 300/400/500/700/900) ---------- */
h1, h2, h3, h4, h5, h6,
.header-xxl, .header-xl, .header-lg, .header-md, .header-sm,
.hero-left .header-xxl,
.ta-breadcrumb-content h1,
.preloader-text,
.marquee-text,
.sg-panel h4,
.sg-fab-panel h4,
.sg-section-title {
  font-weight: 500 !important;
}
.nav-menu > li > a,
.mob-nav a,
.sub-title,
.ta-button-01,
.ta-button-02 {
  font-weight: 500 !important;
}
.header-topbar strong,
.footer-links a,
.footer-open-hours li span,
strong, b {
  font-weight: 600;
}
.ser-single-feaure li strong,
.sg-note strong,
.sg-test-card strong {
  font-weight: 600;
  color: var(--header);
}
.ser-single-feaure li,
.ta-facilities-content .feature li,
.pricing-item .feature li span,
.ta-about-one-left .feature li {
  font-weight: 400 !important;
}

/* ---------- Tamaños tipográficos moderados ---------- */
@media (min-width: 992px) {
  .header-xxl,
  .ta-hero-one-wrap .hero-left .header-xxl {
    font-size: 54px !important;
    line-height: 64px !important;
  }
  .header-xl,
  .ta-breadcrumb-content h1 {
    font-size: 36px !important;
    line-height: 46px !important;
  }
  .header-lg {
    font-size: 26px !important;
    line-height: 36px !important;
  }
  .header-md {
    font-size: 20px !important;
    line-height: 30px !important;
  }
  .header-sm {
    font-size: 17px !important;
    line-height: 26px !important;
  }
}
@media (max-width: 991px) {
  .header-xxl,
  .ta-hero-one-wrap .hero-left .header-xxl {
    font-size: 36px !important;
    line-height: 44px !important;
  }
  .header-xl,
  .ta-breadcrumb-content h1 {
    font-size: 28px !important;
    line-height: 36px !important;
  }
  .header-lg {
    font-size: 22px !important;
    line-height: 30px !important;
  }
}
body,
p,
li {
  font-size: 15px;
  line-height: 26px;
}
.hero-left p.mb-50 {
  font-size: 16px;
  line-height: 27px;
}
.nav-menu > li > a {
  font-size: 14.5px !important;
}
.header-topbar {
  font-size: 13px;
}
.ta-button-01,
.ta-button-02 {
  font-size: 14px;
}
.marquee-text {
  font-size: 56px !important;
}
.sg-section-title {
  font-size: 26px !important;
}
.wc-service-block h3,
.sg-test-card .sg-test-body .header-md {
  font-size: 20px !important;
}
.pricing-item .pricing-header .header-lg {
  font-size: 24px !important;
}
.testi-one-left .header-lg {
  font-size: 22px !important;
  line-height: 32px !important;
}

/* ---------- Etiquetas de sección (sub-title): sin fondo, borde rosa ---------- */
.sub-title,
.center-sub-main-header .sub-title,
.center-sub-main-header.service-one-header .sub-title,
.center-sub-main-header.ta-process-one .sub-title {
  background: transparent !important;
  border: 1.5px solid var(--theme) !important;
  border-radius: 30px !important;
  padding: 7px 16px !important;
  color: var(--header) !important;
  font-size: 12.5px !important;
  letter-spacing: 1px;
}
/* Sobre fondos oscuros: texto rosa claro */
.center-sub-main-header.service-one-header .sub-title,
.center-sub-main-header.ta-process-one .sub-title,
.sub-title.text-white {
  color: var(--theme) !important;
}

/* Submenús del menú: peso normal */
.nav-menu .sub-menu > li > a,
.nav-menu .sub-menu > li > a span,
.mob-nav .sub-menu a {
  font-family: var(--body-font);
  font-weight: 400 !important;
  font-size: 14px !important;
}

/* Misión / Visión / Valores: columnas alineadas arriba */
.ta-process-one-wrap .row[data-aos="fade-up"] {
  align-items: flex-start !important;
}

/* Nosotros: separación entre el bloque Misión/Visión y el footer */
#mision.ta-process-one {
  margin-bottom: 120px;
}
@media (max-width: 767px) {
  #mision.ta-process-one {
    margin-bottom: 60px;
  }
}

/* Páginas de área a ancho completo: imágenes más grandes */
.sg-test-card .sg-test-img {
  flex: 0 0 400px;
  max-width: 400px;
  min-height: 240px;
}
.sg-test-card .sg-test-img img {
  max-height: 300px;
}
.sg-ref-img img {
  max-height: 560px;
}
@media (max-width: 991px) {
  .sg-test-card .sg-test-img {
    flex: 0 0 300px;
    max-width: 300px;
  }
}
@media (max-width: 767px) {
  .sg-test-card .sg-test-img {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* Notas: texto simple, sin fondo ni borde lateral */
.sg-note {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 30px;
}
.sg-note p {
  margin-bottom: 8px;
}

/* Páginas legales */
.sg-legal .contact-page-one {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
}
.sg-legal .contact-page-one input,
.sg-legal .contact-page-one select,
.sg-legal .contact-page-one textarea {
  background: var(--body);
  color: var(--header);
}

/* Botón hamburguesa: solo en móvil/tablet */
@media (min-width: 1200px) {
  .header-actions .hamburger {
    display: none !important;
  }
}

/* ---------- Hero tipo banner (mockup) ---------- */
.sg-hero {
  position: relative;
  margin: 15px 15px 0;
  border-radius: 20px;
  overflow: hidden;
}
.sg-hero .swiper {
  border-radius: 20px;
}
.sg-hero-slide {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.sg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 51, 83, 0.35) 0%, rgba(22, 51, 83, 0.55) 45%, rgba(22, 51, 83, 0.88) 100%);
}
.sg-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.sg-hero-content {
  max-width: 560px;
  padding: 80px 0;
  color: #fff;
}
.sg-hero-kicker {
  display: inline-block;
  border: 1.5px solid var(--theme);
  color: var(--theme);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sg-hero-title {
  font-family: var(--header-font);
  font-weight: 500 !important;
  font-size: 54px !important;
  line-height: 62px !important;
  color: #fff;
  margin-bottom: 18px;
}
.sg-hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 14px;
}
.sg-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.sg-hero-actions .sg-hero-btn-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.sg-hero-actions .sg-hero-btn-light:hover {
  background: #fff;
  color: var(--header);
}
.sg-hero-pagination {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.sg-hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 99px;
  background: #fff;
  opacity: 0.5;
  transition: all 0.3s;
}
.sg-hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  background: var(--theme);
}
@media (max-width: 991px) {
  .sg-hero {
    margin: 10px 10px 0;
  }
  .sg-hero-slide {
    min-height: 480px;
  }
  .sg-hero .container {
    justify-content: flex-start;
  }
  .sg-hero-overlay {
    background: rgba(22, 51, 83, 0.72);
  }
  .sg-hero-title {
    font-size: 36px !important;
    line-height: 44px !important;
  }
  .sg-hero-content {
    padding: 60px 0;
  }
}

/* Hero: degradado más oscuro hacia la derecha (zona de texto) */
.sg-hero-overlay {
  background: linear-gradient(90deg, rgba(22, 51, 83, 0.15) 0%, rgba(22, 51, 83, 0.45) 40%, rgba(22, 51, 83, 0.9) 68%, rgba(22, 51, 83, 0.97) 100%) !important;
}

/* Hero: contenedor ajustado al slider, esquinas redondeadas arriba y abajo */
section.sg-hero {
  padding: 0;
  display: block;
  line-height: normal;
}
.sg-hero .swiper {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}
.sg-hero .swiper-slide {
  height: auto;
}
.sg-hero .sg-hero-pagination {
  bottom: 24px;
}
.sg-hero .swiper-wrapper {
  align-items: stretch;
}
.sg-hero .swiper-slide {
  height: auto;
  display: flex;
}
.sg-hero .sg-hero-slide {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

/* Botón COTIZAR flotante: borde rosa ligero */
.sg-fab-tab {
  background: var(--header);
  border: 1.5px solid var(--theme);
  border-right: none;
  color: var(--theme);
  letter-spacing: 2.5px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(22, 51, 83, 0.18);
}
.sg-fab-tab:hover {
  background: var(--theme);
  color: var(--header);
}

/* Breadcrumb: degradado azul → rosa, sin imagen */
.ta-breadcrumb.bg-cover {
  background: linear-gradient(100deg, #163353 0%, #1f3f66 45%, #F5A6B9 100%) !important;
}

/* Grilla de análisis en 2 columnas: tarjetas verticales */
.sg-test-grid .sg-test-card {
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  margin-bottom: 0 !important;
  padding: 24px;
}
.sg-test-grid .sg-test-card .sg-test-img {
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 200px;
  max-height: 240px;
}
.sg-test-grid .sg-test-card .sg-test-img img {
  max-height: 210px;
}
.sg-test-grid .sg-test-card .sg-test-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.sg-test-grid .sg-test-card .sg-actions {
  margin-top: auto;
  padding-top: 6px;
}

/* Imagen + texto en dos columnas */
.sg-media-row .sg-ref-img {
  padding: 16px;
}
.sg-media-row .sg-ref-img img {
  max-height: 420px;
}
.sg-media-row .ser-single-feaure:last-child,
.sg-media-row .sg-note:last-child,
.sg-media-row p:last-child {
  margin-bottom: 0;
}
/* Imágenes sueltas: no tan grandes */
.sg-ref-img:not(.sg-media-row .sg-ref-img) img {
  max-height: 420px;
}

/* Publicaciones: tarjetas con fondo blanco */
.ta-blog-grid-01 {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease-in-out;
}
.ta-blog-grid-01:hover {
  transform: translateY(-4px);
}
.ta-blog-grid-01 .news-thumb {
  border-radius: 0;
}
.ta-blog-grid-01 .news-thumb img {
  height: 240px;
}
.ta-blog-grid-01 .news-thumb.sg-contain img {
  background: #f7f9fe;
}
.ta-blog-grid-01 .news-thumb-meta {
  top: 20px;
  left: 20px;
}
.ta-blog-grid-01 .news-description {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.ta-blog-grid-01 .news-description .read-more-button {
  margin-top: auto;
  padding-top: 10px;
}
.ta-blog-grid-01 .news-description .header-md {
  font-size: 19px !important;
  line-height: 28px !important;
}
.ta-blog .row > [class*='col-'],
.ta-blog-one .row > [class*='col-'] {
  display: flex;
}

/* Hero: capa más oscura para mejorar la lectura del texto */
.sg-hero-overlay {
  background: linear-gradient(90deg, rgba(22, 51, 83, 0.45) 0%, rgba(22, 51, 83, 0.62) 35%, rgba(22, 51, 83, 0.93) 55%, rgba(22, 51, 83, 0.97) 100%) !important;
}

/* COTIZAR flotante: panel se despliega hacia la izquierda; pestaña pegada al borde derecho */
.sg-fab {
  right: 0;
  display: flex;
  align-items: center;
  flex-direction: row;
}
.sg-fab-panel {
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width 0.4s var(--ease), opacity 0.3s;
  border-radius: 16px 0 0 16px;
}
.sg-fab.is-open .sg-fab-panel {
  width: 290px !important;
  opacity: 1;
  visibility: visible;
}
.sg-fab-panel-inner {
  width: 290px;
  padding: 22px;
  position: relative;
}
.sg-fab-tab {
  border-radius: 12px 0 0 12px !important;
  border-right: none;
}
@media (max-width: 575px) {
  .sg-fab.is-open .sg-fab-panel {
    width: calc(100vw - 60px) !important;
  }
  .sg-fab-panel-inner {
    width: calc(100vw - 60px);
  }
  .sg-fab-tab {
    padding: 14px 10px;
    font-size: 12px;
  }
}

/* Hero en móvil/tablet: capa uniforme sobre toda la imagen */
@media (max-width: 991px) {
  .sg-hero-overlay {
    background: rgba(22, 51, 83, 0.82) !important;
  }
  .sg-hero-content {
    max-width: 100%;
    padding: 50px 0 60px;
  }
  .sg-hero-slide {
    min-height: 0;
  }
  .sg-hero-title {
    font-size: 32px !important;
    line-height: 40px !important;
  }
  .sg-hero-text {
    font-size: 14px;
    line-height: 24px;
  }
}

/* ---------- Móvil: títulos mucho más pequeños ---------- */
@media (max-width: 767px) {
  .header-xxl,
  .ta-hero-one-wrap .hero-left .header-xxl,
  .sg-hero-title {
    font-size: 26px !important;
    line-height: 34px !important;
  }
  .header-xl,
  .ta-breadcrumb-content h1 {
    font-size: 22px !important;
    line-height: 30px !important;
  }
  .header-lg,
  .sg-section-title {
    font-size: 19px !important;
    line-height: 27px !important;
  }
  .header-md,
  .sg-panel h4,
  .wc-service-block h3 {
    font-size: 16px !important;
    line-height: 24px !important;
  }
  .header-sm {
    font-size: 15px !important;
    line-height: 23px !important;
  }
  body,
  p,
  li {
    font-size: 14px;
    line-height: 24px;
  }
  .sub-title,
  .sg-hero-kicker {
    font-size: 11px !important;
    white-space: normal;
    line-height: 18px;
    padding: 6px 12px !important;
  }
  .marquee-text {
    font-size: 30px !important;
  }
  .ta-button-01,
  .ta-button-02 {
    font-size: 13px;
    padding: 12px 18px;
  }
  .sg-hero-content {
    padding: 36px 0 50px;
  }
  .sg-hero-text {
    font-size: 13.5px;
    line-height: 22px;
  }
  .ta-breadcrumb {
    padding: 60px 0 !important;
  }
}

/* COTIZAR flotante: corrección de orientación (el botón está rotado 180°) */
.sg-fab-tab {
  border: 1.5px solid var(--theme) !important;
  border-left: none !important;
  border-right: 1.5px solid var(--theme) !important;
  border-radius: 0 12px 12px 0 !important;
}

/* ---------- Móvil: íconos e imágenes más pequeños ---------- */
@media (max-width: 767px) {
  .sg-fa-icon {
    font-size: 22px !important;
  }
  .ta-feature-one-item .icon .img,
  .ta-service-four-item .icon .img {
    height: 56px !important;
    width: 56px !important;
  }
  .ta-about-one-right .icon-item .icon {
    min-width: 60px !important;
    min-height: 60px !important;
    width: 60px;
    height: 60px;
  }
  .service-one-item .icon .service-icon,
  .service-one-item .icon .service-img img {
    height: 60px !important;
    width: 60px !important;
  }
  .service-one-item .icon .service-icon i {
    font-size: 22px !important;
  }
  .process-item-one .icon-box .icon {
    min-width: 60px !important;
    min-height: 60px !important;
  }
  .process-item-one .icon .sg-fa-icon {
    font-size: 26px !important;
  }
  .pricing-item .pricing-header .icon {
    height: 56px !important;
    width: 56px !important;
  }
  .pricing-item .pricing-header .icon .sg-fa-icon {
    font-size: 26px !important;
  }
  .ta-about-two-img .card .icon,
  .footer-top-contact .icon,
  .contact-info-item .icon {
    transform: scale(0.85);
  }
  .ta-feature-one-item .icon .arrow svg,
  .service-one-item .arrow svg,
  .ta-case-one-list .arrow svg {
    width: 16px;
    height: 16px;
  }
  .sg-test-card .sg-test-img {
    min-height: 0 !important;
    max-height: 180px !important;
    padding: 10px;
  }
  .sg-test-card .sg-test-img img {
    max-height: 160px !important;
  }
  .sg-ref-img {
    padding: 12px;
  }
  .sg-ref-img img {
    max-height: 240px !important;
  }
  .sg-media-row .sg-ref-img img {
    max-height: 220px !important;
  }
  .ta-facilities-content .img-box.sg-ref-img img {
    max-height: 170px !important;
  }
  .ta-tab-content .ta-facilities-content .img-box.sg-case-img {
    min-height: 0;
    padding: 12px;
  }
  .ta-tab-content .ta-facilities-content .img-box.sg-case-img img {
    max-height: 220px;
  }
  .ta-about-one-middle img,
  .ta-about-two-img .img img {
    max-height: 280px;
    width: auto;
    object-fit: cover;
  }
  .ta-blog-grid-01 .news-thumb img {
    height: 180px !important;
  }
  .testi-one-item .testi-img img {
    max-width: 80px;
  }
  .testi-one-left .sg-fa-icon {
    font-size: 56px !important;
  }
  .sg-panel {
    padding: 20px;
  }
  .sg-test-card .sg-meta li {
    font-size: 12px;
  }
  .footer-logo .sg-logo img {
    height: 44px;
  }
}

/* Pruebas de ADN: tarjetas alineadas arriba y con la misma altura */
.ta-pricing-one-wrap .row.gy-30 {
  align-items: stretch !important;
}
.ta-pricing-one-wrap .row.gy-30 > [class*='col-'] {
  display: flex;
}
.pricing-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-item .ta-button-01,
.pricing-item .ta-button-02 {
  margin-top: auto;
  align-self: flex-start;
}
.pricing-item .pricing-header {
  align-items: flex-start;
  min-height: 150px;
}
.pricing-item .pricing-header .header-lg {
  font-size: 22px !important;
  line-height: 30px !important;
}

/* =====================================================================
   Correcciones solicitadas por el cliente (documento "correcciones 2.0")
   ===================================================================== */

/* (2) El menú no debe desbordarse en laptops */
.header-main .container {
  gap: 16px;
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .nav-menu > li > a {
    font-size: 13px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}
@media (max-width: 1199px) {
  .main-nav {
    display: none !important;
  }
  .header-actions .hamburger {
    display: flex !important;
  }
}

/* (69) Barra superior: buscador de análisis + botón de resultados */
.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sg-topsearch {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
  display: flex;
  align-items: center;
}
.sg-topsearch i {
  position: absolute;
  left: 14px;
  color: var(--theme);
  font-size: 13px;
}
.sg-topsearch input {
  width: 100%;
  height: 34px;
  border-radius: 30px;
  border: 1px solid var(--theme) !important;
  background: var(--white);
  padding: 0 14px 0 36px !important;
  font-size: 13px;
  color: var(--header);
}
.sg-topsearch input::placeholder {
  color: var(--header);
  opacity: 0.65;
}
.sg-results-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--header);
  color: #fff !important;
  border-radius: 30px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.3s;
}
.sg-results-btn,
.sg-results-btn *,
.header-topbar .sg-results-btn,
.header-topbar .sg-results-btn span,
.header-topbar .sg-results-btn i {
  color: #fff !important;
}
.sg-results-btn span {
  font-weight: 400;
  opacity: 0.9;
}
.sg-results-btn:hover,
.sg-results-btn:hover *,
.header-topbar .sg-results-btn:hover span,
.header-topbar .sg-results-btn:hover i {
  background-color: transparent;
  color: var(--header) !important;
}
.sg-results-btn:hover {
  background: var(--theme);
}
@media (max-width: 991px) {
  .sg-topsearch {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* (3)(5) Título "¿Por qué elegirnos?" destacado y tarjetas homogéneas */
.sg-why-header .sub-title {
  order: 2;
  margin-top: 14px;
}
.sg-why-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sg-why-header .header-xl {
  font-size: 44px !important;
  line-height: 54px !important;
  font-weight: 600 !important;
}
@media (max-width: 767px) {
  .sg-why-header .header-xl {
    font-size: 26px !important;
    line-height: 34px !important;
  }
}
.ta-feature-one-wrap .row > [class*='col-'] {
  display: flex;
}
.ta-feature-one-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(245, 166, 185, 0.45);
  box-shadow: 0 6px 24px rgba(22, 51, 83, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.ta-feature-one-item:hover {
  transform: translateY(-6px);
  border-color: var(--theme);
  box-shadow: 0 14px 34px rgba(22, 51, 83, 0.12);
}

/* (11) Pasos "¿Cómo funciona nuestro servicio?" */
.sg-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sg-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 24px 22px;
  color: #fff;
  transition: all 0.3s;
}
.sg-step:hover {
  background: rgba(245, 166, 185, 0.18);
  border-color: var(--theme);
}
.sg-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--theme);
  color: var(--header);
  font-family: var(--header-font);
  font-weight: 600;
  margin-bottom: 12px;
}
.sg-step p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 14px;
  line-height: 23px;
}
@media (max-width: 991px) {
  .sg-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .sg-steps {
    grid-template-columns: 1fr;
  }
}

/* Lista de pasos en la barra lateral de Informes */
.sg-pasos {
  list-style: none;
  margin: 0;
  padding: 0 20px 20px;
}
.sg-pasos li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 14px;
  line-height: 22px;
}
.sg-pasos .n {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--theme);
  color: var(--header);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* (24)(64) Botón Consultar centrado, sin Cotizar */
.sg-actions {
  justify-content: center;
  margin-top: auto;
  padding-top: 6px;
}
.sg-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--header);
  color: #fff !important;
  border-radius: 30px;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
}
.sg-wa-btn i {
  font-size: 20px;
}
.sg-wa-btn:hover {
  background: #25d366;
  color: #fff !important;
}
.sg-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--theme);
  color: var(--header) !important;
  border-radius: 30px;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
}
.sg-phone-btn:hover {
  background: var(--header);
  color: #fff !important;
}
.sg-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 575px) {
  .sg-contact-actions {
    grid-template-columns: 1fr;
  }
}

/* (26) Imagen y descripción del mismo tamaño en las fichas */
.sg-test-grid .sg-test-card .sg-test-img {
  min-height: 220px;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* (17)(65) Imagen de contacto del mismo alto que el formulario */
.ta-contact-page-one-wrap .row {
  align-items: stretch !important;
}
.sg-contact-img {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.sg-contact-img img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

/* (62) Tarjetas de contacto: simétricas, legibles y sin espacios muertos */
.sg-contact-grid > [class*='col-'] {
  display: flex;
}
.sg-contact-grid .contact-info-item {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 26px;
  overflow: hidden;
}
.sg-contact-grid .contact-info-item .icon {
  min-width: 54px;
  min-height: 54px;
  border-radius: 12px;
}
.sg-contact-grid .contact-info-item .icon i {
  font-size: 22px;
  color: var(--header);
}
.sg-contact-grid .contact-info-item .content {
  width: 100%;
  gap: 4px;
}
.sg-contact-grid .contact-info-item .header-sm {
  font-size: 17px !important;
  line-height: 24px !important;
  margin-bottom: 6px;
  white-space: nowrap;
}
.sg-contact-grid .contact-info-item .content a,
.sg-contact-grid .contact-info-item .content span {
  font-size: 14.5px;
  line-height: 23px;
  word-break: break-word;
}
.sg-contact-grid .contact-info-item .content a:hover {
  color: var(--theme) !important;
}
/* el icono decorativo de fondo estorbaba la lectura */
.sg-contact-grid .contact-info-item .shape {
  display: none !important;
}
.sg-horario {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  margin-bottom: 8px;
}
.sg-horario strong {
  display: block;
  font-weight: 600;
  color: var(--theme);
}
.sg-horario em {
  display: block;
  font-style: normal;
  opacity: 0.88;
}
@media (max-width: 1199px) {
  .sg-contact-grid .contact-info-item .header-sm {
    white-space: normal;
  }
}

/* (1) Imagen de Nosotros */
.sg-about-img {
  border-radius: 20px;
  overflow: hidden;
}
.sg-about-img img {
  width: 100%;
  display: block;
}

/* Icono de X */
.sg-icon-x {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}
.ta-socials .sg-icon-x,
.social-icon .sg-icon-x {
  width: 14px;
  height: 14px;
}

/* Ampliar imágenes (lupa al pasar el cursor) */
.sg-zoom-wrap {
  position: relative;
}
.sg-zoomable {
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}
.sg-zoom-wrap::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22, 51, 83, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.sg-zoom-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}
.sg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(22, 51, 83, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: sgFadeIn 0.25s ease;
}
@keyframes sgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sg-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.sg-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--theme);
  color: var(--header);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.sg-lightbox-close:hover {
  background: #fff;
}

/* Los títulos ya no se animan carácter por carácter (se rompían al cambiar de página) */
.txt-anim-2 {
  opacity: 1 !important;
  transform: none !important;
}
