/* Páginas internas basadas exclusivamente en el sistema visual de home2. */
.inner-page {
  background: var(--white-color);
}

.inner-hero-shell {
  background-image:
    linear-gradient(135deg, rgba(23, 39, 101, 0.88) 0%, rgba(53, 89, 222, 0.78) 55%, rgba(174, 188, 255, 0.55) 100%),
    url('../images/fondo_home.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 80px 80px;
  overflow: hidden;
}

.inner-page-hero.hero-section {
  background: transparent;
  min-height: 430px;
  padding-top: 155px;
  padding-bottom: 105px;
}

.inner-page-hero h1 {
  max-width: 920px;
}

.inner-page-hero h6 {
  color: rgba(255, 255, 255, 0.88);
  max-width: 780px;
  line-height: 1.65;
}

.inner-page-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--white-color);
  font-family: var(--title-font-family);
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inner-content-section {
  padding-top: 90px;
  padding-bottom: 100px;
}

.inner-content-section.section-bg {
  background: var(--ti-gradient-primary-soft);
}

.section-intro {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.section-intro h6 {
  color: var(--primary-color);
}

.content-card,
.listing-card,
.team-card,
.article-card,
.form-card,
.legal-card {
  border: 1px solid rgba(53, 89, 222, 0.08);
  border-radius: var(--border-radius-medium);
  background: var(--white-color);
  box-shadow: 0 18px 42px rgba(23, 39, 101, 0.08);
}

.content-card,
.form-card,
.legal-card,
.article-card {
  padding: 34px;
}

.team-card {
  height: 100%;
  padding: 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover,
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(23, 39, 101, 0.13);
}

.team-card img {
  width: 170px;
  height: 170px;
  border: 6px solid var(--ti-primary-100);
  border-radius: 50%;
  object-fit: cover;
}

.team-card p,
.listing-card p,
.article-card p,
.legal-card p,
.legal-card li {
  color: var(--p-color);
}

.listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ti-primary-100);
}

.listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-card-media img {
  transform: scale(1.035);
}

.listing-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.listing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
}

.study-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.study-card:hover {
  background: var(--white-color);
}

.study-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ti-primary-100);
}

.study-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.study-card-preview {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.study-card-preview img {
  transition: transform 0.4s ease;
}

.study-card-preview:hover img,
.study-card-preview:focus-visible img {
  transform: scale(1.035);
}

.study-preview-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 10px 22px rgba(23, 39, 101, 0.22);
}

.study-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: var(--border-radius-large);
  padding: 8px 12px;
}

.study-card-body {
  flex: 1;
  padding: 28px 28px 10px;
}

.study-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 28px 28px;
}

.empty-state-icon {
  color: var(--primary-color);
  font-size: 3rem;
}

.service-card {
  width: 100%;
  cursor: pointer;
}

.services-grid > [class*="col-"] {
  display: flex;
}

.service-card .custom-block-overlay-text {
  display: flex;
  align-items: flex-start;
  height: 100%;
}

.service-card .service-card-action {
  margin-top: auto;
  color: var(--white-color);
  font-weight: var(--font-weight-semibold);
}

.inner-modal {
  border: 0;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}

.inner-modal .modal-header,
.inner-modal .modal-footer {
  border-color: var(--border-color);
}

.inner-modal .service-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: var(--primary-color);
}

.inner-modal .service-modal-header .modal-title {
  color: var(--white-color) !important;
}

.inner-modal .service-modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.inner-modal .modal-body {
  padding: 28px;
}

.form-card .form-control,
.form-card .form-select {
  border-color: var(--border-color);
  border-radius: var(--border-radius-small);
  min-height: 56px;
}

.form-card textarea.form-control {
  min-height: 150px;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.18rem rgba(53, 89, 222, 0.14);
}

.contact-aside {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  background-image:
    linear-gradient(135deg, rgba(23, 39, 101, 0.88), rgba(53, 89, 222, 0.72)),
    url('../../images/contacto_rel.jpg');
  background-size: cover;
  background-position: center;
  padding: 36px;
  color: var(--white-color);
}

.contact-aside p,
.contact-aside a,
.contact-aside h3,
.contact-aside h5 {
  color: var(--white-color);
}

.contact-aside a:hover {
  color: var(--ti-primary-200);
}

.loading-contact,
.loading-contact-rel {
  padding-top: 20px;
  text-align: center;
}

