/* Marca SOFIA — tamaño de logo en barra y pie */
nav.sofia-navbar .navbar-brand .logo {
  max-height: 48px;
  height: auto;
  max-width: 180px;
}

.navbar-brand .logo,
.navbar-collapse > img.d-lg-none,
.side .logo img,
.footer-top-style-one .logo img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.sofia-product-grid img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  height: auto;
}

/* Inicio — tarjetas línea Sofia */
.sofia-home-products {
  background: linear-gradient(180deg, #fff 0%, #f8f7ff 55%, #fff 100%);
}

.sofia-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(75, 75, 229, 0.1);
  box-shadow: 0 14px 40px rgba(16, 49, 66, 0.07);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.25, 0.44, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.sofia-product-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary, #4b4be5);
  background: rgba(75, 75, 229, 0.1);
}

.sofia-product-badge--service {
  color: #0d5c4a;
  background: rgba(13, 92, 74, 0.12);
}

.sofia-product-card__title {
  font-size: 22px;
  margin: 0 0 10px;
  color: #103142;
}

.sofia-product-card__lead {
  font-size: 14px;
  line-height: 1.55;
  color: #5a6b75;
  margin: 0;
}

.sofia-product-card__list {
  margin: 18px 0 0;
  font-size: 13px;
}

.sofia-product-card__thumb {
  margin: 22px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f0effd;
  border: 1px solid rgba(75, 75, 229, 0.08);
}

.sofia-product-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: top center;
}

.sofia-product-card__thumb--contable img {
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.sofia-product-card--cont {
  border-color: rgba(13, 92, 74, 0.15);
}

.sofia-product-card .btn-style-one {
  margin-top: auto;
  align-self: flex-start;
}

.sofia-module-tag {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 36, 246, 0.08);
  font-size: 13px;
  color: #103142;
}

.sofia-coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.navbar-nav li.dropdown {
  position: relative;
}

@media (min-width: 992px) {
  .navbar-nav li.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

.navbar-nav li.dropdown.open > .dropdown-menu {
  display: block;
  position: static;
  float: none;
  box-shadow: none;
  border: none;
  padding-left: 12px;
}

@media (min-width: 992px) {
  .navbar-nav li.dropdown.open > .dropdown-menu {
    position: absolute;
    padding-left: 5px;
    box-shadow: var(--box-shadow-secondary);
    border: 1px solid #00000026;
  }
}

/* —— Sofia Educativo (ficha producto) —— */
.sofia-edu-page .title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.sofia-hero-shot {
  margin: 0;
  position: relative;
}

.sofia-hero-shot .sofia-hero-main {
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.sofia-hero-shot .sofia-hero-secondary {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 42%;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border: 3px solid #fff;
}

.sofia-hero-caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-paragraph, #666);
  text-align: center;
}

/* Índice lateral: fijo, colapsable; no ocupa ancho en el flujo del contenido */
.sofia-edu-page {
  scroll-padding-top: calc(var(--sofia-nav-height, 78px) + 16px);
}

.sofia-edu-toc-wrap {
  position: fixed;
  top: calc(var(--sofia-nav-height, 88px) + 12px);
  right: 0;
  z-index: 90;
  width: auto;
  max-width: min(280px, 40vw);
  padding: 0 0 0 8px;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.sofia-toc-tab {
  pointer-events: auto;
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(75, 75, 229, 0.2);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: #103142;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: -4px 4px 20px rgba(16, 49, 66, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.sofia-toc-tab:hover {
  background: var(--color-primary, #4b4be5);
  color: #fff;
}

.sofia-toc-tab-icon {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.sofia-edu-toc-wrap.sofia-toc-collapsed .sofia-toc-tab-icon {
  transform: rotate(180deg);
}

.sofia-toc-panel {
  pointer-events: auto;
  margin-top: 44px;
  margin-right: 12px;
  transform: translateX(0);
  opacity: 1;
  transition:
    transform 0.3s ease,
    opacity 0.25s ease;
}

.sofia-edu-toc-wrap.sofia-toc-collapsed .sofia-toc-panel {
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

.sofia-edu-toc {
  display: block;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #f0effd;
  border: 1px solid rgba(75, 75, 229, 0.14);
  box-shadow: 0 12px 36px rgba(16, 49, 66, 0.1);
}

.sofia-edu-toc-label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #103142;
  margin: 0 0 10px;
  line-height: 1.35;
}

.sofia-toc-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(68vh, 480px);
  overflow-y: auto;
  padding-right: 2px;
}

.sofia-edu-pill {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  color: #103142;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid rgba(75, 75, 229, 0.12);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sofia-edu-pill:hover {
  background: var(--color-primary, #4b4be5);
  color: #fff;
}

.sofia-edu-module-head {
  padding-right: 20px;
}

@media (min-width: 992px) {
  .sofia-edu-module .sofia-edu-module-head {
    position: sticky;
    top: 140px;
  }
}

.sofia-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.sofia-evidence-card {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(16, 49, 66, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bg-gray .sofia-evidence-card {
  border-color: rgba(0, 0, 0, 0.04);
}

.sofia-evidence-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 49, 66, 0.12);
}

.sofia-evidence-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0a0a0c;
  cursor: zoom-in;
}

.sofia-evidence-zoom img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.sofia-evidence-card figcaption {
  padding: 16px 18px 20px;
}

.sofia-evidence-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary, #4b4be5);
  margin-bottom: 6px;
}

.sofia-evidence-card figcaption strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: #103142;
}

.sofia-evidence-card figcaption p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: var(--color-paragraph, #666);
}

.sofia-edu-menu-box {
  padding: 32px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(75, 75, 229, 0.1);
  box-shadow: 0 12px 36px rgba(16, 49, 66, 0.06);
}

.sofia-menu-col {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.sofia-menu-col li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.sofia-contable-visual img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 49, 66, 0.12);
}

