/* Contenedor principal fijo y centrado con escalado */
.main-fixed-container {
  width: 100%;
  height: 100%;
  /* margin: 40px auto; */
  box-shadow: 0 0 24px #0002;
  overflow: auto;
  background: #f8fafc;
  transition: transform 0.2s;
}
/* Estilos personalizados extraídos de index.html */
/* 
body,
html {
  font-family: "Inter", sans-serif;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #f0f4f8;
}
@media (min-width: 1024px) {
  body,
  html {
    overflow: hidden;
  }
  .flex > aside,
  .flex > nav,
  .flex > main {
    height: 100vh;
  }
} */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #222; /* Opcional: bandas negras */
}
.wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.containerMio {
  display: flex;
  aspect-ratio: 5/3; /* Siempre horizontal */
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  height: auto;
  box-shadow: 0 0 24px #0002;
  /* border-radius: 1.5rem; */
  overflow: hidden;
  background: #fff;
}
/* --- Estilo para cada Columna --- */
.column {
  flex: 1; /* Cada columna tomará una fracción igual del espacio disponible */
}

.left-column {
  background: #002f54;
  min-height: 100%;
  height: 100%;
  /* border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}
@keyframes bgFadeInDown {
  from {
    opacity: 0;
    background-position: center top;
  }
  to {
    opacity: 1;
    background-position: center center;
  }
}

.top-section {
  background-image: url("../images/cardImage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60%;
  padding-top: 2rem;
  opacity: 0; /* Oculto por defecto */
}

.top-section.show-bg {
  animation: bgFadeInDown 1.2s ease-out forwards;
  opacity: 1;
}
.top-section-text {
  font-size: 3rem;
}
.top-section-text2 {
  font-size: 1.5rem;
}
@keyframes fadeInUpSection {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bottom-section {
  background: #002f54;
  /* border-bottom-left-radius: 1.5rem; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 40%;
  padding: 2rem;
  font-size: 1.25rem;
  opacity: 0; /* Oculto por defecto para animar */
  transition: opacity 0.3s;
}
.bottom-section.show-bottom {
  animation: fadeInUpSection 1s ease-out forwards;
  opacity: 1;
}
.nav-central {
  background-color: #eafafc;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  gap: 4rem;
  min-height: 100%;
  padding-top: 8rem;
}

.nav-central-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  transition: background 0.2s;
}
.nav-central-btn:focus,
.nav-central-btn.active {
  background: #e0f2ff;
}
.nav-central-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #002f54;
  border-radius: 9999px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  box-shadow: 0 2px 8px rgba(0, 47, 84, 0.08);
}
.nav-central-icon img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.nav-central-text {
  font-weight: 700;
  color: #002f54;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-align: left;
}
.nav-central-btn:hover .nav-central-icon {
  background: #003a7a;
}
.nav-central-btn:focus .nav-central-icon {
  background: #003a7a;
}
.nav-central-btn:active .nav-central-icon {
  background: #003a7a;
}
.nav-central-btn:focus .nav-central-text,
.nav-central-btn.active .nav-central-text {
  color: #003a7a;
}
.nav-central-btn:active .nav-central-text {
  color: #003a7a;
}
.nav-central-btn .nav-central-text {
  margin-left: 0.5rem;
}
.nav-central-bottom {
  margin-top: auto;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #d4f2f6;
  width: 100%;
  position: absolute;
  bottom: 0;
}
.nav-central-bottom .text-5xl {
  color: #1e3a8a;
}
.nav-central-bottom .font-bold {
  color: #002f54;
}