.loading-contact img,
.loading-contact-rel img {
  width: 52px;
  animation: inner-pulse 1.1s ease-in-out infinite;
}

@keyframes inner-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1); opacity: 1; }
}

.panel-flow {
  border-radius: var(--border-radius-medium);
  background: var(--ti-primary-050);
  padding: 28px;
}

.panel-info-card {
  width: 100%;
  height: 100%;
}

.panel-info-card h3 {
  font-size: 1.35rem;
}

.panel-info-card li {
  margin-bottom: 0.7rem;
  color: var(--p-color);
  line-height: 1.55;
}

.panel-info-icon {
  display: grid;
  width: 52px;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--ti-primary-100);
  color: var(--primary-color);
  font-size: 1.45rem;
}

.accordion-item {
  border-color: var(--border-color);
}

.accordion-button {
  color: var(--dark-color);
  font-family: var(--title-font-family);
  font-weight: var(--font-weight-semibold);
}

.accordion-button:not(.collapsed) {
  background: var(--ti-primary-100);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.18rem rgba(53, 89, 222, 0.14);
}

.article-card img.article-image {
  width: 100%;
  max-height: 540px;
  border-radius: var(--border-radius-medium);
  object-fit: cover;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content img,
.article-content iframe {
  max-width: 100%;
}

.related-card .listing-card-body {
  padding: 20px;
}

.news-home-card {
  display: flex;
  flex-direction: column;
}

.news-home-card > a {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.news-home-card .custom-block-image {
  margin-top: auto;
  padding-top: 30px;
}

.news-home-card--compact {
  padding: 22px;
}

.news-home-card--compact h5 {
  font-size: 1rem;
  line-height: 1.4;
}

.news-home-card--compact .news-date-badge {
  width: 54px;
  min-width: 54px;
  height: 54px;
}

.news-home-card--compact .custom-block-image {
  height: 145px;
  padding-top: 22px;
}

[data-load-more-item].is-revealed {
  animation: load-more-reveal 0.42s ease both;
}

@keyframes load-more-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-card {
  line-height: 1.75;
}

.legal-card h5 {
  margin-top: 2rem;
  color: var(--primary-color);
}

.legal-card h5:first-child {
  margin-top: 0;
  color: var(--dark-color);
}

.legal-card ul {
  padding-left: 1.4rem;
}

.home-search-form .input-group {
  border-radius: var(--border-radius-large);
  background: var(--white-color);
  box-shadow: 0 22px 55px rgba(23, 39, 101, 0.22);
  padding: 10px 15px;
}

.home-search-form .input-group-text {
  border: 0;
  background: transparent;
}

.home-search-form input[type="search"] {
  margin-bottom: 0;
  padding-left: 0;
  border: 0;
  box-shadow: none;
}

.home-search-form input[type="search"]:focus {
  box-shadow: none;
}

.home-search-form button[type="submit"] {
  max-width: 150px;
  margin-bottom: 0;
  border: 0;
  border-radius: var(--border-radius-large) !important;
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.home-search-form button[type="submit"]:hover,
.home-search-form button[type="submit"]:focus {
  background-color: #b90756;
}

.search-result-type {
  color: var(--secondary-color);
  font-size: 0.78rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1090;
  width: min(390px, calc(100vw - 48px));
}

.site-toast {
  border: 0;
  border-left: 5px solid var(--primary-color);
  border-radius: var(--border-radius-small);
  background: var(--white-color);
  box-shadow: 0 18px 42px rgba(23, 39, 101, 0.18);
}

.site-toast.is-error {
  border-left-color: var(--secondary-color);
}

@media (max-width: 991.98px) {
  .inner-page-hero.hero-section {
    min-height: 390px;
  }

  .content-card,
  .form-card,
  .legal-card,
  .article-card {
    padding: 28px;
  }
}

@media (max-width: 767.98px) {
  .inner-hero-shell {
    border-radius: 0 0 48px 48px;
  }

  .inner-page-hero.hero-section {
    min-height: 340px;
    padding-top: 130px;
    padding-bottom: 75px;
  }

  .inner-content-section {
    padding-top: 65px;
    padding-bottom: 75px;
  }

  .content-card,
  .form-card,
  .legal-card,
  .article-card {
    padding: 22px;
  }

  .team-card img {
    width: 145px;
    height: 145px;
  }

  .study-card-actions .btn {
    flex: 1;
  }
}