.sofia-contable-video-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.sofia-contable-video {
  width: 100%;
  max-height: 480px;
  border-radius: 14px;
  background: #0d1520;
  box-shadow: 0 16px 40px rgba(16, 49, 66, 0.15);
}

.sofia-contable-list a {
  color: var(--color-primary, #4b4be5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sofia-menu-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary, #4b8fe5);
}

.sofia-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 0, 11, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sofia-lightbox[hidden] {
  display: none !important;
}

.sofia-lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.sofia-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.sofia-lightbox-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .sofia-hero-shot .sofia-hero-secondary {
    position: static;
    width: 88%;
    margin: -40px auto 0;
    display: block;
  }

  .sofia-edu-toc-wrap {
    top: auto;
    bottom: 12px;
    max-width: min(260px, 88vw);
  }

  .sofia-toc-panel {
    margin-right: 8px;
  }
}

/* —— WhatsApp / contacto —— */
.sofia-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.sofia-btn-whatsapp .fa-whatsapp {
  font-size: 1.2em;
  line-height: 1;
}

.sofia-btn-whatsapp--solid {
  background: #1faf54 !important;
  border-color: #1faf54 !important;
  color: #fff !important;
}

.sofia-btn-whatsapp--solid:hover {
  background: #189448 !important;
  border-color: #189448 !important;
  color: #fff !important;
}

nav.sofia-navbar .sofia-btn-whatsapp.btn-style-one.white .fa-whatsapp {
  color: #25d366;
}

nav.sofia-navbar .sofia-btn-whatsapp.btn-style-one.white:hover .fa-whatsapp {
  color: #fff;
}

.sofia-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.sofia-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .sofia-contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .sofia-contact-actions .btn-lg {
    flex: 1 1 auto;
  }

  .sofia-btn-email {
    width: auto;
    flex: 1 1 220px;
  }
}

.sofia-contact-hint {
  font-size: 13px;
  width: 100%;
  margin-bottom: 0;
}

.sofia-contact-card {
  height: 100%;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(75, 75, 229, 0.12);
  box-shadow: 0 12px 32px rgba(16, 49, 66, 0.06);
}

.sofia-contact-card h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.sofia-contact-card p {
  margin: 0;
  color: #5a6b75;
  font-size: 14px;
  line-height: 1.5;
}

.sofia-contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0effd;
  color: var(--color-primary, #4b4be5);
  font-size: 22px;
}

.sofia-contact-card__icon--wa {
  background: rgba(37, 211, 102, 0.12);
  color: #1faf54;
}

.req-demo-wrap .sofia-btn-whatsapp.light .fa-whatsapp {
  color: #bbf7d0;
}