.carousel-container {
  background-color: #002f54;
  border-radius: 0rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: visible;
}
.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
  /* height: 50vh; */
  margin: 0 auto;
  perspective: 1200px;
}
.carousel-images img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 450px;
  height: 100%;
  /* height: 48vh; */

  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
  transition: opacity 0.5s, transform 0.5s, z-index 0s;
  z-index: 1;
}
.carousel-images img.visible {
  opacity: 1;
  z-index: 3;
  transform: translateX(-50%) scale(1);
}
.carousel-images img.prev,
.carousel-images img.next {
  opacity: 0.6;
  z-index: 2;
  transform: translateX(-140%) scale(0.85) rotateY(15deg);
}
.carousel-images img.next {
  transform: translateX(40%) scale(0.85) rotateY(-15deg);
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s;
  z-index: 10;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Elimina el padding para evitar ovalado */
}
.carousel-button:hover,
.carousel-button:focus {
  background-color: #002f54;
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.18);
}
.carousel-button.prev {
  left: 0;
}
.carousel-button.next {
  right: 0;
}
.bottom-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333;
  margin-top: auto;
  padding: 1rem;
}
.bottom-logo-section img {
  padding-bottom: 2rem;
}
.digital-solution-text {
  color: #1e3a8a !important;
  font-size: 1.5rem;
  font-weight: bold;
}
.social-icons img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.social-icon {
  color: #1e3a8a;
  font-size: 2rem;
  transition: color 0.3s;
}
.social-icon:hover {
  color: #3b82f6;
}
#additional-text-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background-color: rgba(0, 47, 84, 0.48); /* Más transparente */
  color: #eafafc;
  /* border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem; */
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
  z-index: 15;
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  font-family: "Inter", "Segoe UI", "Arial", sans-serif;
  font-style: italic;
  font-weight: 400;
  height: auto;
  max-height: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 1.2rem; */
  backdrop-filter: blur(2px);
}
#additional-text-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#toggle-text-button {
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 9999px;
  padding: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
  z-index: 16;
}
#toggle-text-button:hover {
  background-color: #2563eb;
}
#toggle-text-button svg {
  transition: transform 0.3s ease-in-out;
}
.rotation-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1e3a8a;
  color: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 1.5rem;
  z-index: 100;
}
.rotation-message svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}
/* @media screen and (max-width: 1023px) and (orientation: portrait) {
  .rotation-message {
    display: flex;
  }
  body > .flex {
    display: none;
  }
} */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #002f5480;
  z-index: 100;
  display: none;
}
#popup-overlay.open {
  display: block;
}
#content-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #002f54;
  color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 101;
  min-width: 340px;
  max-width: 90vw;
  width: 400px;
  padding: 2rem 2rem 1.5rem 2rem;
  display: none;
}
#content-popup.open {
  display: block;
}
#content-popup h2,
#content-popup p {
  color: #fff;
}
#close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}
#content-popup {
  animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
#w60 {
  width: 20rem;
}
@media (max-width: 1500px), (max-height: 700px) {
  .nav-central {
    padding-top: 1rem;
    gap: 1rem;
  }
  .nav-central-bottom {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .bottom-logo-section {
    padding-top: 0rem;
  }
  .bottom-logo-section img {
    padding-bottom: 0rem;
  }
  .digital-solution-text {
    font-size: 1rem;
  }
  .top-section-text {
    font-size: 2.2rem;
  }
  .top-section-text2 {
    font-size: 1.1rem;
  }
  .bottom-section {
    font-size: 1rem;
  }
}

/* Pantallas medianas */
@media (max-width: 1500px), (max-height: 900px) {
  .digital-solution-text {
    font-size: 1.2rem;
  }
  .nav-central-text {
    font-size: 1rem;
  }
  .nav-central-text {
    font-size: 1rem;
  }
  .bottom-logo-section {
    padding-top: 1.5rem;
  }
  .nav-central {
    padding-top: 4rem;
    gap: 2rem;
  }
  .top-section-text {
    font-size: 2.2rem;
  }
  .top-section-text2 {
    font-size: 1.1rem;
  }
  .bottom-section {
    font-size: 1rem;
  }
}

/* Pantallas pequeñas */
@media (max-width: 1000px), (max-height: 700px) {
  .digital-solution-text {
    font-size: 1rem;
  }
  .nav-central-text {
    font-size: 0.7rem;
  }

  .bottom-logo-section {
    padding-top: 1rem;
  }
  .nav-central {
    padding-top: 1rem;
    gap: 1rem;
  }
  .top-section-text {
    font-size: 1.5rem;
  }
  .top-section-text2 {
    font-size: 0.9rem;
  }
  .bottom-section {
    font-size: 0.85rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 600px), (max-height: 500px) {
  .digital-solution-text {
    font-size: 0.85rem;
  }
  .nav-central-text {
    font-size: 0.5rem;
  }

  .bottom-logo-section {
    padding-top: 0.5rem;
  }
  .nav-central {
    padding-top: 0.5rem;
    gap: 0.5rem;
  }
  .top-section-text {
    font-size: 1.1rem;
  }
  .top-section-text2 {
    font-size: 0.7rem;
  }
  .bottom-section {
    font-size: 0.7rem;
  }
}
@media (orientation: landscape) {
  .containerMio {
    max-height: 90vh;
  }
  .wrapper {
    height: 90vh;
  }
}
