/* Reset y base */
*,
*::before,
*::after {  box-sizing: border-box;}

html, body {
  height: 100%;
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  background-color: #ffffff;
  color: #333;
}

/* Contenedor principal */
.page-wrapper {  min-height: 100%;  display: flex;  flex-direction: column;}

/* ------------------- */
/* Header (prefijo ust-) */
/* ------------------- */
.ust-header {  width: 100%;   border-bottom: 1px solid #ccc;  position: relative;
background: #ffffff;
background: radial-gradient(circle, rgba(255, 255, 255, 1) 29%, rgba(224, 224, 224, 1) 100%);
}
.ust-header-inner {  max-width: 890px;  margin: 0 auto;  display: flex;  justify-content: space-between;  align-items: center;  padding: 15px;}
.ust-logo {  font-weight: bold;  font-size: 16px;}
.ust-logo img { width: 305px; }
.ust-logout {  background-color: #d9534f;  color: white;  border: none;  padding: 0.5rem 1rem;  font-size: 13px;  border-radius: 4px;  cursor: pointer;}

/* ------------------- */
/* Contenido central limitado a 890px */
/* ------------------- */
.main-content {  flex: 1;  width: 100%;  max-width: 890px;  margin: 0 auto;  padding: 2rem;  display: flex;  flex-direction: column;  gap: 1.5rem;}

/* Títulos (renombrados a titulos) */
.titulos h1 {  font-size: 18px;  color: #222;  margin-bottom: 0.5rem;}
.titulos h2 {  font-size: 14px;  color: #444;  margin-bottom: 0.5rem;}
.titulos h3 {  font-size: 13px;  color: #666;  margin-bottom: 0.5rem;}

/* Texto normal */
.text-block p {  margin: 0.5rem 0;  color: #333;}
.size11 {font-size: 11px;}
.size12 {font-size: 12px;}
.topesp { margin-top: 15px; }


/* ------------------- */
/* Estatua Asesores */
/* ------------------- */
.ustseleccion {  width: 100%;     min-height: 599px;  display: flex;  align-items: center;  padding: 2rem 0;  background-image: url("imgs/fondo.webp");  background-size: cover;   background-position: center;  background-repeat: no-repeat;}
.ustseleccion-inner {  max-width: 890px;   margin: 0 auto;    width: 100%;  display: flex;  justify-content: flex-end; 	padding: 20px; }
.ustseleccion-text {  width: 390px;     background-color: rgba(255, 255, 255, 0.8);  padding: 1.5rem;  border-radius: 6px;}
.ustseleccion-titulo {  font-size: 20px;  color: #222;  margin-bottom: 1rem;}
.ustseleccion-descripcion {  font-size: 14px;  color: #444; line-height: 1.5;}

/* ------------------- */
/* Menú Basico */
/* ------------------- */
.ust-micromenu {  display: flex;  gap: 10px;  align-items: center;}
.ust-link { display: flex; align-items: center;  color: #1c274c; text-decoration: none;  font-size: 13px;  padding: 0.4rem 0.6rem;  transition: background-color 0.3s ease, color 0.3s ease;}
.ust-link:hover {  background-color: #1c274c;  color: #fff; }
.ust-icon {  display: flex;  align-items: center;  justify-content: center;  margin-right: 6px;}
.ust-link img {  display: block;  width: 24px;  height: 24px;  transition: filter 0.3s ease;}
.ust-link:hover img {  filter: brightness(0) invert(1); }

/* ------------------- */
/* Menú hamburguesa (prefijo hamburguer-) */
/* ------------------- */
.hamburguer-toggle {  display: none;}
.hamburguer-btn {  display: none;  font-size: 30px;  cursor: pointer;  background: none;  border: none;  position: absolute;  right: 20px;  top: 20px;}
.hamburguer-toggle:checked ~ .hamburguer-menu {  left: 0;}
.hamburguer-menu {  position: fixed;  top: 0;  left: -100%;  width: 100%;  height: 100%;  display: flex;  flex-direction: column; padding: 1rem;  transition: left 0.3s ease;  z-index: 1000; background: #ffffff; background: radial-gradient(circle, rgba(255, 255, 255, 1) 29%, rgba(224, 224, 224, 1) 100%);}
.hamburguer-header {  font-weight: bold;  margin-bottom: 25px;  display: flex;  justify-content: space-between;  align-items: center;}
.hamburguer-links {  list-style: none;  padding: 0;  margin: 0;}
.hamburguer-links li {  margin: 0;}
.hamburguer-links a {  display: flex;  align-items: center;  text-decoration: none;  color: #333;  font-size: 14px;  padding: 0.75rem 1rem;  background-color: #e0e0e0;  transition: background-color 0.3s ease, color 0.3s ease;}
.hamburguer-links a:hover {  background-color: #1c274c;  color: #fff;}
.hamburguer-links a:hover img {  filter: brightness(0) invert(1);}
.hamburguer-links img {  transition: filter 0.3s ease;}
.hamburguer-icon {  display: flex;  align-items: center;  justify-content: center;  margin-right: 8px;}
.hamburguer-icon img {  display: block;  width: 20px;  height: 20px;}
.hamburguer-space {  text-align: center;  margin: 1rem 0;  color: #666;}
.hamburguer-close {  position: absolute;  top: 25px;  right: 25px;  font-size: 24px;  cursor: pointer;  background: none;  border: none; color: #1c274c;}
.hamburguer-footer {  margin-top: auto;  font-size: 13px;  color: #444;  text-align: center; }
.hamburguer-section {  margin-top: 1rem;}
.hamburguer-title {  display: flex;  align-items: center;  justify-content: center;  gap: 7px;  margin-bottom: 5px;}
.hamburguer-title img {  width: 20px;  height: 20px;  display: block;}
.hamburguer-title h4 {  font-size: 12px;  color: #737373;  margin: 0;}
.hamburguer-section p {  color: #737373;  margin: 2px 0;}
.hamburguer-section a {  color: #3b6fac;  text-decoration: none;  display: inline-block;   padding: 4px 0;}
.hamburguer-section a:hover {  text-decoration: underline;}


/* ------------------- */
/* PreFooter */
/* ------------------- */
.gray-block { width: 100%;  background: #F1F1F1; background: radial-gradient(circle, rgba(241, 241, 241, 1) 8%, rgba(242, 240, 240, 1) 100%); padding: 10px 0px;}
.gray-inner {  max-width: 890px;  margin: 0 auto;  padding: 0px 0px;}


/* ------------------- */
/* Footer Cajas */
/* ------------------- */.ust-cajas {  width: 100%;}
.ust-cajas-inner {  max-width: 890px;  margin: 0 auto;  display: flex;  flex-wrap: wrap;  gap: 0px;}
.ust-caja {  flex: 1 1 calc(25% - 1rem);   gap: 10px; padding:10px 20px; }
.ust-caja-titulo {  display: flex;  align-items: center;  gap: 7px;  margin-bottom: 5px;}
.ust-caja-titulo img {  width: 20px;  height: 20px;  display: block;}
.ust-caja-titulo.topesp {margin-top: 15px;}
.ust-caja h3 {  font-size: 13px;  color: #737373;  margin: 0;}
.ust-caja h4 {  font-size: 12px;  color: #737373;  margin-top: 0px;  margin-bottom: 0px;}
.ust-caja p {  color: #737373;  margin: 2px 0;}
.ust-caja ul {  padding-left: 1rem;  margin: 0.5rem 0;}
.ust-caja li {  font-size: 12px;  margin-bottom: 0.3rem;}
.ust-caja a {  color: #3b6fac;  text-decoration: none;}
.ust-caja a:hover {  text-decoration: underline;}
.ust-caja.small {  flex: 1 1 calc(18% - 1rem); }
.caja1 { order: 1; font-size: 11px; } /* Aviso */
.caja2 { order: 2; font-size: 11px;} /* Web */
.caja3 { order: 3; } /* Soporte */
.caja4 { order: 4; } /* Legal */

/* ------------------- */
/* Footer (prefijo ust-) */
/* ------------------- */
.ust-footer {  width: 100%;  background-color: #e0e0e0;  text-align: center;  padding: 1rem;   font-size: 12px;  color: #666;}



/* ------------------- */
/* Carrusel */
/* ------------------- */
.carrusel-wrapper { position: relative; max-width: 100%; margin: auto; }
.carrusel-container { overflow: hidden; }
.carrusel-track { display: flex; scroll-behavior: smooth; }
.carrusel-package { width: 280px; flex-shrink: 0; margin: 8px; padding: 0; background: #dbeaf3; color: #333; border: 1px solid #ddd; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.carrusel-package h3 { display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 10px; margin: 0; font-weight: bold; color: #1c274c; gap: 8px; background-color: #c3d4dd; }
.carrusel-package h3 img {  width: 20px;  height: 20px;  flex-shrink: 0;}
.carrusel-package ul { list-style: none; padding: 0 15px; margin: 0; }
.carrusel-package li { display: flex; justify-content: space-between; align-items: flex-start; font-size: 12px; padding: 8px 0; border-bottom: 1px solid #9eb0b8; }
.icon-ok, .icon-no { display: inline-block; width: 18px; height: 18px; margin-left: 8px; background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0; }
.icon-ok { background-image: url("imgs/carrusel_ok.svg"); }
.icon-no { background-image: url("imgs/carrusel_no.svg"); }
.carrusel-package .precio { margin-top: auto; text-align: center; font-weight: bold; font-size: 12px; padding: 10px; background-color: #4f637c; color: #fff; }
.carrusel-package.competencia { background: #f2f2f2; color: #333; }
.carrusel-package.competencia h3 { color: #c75c5c; background-color: #e9e9e9; }
.carrusel-package.competencia li { border-bottom: 1px solid #bdbdbd; }
.carrusel-package.competencia .precio { background-color: #666666; }
.carrusel-nav-buttons { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.carrusel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 35px; height: 35px; background: rgba(0,0,0,0.3); border: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; }
#btn-left { left: 0; background-image: url("imgs/carrusel_atras.svg"); background-repeat: no-repeat; background-position: center; background-size: 20px 20px; }
#btn-right { right: 0; background-image: url("imgs/carrusel_adelante.svg"); background-repeat: no-repeat; background-position: center; background-size: 20px 20px; }


.overlay-icon {
  width: 60px;
  height: 60px;
  opacity: 0;
}

.play-animation {
  animation: moveFade 2.5s ease-in-out forwards;
}

@keyframes moveFade {
  0%   { transform: translateX(0); opacity: 1; }
  25%  { transform: translateX(-50px); opacity: 1; }
  75%  { transform: translateX(100px); opacity: 1; }
  100% { transform: translateX(100px); opacity: 0; }
}

.carrusel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 1;
}

.fade-animation {
  animation: fadeOutOverlay 1s ease forwards;
  animation-delay: 2.5s;
}

@keyframes fadeOutOverlay {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}



/* ------------------- */
/* Responsive */
/* ------------------- */
@media screen and (min-width : 650px) and (max-width : 750px) {
.ust-logo img { width: 260px; }
.ust-caja,  .ust-caja.small {    flex: 1 1 calc(50% - 1rem); /* 2 por fila */  }
.caja1 { order: 1; } /* Aviso */
.caja2 { order: 3; } /* Web */
.caja3 { order: 2; } /* Soporte */
.caja4 { order: 4; } /* Legal */

}
@media screen and (min-width : 550px) and (max-width : 650px) {
.ust-micromenu {display: none;}
.ust-logo img { width: 250px; }
.hamburguer-btn {    display: block;  }
.ustseleccion-text {  width: 100%; }
.ustseleccion {  background-position: 45% 0%; }
.ust-caja,  .ust-caja.small {    flex: 1 1 calc(50% - 1rem); /* 2 por fila */  }
.caja1 { order: 1; } /* Aviso */
.caja2 { order: 3; } /* Web */
.caja3 { order: 2; } /* Soporte */
.caja4 { order: 4; } /* Legal */
}
@media screen and (min-width : 390px) and (max-width : 550px) {
.carrusel-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.carrusel-container::-webkit-scrollbar { display: none; }
.ust-micromenu {display: none;}
.ust-logo img { width: 240px; }
.ust-header-inner { padding: 10px;}
.ustseleccion {  background-position: 45% 0%; }
.ustseleccion-text {  width: 100%; }
.ust-logout {    display: none;  }
.hamburguer-btn {    display: block;  }
.main-content {    padding: 1rem;  }
.ust-footer {    font-size: 11px;  }
.ust-caja,  .ust-caja.small {    flex: 1 1 100%; /* 1 por fila */  }
.gray-block {padding:0px 0px;}
.caja1 { order: 4; background: #F2F0F0; background: radial-gradient(circle, rgba(242, 240, 240, 1) 17%, rgba(209, 208, 205, 1) 100%); padding: 20px; border-top: 1px solid #c9c9c9; border-bottom: 1px solid #c9c9c9;  } /* Aviso */
.caja2 { order: 3; } /* Web */
.caja3 { order: 1; border-bottom: 1px dashed #c3c3c3; border-top: 1px solid #e2e2e2;} /* Soporte */
.caja4 { order: 2; border-bottom: 1px dashed #c3c3c3;} /* Legal */
}
@media screen and (max-width: 390px) {
.carrusel-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.carrusel-container::-webkit-scrollbar { display: none; }
.ust-micromenu {display: none;}
.ust-logo img { width: 240px; }
.ust-header-inner { padding: 10px;}
.ustseleccion {  background-position: 41% 0%; }
.ustseleccion-text {  width: 100%; }
.ust-logout {    display: none;  }
.hamburguer-btn {    display: block;  }
.main-content {    padding: 1rem;  }
.ust-footer {    font-size: 11px;  }
.ust-caja,  .ust-caja.small {    flex: 1 1 100%; /* 1 por fila */  }
.gray-block {padding:0px 0px;}
.caja1 { order: 4; background: #F2F0F0; background: radial-gradient(circle, rgba(242, 240, 240, 1) 17%, rgba(209, 208, 205, 1) 100%); padding: 20px; border-top: 1px solid #c9c9c9; border-bottom: 1px solid #c9c9c9;  } /* Aviso */
.caja2 { order: 3; } /* Web */
.caja3 { order: 1; border-bottom: 1px dashed #c3c3c3; border-top: 1px solid #e2e2e2;} /* Soporte */
.caja4 { order: 2; border-bottom: 1px dashed #c3c3c3;} /* Legal */
}