/* Custom overrides: equalize image heights for sliders and demo cards */

/* Slider images: make them same height and cover the area */
.mxd-demo-swiper .demo-swiper-slide__image,
.mxd-demo-swiper .demo-swiper-slide__image img {
  width: 100%;
  height: 760px;
  object-fit: cover;
  display: block;
}

/* If using the image wrapper as link, ensure it's a block-level element */
.mxd-demo-swiper .demo-swiper-slide__image {
  display: block;
  overflow: hidden;
}

/* Make slide description vertically align if needed */
.mxd-demo-swiper__slide .demo-swiper-slide__descr {
  min-height: 60px;
}

/* Responsive heights */
@media (max-width: 1200px) {
  .mxd-demo-swiper .demo-swiper-slide__image,
  .mxd-demo-swiper .demo-swiper-slide__image img {
    height: 300px;
  }
}
/* ============================================================================ */
/* Mobile overrides (merged from overrides-mobile.css)                             */
/* Ensures the cursos layout shows as 2 columns x N filas on narrow screens       */
/* ============================================================================ */
@media (max-width: 1199px) {
  .grid-curso {
    margin-top: 0rem !important;
  }

  /* Contenedor general: cuadrícula de 2 columnas */

  .blog-preview-image-1 img {
    height: 100% !important;
  }

  .mxd-blog-preview {
    grid-template-columns: repeat(2, 1fr);
    box-sizing: border-box;
    justify-items: center;
  }

  .mxd-blog-preview-2 {
    display: grid !important;
  }

  /* Tarjeta individual */
  .mxd-blog-preview .mxd-blog-preview__item {
    width: 100%;
    box-sizing: border-box;
  }

  /* Contenedor de la imagen con proporción fija */
  .mxd-blog-preview .mxd-blog-preview__media {
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
  }

  /* Imagen adaptada al contenedor */
  .mxd-blog-preview .mxd-blog-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Nombre del curso */
  .mxd-blog-preview .mxd-blog-preview__data {
    text-align: center;
    padding: 0.5rem 0;
  }

  .mxd-blog-preview .mxd-blog-preview__data span {
    font-size: clamp(1.5rem, 3vw, 2rem);
    display: block;
    line-height: 1.25;
  }

  /* Quitar filas fijas de Bootstrap */
  .mxd-blog-preview .container-fluid,
  .mxd-blog-preview .row {
    display: contents !important;
  }
}

@media (max-width: 768px) {
  .mxd-demo-swiper .demo-swiper-slide__image,
  .mxd-demo-swiper .demo-swiper-slide__image img {
    height: 220px;
  }
}

/* Optional: equalize demo cards / list thumbnails (uncomment if you want same treatment) */
/*.mxd-demo-list__item img,
.mxd-demo-cards__image img {
  width:100%;
  height:300px;
  object-fit:cover;
  display:block;
}*/

/* Footer social icons: color adapts to theme (light/dark) */
.mxd-footer-nav__list .footer-social-link {
  color: #111; /* default for light mode */
  background: transparent; /* minimal */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
}

/* Dark mode: make icons white */
[color-scheme="dark"] .mxd-footer-nav__list .footer-social-link {
  color: #fff;
}

/* Ensure SVG uses currentColor and scale nicely */
.mxd-footer-nav__list .footer-social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Container for icons */
.mxd-footer-nav__list .footer-social-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Hover/focus: subtle lift and color change */
.mxd-footer-nav__list .footer-social-link:hover,
.mxd-footer-nav__list .footer-social-link:focus {
  transform: translateY(-2px);
  transition:
    transform 0.12s ease,
    opacity 0.12s ease;
  opacity: 0.95;
}

/* Contenedor de las tarjetas */
.mxd-demo-list__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 40px;
}

/* Tarjeta individual */
.mxd-demo-list__item {
  flex: 1 1 45%; /* ambas ocupan aprox. la mitad del ancho */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: justify;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  min-width: 320px;
}

