/** Add styles here */
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500&family=Poppins:wght@400;500&display=swap");

/* =============== VARIABLES CSS ============== =*/
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #35bb14;
  --second-color: #00e6c7;
  --gradient-color: linear-gradient(
    75deg,
    var(--second-color) 20%,
    var(--first-color) 66%
  );
  --gradient-color2: linear-gradient(
    75deg,
    var(--first-color) 20%,
    var(--second-color) 66%
  );
  --first-color-light: hsl(260, 88%, 92%);
  --first-color-dark: hsl(0, 0%, 0%);
  --title-color: hsl(260, 80%, 18%);
  --text-color: hsl(260, 24%, 32%);
  --text-color-light: hsl(260, 16%, 65%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: hsl(215, 55%, 96%);
  --container-color: hsl(0, 0%, 100%);
  --select-page: hsl(276, 92%, 54%);
  --button-cancel: hsl(0, 98%, 38%);
  --button-cancel2: hsl(0, 97%, 29%);
  --check--icon: var(--first-color);

  /* ========== Font and typography ========== */
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --second-font: "Lora", serif;
  --biggest-font-size: 1.75rem;
  --bigger-font-size: 2rem;
  --big-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --logo-font-size: 1.9rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /* ========== Font weight ========== */
  --font-regular: 400;
  --font-medium: 500;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* ========== Responsive typography ========== */
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 4rem;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/* =============== BASE =============== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background 0.4s;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--font-regular);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* ================ SELECCIONAR EN LA PAGINA ================ */
::-webkit-selection {
  color: var(--select-page);
  background-color: transparent;
}

::selection {
  color: var(--select-page);
  background-color: transparent;
}

/* =============== THEME =============== */
.NavButtons {
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
}

.ChangeTheme {
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* ========== MODE DARK ========== */
body.dark {
  --title-color: hsl(260, 24%, 85%);
  --text-color: hsl(260, 16%, 70%);
  --body-color: hsl(260, 28%, 12%);
  --container-color: hsl(260, 32%, 24%);
  --select-page: hsl(197, 100%, 50%);
  --check--icon: var(--second-color);
}

.dark .blur-header,
.dark .NavMenu {
  background-color: hsla(0, 0%, 0%, 0.3);
}

.dark::-webkit-scrollbar {
  background-color: var(--body-color);
}

/* =============== REUSABLE CSS CLASSES =============== */
.Container {
  max-width: 1226px;
  margin-inline: 1.6rem;
}

.Grid {
  display: grid;
  gap: 1.5rem;
}

.Main { overflow: visible; /* For animation ScrollReveal */ }

/* =============== HEADER & NAV =============== */
.Header {
  position: fixed;
  width: 100%;
  background-color: var(--body-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background 0.4s;
}

.Nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.LinkNavBar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--logo-font-size);
  font-family: var(--second-color);
  font-weight: var(--font-medium);
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.Logo {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  margin: 0 auto;
  max-width: 150px;
  height: 40px;
  width: auto;
}

.NavToggle,
.NavClose {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 767px) {
  .NavMenu {
    position: fixed;
    top: 0;
    right: -100%;
    background: hsla(0, 0%, 100%, 0.3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right 0.4s;
  }
}

.NavList {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.NavLink {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.Regresar {
  padding: 0.5rem 1rem;
  border: 2px solid var(--first-color);
  color: var(--first-color);
  border-radius: 0.25rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.Regresar:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

/* =============== HOME =============== */
.Home {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.HomeOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.HomeContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.HomeInfo {
  padding: 2rem;
  max-width: 96%;
}

.TitleHome {
  margin-bottom: 1rem;
}


@keyframes doublePulse {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  20% {
    /* Primera pulsación */
    transform: scale(1.1);
  }
  30% {
    transform: scale(1);
  }
  40%,
  50% {
    /* Segunda pulsación */
    transform: scale(1.1);
  }
  60% {
    /* Pausa de 2 segundos */
    transform: scale(1);
  }
}

.ButtonSolicitar:hover {
  background: var(--gradient-color);
}

.ButtonSolicitar i {
  transition: transform 0.3s ease;
}

.ButtonSolicitar:hover i {
  transform: translateX(6px);
}

.DescripcionH {
  font-size: var(--biggest-font-size);
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 900;
}

/* ==================== Beneficios ==================== */
.Beneficios {
  padding-bottom: 3rem;
  padding: 3rem 0;
}

.BeneficiosContent {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.BeneficiosImg {
  order: 1;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.BeneficiosImg img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.InfoBeneficios {
  text-align: left;
}

.TitleBeneficios {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.InfoBeneficios ul {
  padding-left: 20px;
  margin-bottom: 2rem;
}

.InfoBeneficios li {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
}

.InfoBeneficios li::before {
  /* Estilo para el punto */
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  left: -20px;
  top: 8px;
}

.InfoBeneficios span {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.ButtonBeneficios {
  /* Estilos para el botón, similares a antes */
  background-color: var(--first-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.ButtonBeneficios:hover {
  background-color: var(--second-color);
  color: #000;
  transform: scale(1.05);
}

/* =============== Portafolio =============== */
.Requisitos {
  padding-bottom: 3rem;
  padding: 3rem 0;
}

.RequisitosContent {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.TitleRequisitos {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.RequisitosInfo {
  padding-left: 20px;
  margin-bottom: 2rem;
}

.RequisitosInfo li {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
}

.RequisitosInfo li::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  left: -20px;
  top: 8px;
}

.RequisitosInfo span {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.ButtonRequisitos {
  background-color: var(--first-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.ButtonRequisitos:hover {
  background-color: var(--second-color);
  color: #000;
  transform: scale(1.05);
}

.PortafolioImg {
  order: 0;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.PortafolioImg img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*==================== LINEAS DE ATENCION (CONTACTOS) ====================*/
.LineasDeAtencion {
    /* Ajusta el padding para que la sección sea similar a otras, usa variables de tu proyecto si las tienes */
    padding: 7rem 0 4rem; 
    background-color: var(--body-color); /* Fondo de sección */
}

/* Estilo del título principal, reutilizando clases si es posible */
.LineasDeAtencionTitle {
    text-align: center;
    font-size: var(--h1-font-size);
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.LineasDeAtencionSubtitle {
    text-align: center;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: var(--font-medium);
}

/* Contenedor principal de la cuadrícula (Responsive con CSS Grid) */
.ContactosGrid {
    display: grid;
    /* Crea columnas que se ajustan automáticamente. Mínimo de 280px por columna. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem;
}

/* Estilo de la tarjeta de contacto */
.ContactoCard {
    background-color: var(--container-color); /* Color de fondo de las tarjetas (blanco/gris claro) */
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--hue), 30%, 20%, .1); /* Sombra suave */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color); /* Borde sutil */
}

.ContactoCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px hsla(var(--hue), 30%, 20%, .2);
}

.CardArea {
    font-size: var(--h2-font-size);
    color: var(--first-color); /* Color principal del proyecto */
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--first-color-light); /* Línea divisoria */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.CardArea i {
    font-size: 1.5rem;
}

.CardResponsable {
    font-size: var(--normal-font-size);
    color: var(--title-color-light);
    margin-bottom: 1rem;
    font-weight: var(--font-semi-bold);
}

.CardLink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    text-decoration: none; /* Quitar subrayado por defecto */
    word-break: break-all; /* Para correos largos en móviles */
}

.CardLink i {
    font-size: 1.25rem;
    color: var(--first-color-alt); /* Color de ícono */
}

.CardLink:hover {
    color: var(--first-color); /* Efecto de color al pasar el mouse */
}

/* Estilo específico para los enlaces de WhatsApp (para que se destaquen) */
.WhatsappLink {
    font-weight: var(--font-semi-bold);
    color: #25d366; /* Color de marca WhatsApp */
    margin-top: 0.5rem;
}

.WhatsappLink i {
    color: #25d366;
}

.WhatsappLink:hover {
    color: #128c7e;
}

/* Media Query: Para el texto en dispositivos muy pequeños */
@media screen and (max-width: 400px) {
    .CardArea {
        font-size: var(--normal-font-size);
    }
    .CardLink {
        font-size: var(--smaller-font-size);
    }
}

/* ================ Modal ================ */
.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: var(--body-color);
  margin: 15% auto;
  padding: 20px;
  border: none;
  width: 96%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content .cedulaInput {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  outline: none;
  color: var(--title-color);
  box-sizing: border-box;
  background: var(--container-color);
  border: none;
  border-radius: 11px;
}

.modal-buttons {
  display: flex;
  justify-content: space-around; /* Distribuye los botones */
  margin-top: 20px;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 2.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-buttons .ConsultarButton {
  background: var(--first-color);
}

.modal-buttons .ConsultarButton:hover {
  background-color: var(--second-color);
  transform: scale(1.05);
}

.modal-buttons .cancel-button {
  background: var(--button-cancel);
  color: var(--white-color);
}
.modal-buttons .cancel-button:hover {
  background: var(--button-cancel2);
  color: var(--white-color);
  transform: scale(1.05);
}

.swal2-popup {
  background-color: var(--container-color) !important;
  color: var(--text-color) !important;
}

.swal2-popup .swal2-confirm {
  /* Estilos para el botón de confirmación */
  background-color: var(--first-color) !important;
}

/* =============== BREAKPOINTS =============== */
/* For grand devices */
@media (min-width: 768px) {
  /* Beneficios */
  .BeneficiosContent {
    flex-direction: row;
    align-items: center;
  }

  .BeneficiosImg {
    order: 0;
    margin: 0;
  }

  /* Requisitos */
  .RequisitosContent {
    flex-direction: row;
    align-items: center;
  }

  .RequisitosInfo {
    order: 1;
    text-align: left;
  }

  .PortafolioImg {
    order: 1;
    margin: 0;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .show-search {
    width: 226px;
  }
}

.NavClose {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur to header */
.blur-header {
  background-color: hsla(0, 0%, 100%, 0.3);
}

.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 100%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.ActiveLink {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============== FOOTER =============== */
.Footer {
  background-color: var(--first-color-dark);
  color: var(--text-color-light);
  padding-block: 3rem 2rem;
}

/* Estilos para el texto legal (Sutil y camuflado) */
.new-footer .footer-legal {
    max-width: 1300px;
    margin: 0 auto 20px auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea separadora muy tenue */
    color: rgba(255, 255, 255, 0.25); /* 75% transparente para que no llame la atención */
    font-size: 0.75rem; /* Letra pequeña (12px aprox) */
    line-height: 1.6;
    text-align: justify; /* Bloque ordenado */
}

.new-footer .footer-legal strong {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.4); /* Un pelín más visible que el texto, pero sigue sutil */
    font-weight: var(--font-medium);
    letter-spacing: 0.5px;
}

/* IMPORTANTE: Actualiza tu .footer-bottom actual con esto para evitar que haya doble línea separadora */
.new-footer .footer-bottom { 
    border-top: none; /* Quitamos el borde porque ya lo hace el .footer-legal */
    padding-top: 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: rgba(255,255,255,0.4); 
    font-size: 0.85rem; 
    max-width: 1300px; 
    margin: 0 auto;
}

.FooterContainer,
.FooterContent,
.FooterData {
  row-gap: 2.5rem;
}

.FooterContent {
  border-bottom: 1px solid var(--text-color-light);
  padding-bottom: 2.5rem;
}

.FooterLogo,
.FooterSocialLink {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.FooterLogo,
.FooterTitle {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  margin-bottom: 1.25rem;
}

.FooterTitle {
  color: var(--text-color);
}

.FooterLogo {
  display: flex;
  align-items: center;
  font-weight: var(--font-medium);
}

.FooterLogo img {
  width: 3rem;
  height: auto;
}

.FooterTitle {
  color: hsl(260, 24%, 85%);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-color-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-link:hover {
  color: var(--second-color);
  transform: scale(1.05);
}

.whatsapp-link i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.FooterSocial,
.FooterSocialLink,
.FooterGroup {
  display: flex;
}

.FooterGroup {
  flex-direction: column;
  row-gap: 2.5rem;
  align-items: center;
}

.FooterSocial {
  column-gap: 1.25rem;
}

.FooterSocialLink {
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.FooterSocialLink:hover {
  transform: translateY(-0.25rem);
}

.FooterCopy {
  font-size: var(--smaller-font-size);
}

/* =============== SCROLL BAR =============== */
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(260, 16%, 75%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.6rem;
  background-color: hsl(260, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(260, 16%, 55%);
}

/* =============== SCROLL UP =============== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background: var(--gradient-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/* Typing effect styles */
.typing-container {
  display: inline-block;
}

#typed-text {
  font-family: var(--second-font);
  font-size: var(--h1-font-size);
  color: var(--title-color);
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.15em solid var(--title-color);
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.cursor {
  font-weight: 100;
  font-size: var(--h1-font-size);
  color: var(--title-color);
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--title-color);
  }
}

/* =============== BREAKPOINTS =============== */
/* For small devices */
@media screen and (max-width: 345px) {
  .Container {
    margin-inline: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
}

@media screen and (min-width: 767px) {
  .Nav {
    column-gap: 4.5rem;
  }

  .NavToggle,
  .NavClose {
    display: none;
  }

  .NavList {
    flex-direction: row;
    column-gap: 4.5rem;
  }

  .NavMenu {
    margin-left: auto;
  }

  .dark .NavMenu {
    background-color: transparent;
  }

  .FooterContent {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .FooterData {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 1152px) {
  .Container {
    margin-inline: auto;
  }

  .Nav {
    height: calc(var(--header-height) + 1.6rem);
  }

  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }

  .Footer {
    padding-block: 5rem 3rem;
  }

  .FooterContainer {
    row-gap: 3rem;
  }

  .FooterContent {
    padding-bottom: 3rem;
  }

  .FooterData {
    column-gap: 4.5rem;
  }

  .FooterLogo,
  .FooterTitle {
    margin-bottom: 2.5rem;
  }

  .FooterGroup {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .FooterSocial {
    column-gap: 2rem;
  }

  .scrollup {
    right: 3rem;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2000px) {
  .Container {
    max-width: 1250px;
  }
}

/* =============== MODAL =============== */
.ModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 110; /* Un z-index alto para que esté por encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ModalOverlay.active {
  opacity: 1;
  visibility: visible;
}

.ModalContent {
  position: relative;
  background-color: var(--container-color);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.ModalOverlay.active .ModalContent {
  transform: scale(1);
}

.ModalClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.ModalClose:hover {
  color: var(--first-color);
  transform: rotate(90deg);
}

.ModalContent h2 {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.ModalContent p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==================== Estilos para el nuevo Aviso Importante ==================== */
.ModalBodyAviso {
  text-align: left; /* Alineación del texto del aviso */
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.ModalBodyAviso p {
  margin-bottom: 1rem;
}

.ModalBodyAviso strong {
  color: var(--title-color); /* Resaltar texto importante */
  font-weight: var(--font-medium);
}

/* Estilos para la lista/cuenta bancaria */
.ModalBodyAviso ul {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none; /* Quitar el bullet de lista */
  text-align: center; /* Centrar el bloque de la cuenta */
}

.ModalBodyAviso ul li {
  background-color: var(--body-color); /* Fondo ligero para resaltar la cuenta */
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--text-color-light);
  margin: 0.5rem auto;
  max-width: 90%; /* Limitar ancho para que se vea como un bloque centrado */
  color: var(--title-color);
  font-weight: var(--font-medium);
  text-align: center;
}

.ModalContact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ModalLink {
  color: var(--text-color);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: color .3s;
}

.ModalLink:hover {
  color: var(--first-color);
}

.ModalButton {
  display: inline-block;
  background: var(--gradient-color);
  color: var(--white-color);
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: transform 0.3s ease;
  border: none;
}

.ModalButton:hover {
  transform: scale(1.05);
}

.ModalButton i {
  vertical-align: middle;
  margin-right: .5rem;
}

/* ==================== PREMIUM MODAL DESIGN ==================== */
.ModalContent.premium-modal {
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-top: 5px solid var(--first-color);
    max-width: 450px;
    background: var(--container-color);
}
.modal-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(53, 187, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.modal-header-icon i {
    font-size: 2rem;
    color: var(--first-color);
}
.ModalContent.premium-modal h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-color-light) !important;
    line-height: 1.6;
    margin-bottom: 25px !important;
}
.input-group-premium {
    position: relative;
    margin-bottom: 25px;
}
.input-group-premium .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-color-light);
    transition: 0.3s;
    pointer-events: none;
}
.input-group-premium .FormInput {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border-radius: 14px;
    border: 2px solid rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.04);
    font-size: 1.05rem;
    color: var(--title-color);
    font-family: var(--body-font);
    transition: all 0.3s ease;
    outline: none;
}
.dark .input-group-premium .FormInput {
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--title-color);
}
.input-group-premium .FormInput:focus {
    border-color: var(--first-color);
    background: transparent;
    box-shadow: 0 0 0 5px rgba(53, 187, 20, 0.1);
}
.dark .input-group-premium .FormInput:focus {
    background: rgba(255,255,255,0.02);
}
.input-group-premium .FormInput:focus + .input-icon,
.input-group-premium .FormInput:focus ~ .input-icon {
    color: var(--first-color);
}
.modal-actions-premium {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
    width: 100%;
}
.btn-premium-action {
    background: var(--gradient-color);
    padding: 16px 20px !important;
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(53, 187, 20, 0.2);
    width: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.05rem;
}
.btn-premium-action:hover {
    box-shadow: 0 15px 25px rgba(53, 187, 20, 0.3);
    transform: translateY(-2px) scale(1.02);
}
.btn-premium-cancel {
    background: transparent !important;
    color: var(--title-color) !important;
    padding: 14px 20px !important;
    border: 2px solid var(--text-color-light) !important;
    border-radius: 50px !important;
    font-weight: 600;
    width: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s ease;
}
.btn-premium-cancel:hover {
    background: rgba(0,0,0,0.05) !important;
    border-color: var(--title-color) !important;
}
.dark .btn-premium-cancel:hover {
    background: rgba(255,255,255,0.05) !important;
}

/* =============== BANNER VACACIONES PREMIUM =============== */
.BannerVacaciones {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    z-index: 2000;
    transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.25rem 0;
    overflow: hidden;
}

.BannerVacaciones.active {
    bottom: 0;
}

/* Animación del Borde Dorado */
@keyframes borderGlow {
    0%, 100% { border-top-color: rgba(212, 175, 55, 0.6); }
    50% { border-top-color: rgba(212, 175, 55, 1); filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.5)); }
}

.BannerGlass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 54, 32, 0.98), rgba(45, 175, 12, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 3px solid rgba(212, 175, 55, 0.6);
    animation: borderGlow 3s infinite ease-in-out;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* --- DECORACIONES LATERALES --- */
.FestiveSide {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 80px;
}

.festive-icon {
    color: #f1d592; /* Dorado Navideño */
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    user-select: none;
    pointer-events: none;
}

/* Animación Balanceo (Campanas/Regalos) */
.swing-anim {
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
}

/* Animación Brillo (Estrellas) */
.shine-anim {
    animation: shine 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes shine {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- NIEVE / DESTELLOS --- */
.SnowContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #ffd700; /* Gold */
    text-shadow: 0 0 5px rgba(254, 221, 102, 0.8);
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    user-select: none;
    pointer-events: none;
}

@keyframes fall {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(130px) translateX(20px) rotate(360deg); opacity: 0; }
}

/* --- CONTENIDO --- */
.BannerContent {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar mensaje entre iconos */
    gap: 3rem;
}

.BannerContent.Container {
    max-width: 1650px;
    width: 92%;
    margin-inline: auto;
}

.BannerMain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1350px; /* Aprovechar más espacio ancho en pantallas grandes */
}

/* Animación de Pulso para la insignia */
@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8); }
    50% { transform: scale(1.12); box-shadow: 0 0 25px 10px rgba(212, 175, 55, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.BannerBadge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(90deg, #d4af37, #f1d592);
    color: #143620;
    padding: 0.55rem 1.8rem;
    border-radius: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    animation: badgePulse 2s infinite ease-in-out;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
}

.BannerMessage p {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
}

.BannerMessage strong {
    color: #f1d592;
}

.BannerActions {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
}

.BannerClose {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: 0.3s;
}

.BannerClose:hover {
    color: #f1d592;
    transform: rotate(90deg);
}

/* Ocultar iconos laterales en móviles pequeños para priorizar el texto */
@media screen and (max-width: 992px) {
    .FestiveSide { display: none; }
    .BannerContent { gap: 1rem; }
}

/* =============== NUEVOS ESTILOS PREMIUM CREDITOS =============== */
/* Glassmorphism Classes */
.glass-panel {
    background: var(--container-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
    border-radius: 24px;
}

/* Modales Promocionales */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.promo-modal {
    width: 90%; max-width: 600px; padding: 50px; text-align: center; position: relative;
    transform: translateY(50px) scale(0.95); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; opacity: 0;
    background: var(--container-color);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.modal-overlay.active .promo-modal { transform: translateY(0) scale(1); opacity: 1; }

.promo-modal::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: var(--gradient-color);
}
.close-modal { position: absolute; top: 25px; right: 25px; font-size: 24px; color: var(--text-color-light); cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: var(--second-color); }

.promo-modal h2 { font-size: var(--h1-font-size); margin-bottom: 15px; font-weight: var(--font-semibold); }
.promo-modal .rate { font-size: 5rem; font-family: var(--body-font); font-weight: 800; color: var(--second-color); line-height: 1; margin: 15px 0 25px; letter-spacing: -2px;}
.promo-modal p { color: var(--text-color); font-size: var(--normal-font-size); line-height: 1.8; margin-bottom: 30px; }

.timer-container { width: 100%; height: 4px; background: rgba(0,0,0,0.05); border-radius: 2px; overflow: hidden; margin-bottom: 30px; }
.timer-progress { height: 100%; background: var(--second-color); width: 100%; transition: width 1s linear; }

/* Float Action Button */
.btn-float {
    position: fixed; bottom: 40px; right: 40px; z-index: 999;
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* Hero Banner Crédito Minimalista Premium Oscuro (Verde Azulado) */
.credit-hero {
    position: relative; padding: 140px 5% 100px; text-align: center; overflow: hidden;
    background-image: url('../../public/img/fondo.jpg');
    background-size: cover; background-position: center;
}
.credit-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente Verde Azulado Oscuro */
    background: linear-gradient(180deg, rgba(8, 38, 34, 0.92) 0%, rgba(8, 38, 34, 0.75) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-content h1 { color: var(--white-color); font-size: var(--biggest-font-size); margin-bottom: 20px; font-weight: var(--font-bold); letter-spacing: -1px; text-shadow: 0 10px 20px rgba(0,0,0,0.3);}

.badge-monto {
    display: inline-block; background: var(--gradient-color);
    color: white; padding: 20px 60px; border-radius: 50px; font-size: 3rem; font-weight: 800;
    margin: 25px 0; box-shadow: 0 20px 40px rgba(0, 230, 199, 0.3); font-family: var(--body-font);
}
.hero-content p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 0; color: rgba(255, 255, 255, 0.9); font-weight: var(--font-light); text-shadow: 0 5px 10px rgba(0,0,0,0.2);}

/* Contenedor Principal con Grid Asimétrico */
.main-container {
    display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: start;
    padding: 80px 5% 100px; max-width: 1300px; margin: 0 auto;
}

/* Panel Izquierdo (Requisitos) */
.info-panel h2 { font-size: var(--h2-font-size); margin-bottom: 30px; font-weight: var(--font-semibold); display: flex; align-items: center; gap: 12px; }
.info-panel h2 i { color: var(--second-color); font-size: 1.8rem;}

/* Promo Highlight movido ARRIBA */
.promo-highlight {
    background: var(--gradient-color); border-radius: 24px; padding: 40px; color: white;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    box-shadow: 0 20px 40px rgba(0, 230, 199, 0.2); margin-bottom: 50px;
}
.promo-highlight .rate { font-size: 4.5rem; font-weight: 800; line-height: 1; }
.promo-highlight h4 { color: white; font-size: 1.8rem; margin-bottom: 10px; font-family: var(--body-font); font-weight: var(--font-bold);}
.promo-highlight p { color: rgba(255,255,255,0.9); font-weight: var(--font-light); line-height: 1.6; font-size: 1.05rem;}

.req-list { list-style: none; margin-bottom: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}
.req-list li {
    padding: 25px; display: flex; flex-direction: column; gap: 15px;
    font-size: 0.95rem; transition: transform 0.3s;
}
.req-list li:hover { transform: translateY(-5px); }
.req-list li i { color: var(--second-color); font-size: 2.5rem; background: rgba(0, 230, 199, 0.1); padding: 15px; border-radius: 16px; width: fit-content;}
.req-list li strong { display: block; font-size: 1.1rem; color: var(--title-color); margin-bottom: 5px;}

/* Panel Derecho (Acción) */
.action-panel {
    padding: 50px 40px; text-align: center; height: fit-content; position: sticky; top: 120px;
}
.action-panel-img-wrapper {
    width: 120px; height: 120px; margin: 30px auto 40px; background: rgba(0, 230, 199, 0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 25px;
}
.action-panel-img-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.action-panel h3 { font-size: var(--h2-font-size); margin-bottom: 15px; font-weight: var(--font-bold); }
.action-panel p { font-size: 0.95rem; color: var(--text-color-light); line-height: 1.6; margin-bottom: 35px; font-weight: var(--font-light);}

.action-panel .btn-primary { width: 100%; font-size: 1.1rem; padding: 18px;}

@media (max-width: 1024px) {
    .req-list { grid-template-columns: 1fr; }
    .promo-highlight { flex-direction: column; text-align: center; }
}
@media (max-width: 991px) {
    .main-container { grid-template-columns: 1fr; gap: 50px; }
    .action-panel { position: relative; top: 0; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .badge-monto { font-size: 2rem; padding: 15px 30px; }
    .btn-float { bottom: 20px; right: 20px; left: 20px; width: calc(100% - 40px); animation: none; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Navbar Elegante */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: var(--header-height); 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    position: fixed; width: 100%; top: 0; z-index: 1000; 
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
nav.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.logo-img { height: 45px; object-fit: contain; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: var(--font-medium); font-size: 0.95rem; transition: color 0.3s; position: relative;}
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--second-color); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--title-color); }
.btn-volver { color: hsl(0, 70%, 50%) !important; font-weight: var(--font-semibold) !important; display: flex; align-items: center; gap: 5px; }
.btn-volver::after { display: none !important; }

.btn-primary {
    background: var(--gradient-color); color: var(--white-color) !important; padding: 15px 35px;
    border-radius: 50px; font-weight: var(--font-semibold) !important; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 230, 199, 0.2);
}
.btn-primary:hover { box-shadow: 0 15px 30px rgba(0, 230, 199, 0.35); transform: translateY(-3px); color: white !important;}

/* Footer Elegante */
footer { background-color: var(--title-color); color: var(--white-color); padding: 100px 5% 40px; margin-top: 50px;}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; max-width: 1300px; margin: 0 auto 80px; }
.footer-brand img { height: 60px; margin-bottom: 25px; }
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.8; font-size: 0.95rem; font-weight: var(--font-light);}
.footer-title { font-size: 1.1rem; font-family: var(--body-font); font-weight: var(--font-semibold); margin-bottom: 30px; color: var(--white-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 18px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; font-weight: var(--font-light);}
.footer-links a:hover { color: var(--second-color); }
.footer-contact li { display: flex; align-items: flex-start; gap: 15px; color: rgba(255,255,255,0.6); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; font-weight: var(--font-light);}
.footer-contact i { color: var(--second-color); font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; max-width: 1300px; margin: 0 auto;}