/* Imagen */
.mxd-demo-list__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Título + ícono */
.mxd-demo-list__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.mxd-demo-list__link {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.mxd-demo-list__link i {
  margin-right: 6px;
}

.mxd-demo-list__link--light,
.mxd-demo-list__link--light i {
  color: #111 !important;
}

/* Texto del párrafo */
.mxd-demo-list__item p {
  min-height: 80px;
  margin-top: 15px;
  color: #555;
  line-height: 1.5;
}

/* Responsivo */
@media (max-width: 768px) {
  .mxd-demo-list__item {
    flex: 1 1 100%;
    max-width: 500px;
  }

  .mxd-demo-list__row {
    gap: 20px;
  }
}

.seccion-title {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.acerca-inicio {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.acerca-cover {
  height: 60vh;
  width: auto;
}

.post-simple__btn a:hover .ph-facebook-logo {
  color: #1877f2;
}
.post-simple__btn a:hover .ph-instagram-logo {
  color: #e1306c;
}

.post-simple__btn .btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.post-simple__btn a i {
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.post-simple__btn a:hover i {
  transform: scale(1.2);
}

.swiper-testimonials {
  overflow: visible !important;
}

.swiper-slide {
  transition: transform 0.3s ease;
}

.swiper-slide img {
  width: 100%;
  border-radius: 10px;
  transition: all 0.3s ease;
}

@media only screen and (min-width: 400px) {
  .inicio-img-cover {
    padding-top: 2vh;
    height: 93vh;
    object-fit: cover;
  }
}

@media only screen and (min-width: 500px) {
  .inicio-img-cover {
    padding-top: 0;
    height: 100vh;
    object-fit: cover;
  }
}

@media only screen and (min-width: 769px) {
  .inicio-img-cover {
    padding-top: 0;
    height: 100vh;
    object-fit: cover;
  }
}

@media only screen and (min-width: 1000px) {
  .inicio-img-cover {
    padding-top: 0;
    height: 100vh;
    object-fit: cover;
  }
}

@media only screen and (min-width: 1200px) {
  .inicio-img-cover {
    width: 90%;
    padding-top: 0;
    height: 100vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
}

@media only screen and (min-width: 1400px) {
  .inicio-img-cover {
    width: 90%;
    padding-top: 1vh;
    height: 100vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
}

@media only screen and (min-width: 1600px) {
  .inicio-img-cover {
    width: 90%;
    margin-top: 0;
    height: 90vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
}

.dark-cover {
  filter: brightness(0.4) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

@media only screen and (min-width: 400px) {
  .inicio-container {
    height: 95vh;
    padding-top: 12rem;
  }
}

@media only screen and (min-width: 500px) {
  .inicio-container {
    height: 95vh;
    padding-top: 17rem;
  }
}

@media only screen and (min-width: 769px) {
  .inicio-container {
    height: 95vh;
    padding-top: 16rem;
  }
}

@media only screen and (min-width: 1000px) {
  .inicio-container {
    height: 95vh;
    padding-top: 15rem;
  }
}

@media only screen and (min-width: 1200px) {
  .inicio-container {
    height: 95vh;
    padding-top: 12rem;
  }
}

@media only screen and (min-width: 1400px) {
  .inicio-container {
    height: 95vh;
    padding-top: 10rem;
  }
}

@media only screen and (min-width: 1600px) {
  .inicio-container {
    height: 95rem;
    padding-top: 5rem;
  }
}

@media (min-width: 1520px) {
  .servicios-temario {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 41.66666667%;
  }
}

@media only screen and (min-width: 500px) {
  .mxd-hero-00__top.marquee {
    padding-top: none !important;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 768px) {
  .mxd-hero-00__top.marquee {
    padding-right: 8.5rem;
    padding-top: none !important;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-hero-00__top.marquee {
    padding-right: 13.5rem;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 1600px) {
  .mxd-hero-00__top.marquee {
    padding-right: 15rem;
    /* padding-bottom: 14.8rem; */
  }
}

/* Logo Theme Switching Styles */
.mxd-logo__light {
  display: none;
}

.mxd-logo__dark {
  display: inline-block;
}

/* Light theme - show black logo */
[color-scheme="light"] .mxd-logo__light {
  display: inline-block;
}

[color-scheme="light"] .mxd-logo__dark {
  display: none;
}

/* Dark theme - show white logo */
[color-scheme="dark"] .mxd-logo__light {
  display: none;
}

[color-scheme="dark"] .mxd-logo__dark {
  display: inline-block;
}

@media only screen and (max-width: 450px) {
  .hero-00-title.inicio-title-marquee {
    padding-top: 0 !important;
    font-size: 4rem !important;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 500px) {
  .hero-00-title.inicio-title-marquee {
    padding-top: 0 !important;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 768px) {
  .hero-00-title.inicio-title-marquee {
    padding-left: 9rem;
    padding-top: 0 !important;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 1200px) {
  .hero-00-title.inicio-title-marquee {
    padding-left: 14rem;
    /* padding-bottom: 14.8rem; */
  }
}

@media only screen and (min-width: 1600px) {
  .hero-00-title.inicio-title-marquee {
    padding-left: 17rem;
    /* padding-bottom: 14.8rem; */
  }
}

/* @media only screen and (min-width: 200px) {
  .mxd-demo-components__title.title-contacto {
    padding-top: 10rem !important;
  }
} */

@media only screen and (max-width: 773px) {
  .mxd-demo-components__title.title-contacto {
    padding-top: 7rem !important;
  }
}

.mxd-demo-footer__item {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.mxd-blog-preview__media {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mxd-blog-preview__media img {
  transition: filter 0.5s ease;
}

/* Contenedor del texto oculto inicialmente */
.mxd-preview-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* capa oscura */
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* Hover: solo oscurece la imagen y muestra el texto */
.mxd-blog-preview__media:hover img {
  filter: brightness(0.5);
}

.mxd-blog-preview__media:hover .mxd-preview-hover {
  opacity: 1;
}

.mxd-hero-00__top.title-section {
  justify-content: flex-start;
  padding-left: 15%;
}

@media only screen and (max-width: 768px) {
  .mxd-hero-00__top.title-section {
    justify-content: flex-start;
    padding-left: 0%;
  }
}

.color-texto-inicio {
  color: #1d86a6 !important;
}

@media only screen and (max-width: 440px) {
  #mxd-page-content
    > div.mxd-section.overflow-hidden.padding-pre-title
    > div
    > div
    > div
    > div
    > div
    > div.col-12.col-xl-7.mxd-services-cards__item.mxd-grid-item.anim-uni-scale-in-right {
    padding: 0 !important;
  }
  #mxd-page-content
    > div.mxd-section.overflow-hidden.padding-pre-title
    > div
    > div
    > div
    > div
    > div
    > div.col-12.col-xl-5.mxd-services-cards__item.mxd-grid-item.anim-uni-scale-in-left {
    padding: 0 !important;
  }
}

@media only screen and (max-width: 500px) {
  .container,
  .container-fluid,
  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 95%;
    padding-right: -moz-calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: -moz-calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
  }
}

@media only screen and (max-width: 578px) {
  /* No escales todo el botón, solo ajusta su texto e ícono */
  .mxd-grid-item.no-margin .mxd-section-title__controls .btn {
    transform: none;
    transition: none;
  }

  /* Texto del botón más pequeño */
  .mxd-grid-item.no-margin .mxd-section-title__controls .btn .btn-caption {
    font-size: 1.9rem !important;
    letter-spacing: 0.5px;
  }

  /* Ícono un poco más pequeño también, si quieres */
  .mxd-grid-item.no-margin .mxd-section-title__controls .btn i {
    font-size: 2rem;
  }
}


@media only screen and (max-width: 768px) {
  .mxd-project-item__promo {
    padding: 0 !important;
  }

  .mxd-project-item__promo p {
    font-size: medium !important;
  }
}

.mxd-hero-08__wrap {
  position: relative;
  background-image: url("../img/inicio-cover.jpeg"); /* ruta de la imagen de fondo */
  background-size: cover; /* que cubra todo */
  background-position: center;
  background-repeat: no-repeat;
  /* height: 100vh; */
  width: 100%;
}

.btn-yellow {
  background-color: #ecaf2a;
  color: #000;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-yellow .btn-caption,
.btn-yellow i {
  color: #000;
}

.btn-yellow:hover {
  background-color: #f5c94f;
}

@media (max-width: 640px) {
  .btn-caption {
    font-size: 2.5rem !important;
  }
}

.success-msg {
  display: none;
  margin-left: 2rem;
  color: #1d86a6;
  font-weight: 500;
  flex: 0 0 50%;
  max-width: 50%;
  text-wrap: pretty;
  text-align: justify;
}

.mxd-tech-stack-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas arriba */
  gap: 2rem; /* espacio entre los elementos */
  justify-items: center;
  align-items: stretch;
  text-align: justify;
}

.mxd-tech-stack-cards__item {
  width: 100%;
}

/* Responsive: en pantallas pequeñas, 1 por fila */
@media (max-width: 768px) {
  .mxd-tech-stack-cards {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* Comportamiento en pantallas medianas, 2 por fila */
@media (min-width: 769px) and (max-width: 1200px) {
  .mxd-tech-stack-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 768px) {
  .marquee__item {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 0.5rem !important;
    width: auto !important;
    max-width: none !important;
  }

  .marquee__link {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
  }

  .marquee__link img {
    display: block !important;
    height: 250px;
    width: auto !important;
    border-radius: 8px !important;
    object-fit: contain !important;
  }

  .marquee__item p {
    margin-top: 4px !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }
}

@media (max-width: 768px) {
  .marquee__link_aux {
    width: 140px !important;
    margin: 0 0.5rem;
  }

  .marquee__link img {
    width: 100%;
    height: auto;
  }

  .marquee__link img {
    aspect-ratio: 3 / 2 !important;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .marquee__link_aux {
    width: 130px !important;
    margin: 0 0.3rem;
  }
}

@media (max-width: 768px) {
  .marquee__item p {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .marquee__link {
    text-decoration: none;
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .marquee__item p {
    font-size: 1rem !important;
    padding-top: 0 !important;
  }

  .marquee__item {
    justify-content: flex-start !important;
  }

  .marquee__link {
    text-decoration: none;
    display: block;
    width: 100%;
    height: auto;
  }
}

/* Estilos para el carrusel de cursos */

/* Botones del carrusel */

.marquee {
  position: relative;
  overflow: hidden;
}

.marquee-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  font-size: 22px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.marquee-btn:hover {
  background-color: rgba(0, 0, 0, 1);
  transform: translateY(-50%) scale(1.1);
}

.marquee-btn--left {
  left: 10px;
}

.marquee-btn--right {
  right: 10px;
}

/* Contenedor de cada curso */
.marquee__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* contenido pegado arriba */
  text-align: center;
  /* height: 260px; */
  box-sizing: border-box;
}

/* Enlace del curso */
.marquee__link {
  text-decoration: none;
  display: block;
  width: 100%;
  /* height: auto; */
}

/* Texto debajo de la imagen */
.curso-nombre {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.bordered-title {
  color: white; /* color interior del texto */
  -webkit-text-stroke: 2px black; /* borde negro alrededor */
  text-decoration: none;
}

@media (max-width: 768px) {
  .marquee__item {
    /* height: 200px; */
  }

  .marquee__link img {
    /* height: 130px; */
  }

  .curso-nombre {
    font-size: 0.85rem;
  }
}

.mxd-tech-stack-cards__title p {
  color: white !important;
}

/* Ajustes para la sección de cursos en pantallas estrechas */

@media (max-width: 500px) {
  .mxd-blog-preview div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1360px) {
  .diferenciadores-title {
    font-size: 6rem !important;
  }
}

/* Menú visible en el header */

/* ===== Estilos del menú fijo ===== */
header .main-menu--inline {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .main-menu--inline .main-menu__list {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== Tamaño de texto del menú fijo ===== */
header .main-menu--inline .btn-caption {
  font-size: clamp(2.6rem, 1vw + 0.6rem, 1rem);
  line-height: 2.4;
  white-space: nowrap; /* evita que se corte el texto */
  display: inline-block;
}

/* ===== Tamaño de texto del submenú ===== */
header .main-menu--inline .submenu__item a {
  font-size: clamp(1.8rem, 0.8vw, 0.95rem);
  line-height: 1.3;
  white-space: nowrap;
}

/* ===== Submenú con blur elegante ===== */
header .main-menu--inline .submenu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header .main-menu--inline {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .main-menu--inline .main-menu__list {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header .main-menu--inline .main-menu__item {
  position: relative;
}

header .main-menu--inline .main-menu__link .btn-caption {
  transition: color 0.2s ease;
}

/* Submenús */
header .main-menu--inline .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  list-style: none;
  padding: 1rem;
  border-radius: 0.75rem;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

header .main-menu--inline .main-menu__item:hover > .submenu {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🎨 Colores según tema */
html[color-scheme="light"]
  header
  .main-menu--inline
  .main-menu__link
  .btn-caption,
html[color-scheme="light"] header .main-menu--inline .submenu__item a {
  color: #111;
}

html[color-scheme="light"] header .main-menu--inline .submenu {
  background: rgba(255, 255, 255, 0.8);
}

html[color-scheme="dark"]
  header
  .main-menu--inline
  .main-menu__link
  .btn-caption,
html[color-scheme="dark"] header .main-menu--inline .submenu__item a {
  color: #fafafa;
}

html[color-scheme="dark"] header .main-menu--inline .submenu {
  background: rgba(20, 20, 20, 0.6);
}

header .main-menu--inline .submenu__item a:hover,
header .main-menu--inline .main-menu__link:hover .btn-caption {
  opacity: 0.7;
}

.header-inicio span {
  color: white !important;
}

/* Ocultar menú fijo en móvil */
@media (max-width: 1420px) {
  header .main-menu--inline {
    display: none !important;
  }
}

/* Tarjetas apilables del inicio */

.mxd-projects-stack__title {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.mxd-projects-stack__title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  z-index: -1;
}

@media (max-width: 417px) {
  .permanent-light.custom-title {
    font-size: 3.5rem !important;
  }
}
