/** 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%);
  --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, 24%, 16%);
  --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: clip; }

/* =============== 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);
}

.Credito {
  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;
}

.Credito:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

/* =============== HOME =============== */
.Home {
  background-image: url("../img/fondo.jpg");
  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: 76%;
}

.TitleHome {
  margin-bottom: 1rem;
}

.TitleHome img {
  width: 56%;
  height: auto;
  animation: pulseAndRotate 2s ease-in-out infinite;
}

@keyframes pulseAndRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.05) rotate(5deg);
  }

  50% {
    transform: scale(1.1);
  }

  75% {
    transform: scale(1.05) rotate(-5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.DescripcionH {
  font-size: var(--biggest-font-size);
  color: var(--second-color);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 900;
  text-shadow: 1px 1px 0 var(--second-color), -1px -1px 0 var(--second-color),
    1px -1px 0 var(--second-color), -1px 1px 0 var(--second-color);
}

.button-link {
  color: var(--second-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.button-link:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

/* ==================== CREDITO ==================== */
.Creditos {
  padding-bottom: 3rem;
  padding: 3rem 0;
}

.CreditosContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.CreditosImg img {
  width: 100%;
  height: auto;
}

.InfoCredito {
  text-align: center;
}

.TitleCreditoss {
  font-size: var(--bigger-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.DescripcionC {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ButtonCredito {
  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;
}

.ButtonCredito:hover {
  background-color: var(--second-color);
  color: #000;
  transform: scale(1.05);
}

/* =============== Portafolio =============== */
.Portafolio {
  padding-bottom: 3rem;
  padding: 3rem 0;
}

.PortafolioContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.PortafolioImg img {
  width: 100%;
  height: auto;
}

.PortafolioInfo {
  text-align: center;
}

.TitlePortafolio {
  font-size: var(--bigger-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.DescripcionP {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ButtonPortafolio {
  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;
}

.ButtonPortafolio:hover {
  background-color: var(--second-color);
  color: #000;
  transform: scale(1.05);
}

/*==================== LINEAS DE ATENCION (CONTACTOS) ====================*/
.LineasDeAtencion {
    padding: 7rem 0 4rem; 
    background-color: var(--body-color);
}

/* 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;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem;
}

/* Estilo de la tarjeta de contacto */
.ContactoCard {
    background-color: var(--container-color);
    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);
    }
}

/* =============== BREAKPOINTS =============== */
/* 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);
  }
}

/* Estilo para los títulos de las secciones */
.sidebar-section-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  padding: 1rem 0 0.5rem 0;
  margin-top: 0.8rem;
  list-style: none;
  position: relative;
  text-align: center;
  background: linear-gradient(
    to right,
    var(--first-color) 10%,
    var(--second-color) 50%,
    var(--first-color) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pseudo-elemento ::before para la línea */
.sidebar-section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu li:first-child {
  margin-top: 0.8rem;
}

.sidebar-menu a.has-notification {
  /* font-weight: bold; */ /* Opcional: hacerlo más notorio */
  position: relative; /* Para posicionar el badge */
  color: var(--first-color); /* O un color de notificación */
}

.notification-badge {
  position: absolute;
  top: 50%;
  right: 10px; /* Ajusta según sea necesario */
  transform: translateY(-50%);
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px; /* Un padding más ajustado para números pequeños */
  font-size: var(
    --smaller-font-size
  ); /* Un poco más pequeño que el texto normal */
  min-width: 18px; /* Para que el círculo se vea bien incluso con un solo dígito */
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* Ajusta la altura de línea para centrar verticalmente el número */
  font-weight: bold;
  z-index: 1; /* Para que esté por encima del texto del enlace si es necesario */
}

/* Para la animación de "latido" en el badge (opcional) */
.notification-badge.pulsing {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* Icono de notificación directamente en el enlace (alternativa al badge de número) */
.sidebar-menu a.has-notification::after {
  content: "\EA6A"; /* Ejemplo con Remix Icon Bell (ri-notification-3-line) */
  font-family: "remixicon" !important; /* Asegúrate de usar la familia correcta de RemixIcon */
  font-size: 1rem;
  color: red;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: normal; /* Para que no herede el bold del <a> */
  animation: bell-shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
  transform-origin: top center;
}

@keyframes bell-shake {
  0% {
    transform: rotate(0);
  }
  15% {
    transform: rotate(5deg);
  }
  30% {
    transform: rotate(-5deg);
  }
  45% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(2deg);
  }
  85% {
    transform: rotate(-2deg);
  }
  92% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(0);
  }
}

/* =============== 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;
    /* ========== NUEVAS PROPIEDADES CLAVE PARA EL SCROLL ========== */
    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;
}
/* ================================================================================= */


/* Conservamos los estilos de los botones de contacto originales (aunque no se usan en el nuevo modal) */
.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;
}

/* =============== 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; }
}

/* =============== SECCIÓN FLOTANTE DERECHO DE PETICIÓN =============== */
.FloatingAlert {
    position: fixed;
    bottom: -250px;
    right: 2rem;
    background-color: var(--container-color);
    border: 1px solid rgba(0, 230, 199, 0.08);
    border-left: 6px solid var(--first-color);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 1.75rem 2rem;
    border-radius: 0.75rem;
    z-index: 2500;
    max-width: 530px;
    width: calc(100% - 4rem);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.FloatingAlert.active {
    bottom: 2rem;
    opacity: 1;
    pointer-events: auto;
    animation: alertGlow 3s infinite ease-in-out;
}

.FloatingAlert > i.ri-information-line {
    font-size: 2rem !important;
    color: var(--first-color);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.FloatingAlert.active i.ri-information-line {
    animation: infoIconPulse 2s infinite ease-in-out;
}

.FloatingAlertContent {
    flex: 1;
}

.FloatingAlertTitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--first-color);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.FloatingAlertText {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
}

.FloatingAlertClose {
    font-size: 1.6rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
    margin-top: -2px;
}

.FloatingAlertClose:hover {
    color: var(--first-color);
    transform: scale(1.1) rotate(90deg);
}

/* --- ANIMACIONES DE ALERTA DE IMPORTANCIA --- */
@keyframes alertGlow {
    0% {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(53, 187, 20, 0.25);
        border-left-color: var(--first-color);
    }
    50% {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15), 0 0 22px 8px rgba(0, 230, 199, 0.5);
        border-left-color: var(--second-color);
    }
    100% {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(53, 187, 20, 0.25);
        border-left-color: var(--first-color);
    }
}

@keyframes infoIconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
        color: var(--second-color);
    }
    100% {
        transform: scale(1);
    }
}

/* Soporte específico para bordes en modo oscuro */
body.dark .FloatingAlert {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 576px) {
    .FloatingAlert {
        right: 1rem;
        left: 1rem;
        width: auto;
        bottom: -280px;
        padding: 1.25rem 1.25rem;
    }
    .FloatingAlert.active {
        bottom: 1rem;
    }
}

/* --- DISEÑO ALINEADO LADO A LADO PARA PANTALLAS GRANDES --- */
@media screen and (min-width: 1024px) {
    /* Desplaza el modal suavemente a la derecha (invertido) */
    .ModalOverlay.aside-layout .ModalContent {
        transform: translateX(240px) scale(1);
    }
    
    /* Posiciona la alerta flotante centrada verticalmente a la izquierda (invertido) */
    .FloatingAlert {
        top: 50%;
        bottom: auto;
        left: 4rem;
        right: auto;
        transform: translateY(-50%) translateX(-120px);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    }
    
    .FloatingAlert.active {
        transform: translateY(-50%) translateX(0);
        bottom: auto;
    }
}

/* ========================================================= */
/* NUEVOS ESTILOS PREMIUM - DISEÑO ORMOQ V2 */
/* ========================================================= */

.Header {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.dark .Header {
    background: hsla(0, 0%, 8%, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.Header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.dark .Header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Utilidades Glassmorphism Premium */
.glass-panel {
    background: var(--container-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border-radius: 24px;
}
.dark .glass-panel {
    background: rgba(43, 31, 62, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 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: flex-start; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
    padding-top: 80px;
}
.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-medium); color: var(--title-color); }
.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; }

/* Navbar Elegante (Ajustes) */
.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-primary {
    background: var(--gradient-color); color: var(--white-color) !important; padding: 12px 30px;
    border-radius: 50px; font-weight: var(--font-medium) !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;
    box-shadow: 0 10px 20px rgba(0, 230, 199, 0.2);
}
.btn-primary::after { display: none; }
.btn-primary:hover { box-shadow: 0 15px 30px rgba(0, 230, 199, 0.35); transform: translateY(-3px); color: white !important;}

/* Hero Minimalista Premium */
.hero {
    position: relative; height: 100vh; min-height: 750px; display: flex; align-items: center;
    background-image: url('../img/fondo.jpg');
    background-size: cover; background-position: center;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(8, 38, 34, 0.92) 0%, rgba(8, 38, 34, 0.75) 50%, rgba(8, 38, 34, 0.3) 100%);
}
.hero-content {
    position: relative; z-index: 2; padding: 0 5%; max-width: 850px; margin-top: 2rem;
}
.hero-badge {
    display: inline-block; padding: 8px 16px; background: rgba(0, 230, 199, 0.2); color: var(--second-color);
    border-radius: 50px; font-weight: var(--font-medium); font-size: 0.95rem; margin-bottom: 20px;
}
.hero-content h1 {
    color: var(--white-color); font-size: calc(var(--biggest-font-size) + 0.5rem); font-weight: var(--font-bold); line-height: 1.1; margin-bottom: 25px;
    letter-spacing: -1px; text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.hero-content h1 span { color: var(--second-color); }
.hero-content p {
    color: rgba(255, 255, 255, 0.9); font-size: 1.25rem; line-height: 1.7; margin-bottom: 40px; font-weight: var(--font-regular);
    text-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Campañas y Beneficios */
.campaigns-section { padding: 100px 5%; position: relative; margin-top: -80px; z-index: 10; }
.campaigns-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; max-width: 1300px; margin: 0 auto; }

.campaign-card { padding: 40px; transition: transform 0.4s ease; display: flex; flex-direction: column; justify-content: center;}
.campaign-card:hover { transform: translateY(-10px); }

.campaign-main { background: var(--gradient-color); color: white; border: none; overflow: hidden; position: relative;}
.campaign-main::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px;
    background: rgba(255,255,255,0.1); border-radius: 50%; filter: blur(20px);
}
.campaign-main h3 { color: white; font-size: 2.2rem; margin-bottom: 15px; font-family: var(--body-font); font-weight: var(--font-medium); line-height: 1.2;}
.campaign-main .rate { font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 15px; }
.campaign-main p { color: rgba(255,255,255,0.9); font-size: 1.05rem; line-height: 1.6; font-weight: var(--font-regular); margin-bottom: 30px;}
.campaign-main .btn-white { background: white; color: var(--second-color); padding: 12px 25px; border-radius: 50px; font-weight: var(--font-medium); text-decoration: none; display: inline-block; }

.campaign-secondary i { font-size: 2.5rem; color: var(--second-color); margin-bottom: 20px; display: inline-block; padding: 15px; background: rgba(0, 230, 199, 0.05); border-radius: 16px;}
.campaign-secondary h4 { font-size: 1.3rem; margin-bottom: 15px; font-family: var(--body-font); font-weight: var(--font-medium); color: var(--title-color);}
.campaign-secondary p { font-size: 0.95rem; color: var(--text-color-light); line-height: 1.6; }

/* Portafolio Minimalista */
.section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: var(--h1-font-size); margin-bottom: 20px; font-weight: var(--font-medium); letter-spacing: -0.5px; color: var(--title-color);}
.section-header p { color: var(--text-color-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; font-weight: var(--font-regular);}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1300px; margin: 0 auto;}
.portfolio-card { background: var(--container-color); border-radius: 24px; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 15px 35px rgba(0,0,0,0.03); transition: all 0.4s ease; }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }
.portfolio-img-wrapper { width: 100%; height: 240px; display: flex; align-items: center; justify-content: center; background: transparent; padding: 30px;}
.portfolio-img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease;}
.portfolio-card:hover .portfolio-img-wrapper img { transform: scale(1.08); }

.portfolio-content { padding: 35px; }
.portfolio-content h3 { font-size: 1.4rem; margin-bottom: 15px; font-family: var(--body-font); font-weight: var(--font-medium); color: var(--title-color);}
.portfolio-content p { color: var(--text-color-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 25px; }
.portfolio-content a { color: var(--second-color); font-weight: var(--font-medium); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: gap 0.3s;}
.portfolio-content a:hover { gap: 12px; }

/* Footer Elegante */
.new-footer { background-color: var(--title-color); color: var(--white-color); padding: 100px 5% 40px; margin-top: 50px;}
.new-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; max-width: 1300px; margin: 0 auto 80px; }
.new-footer .footer-brand img { height: 60px; margin-bottom: 25px; }
.new-footer .footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.8; font-size: 0.95rem; font-weight: var(--font-regular);}
.new-footer .footer-title { font-size: 1.1rem; font-family: var(--body-font); font-weight: var(--font-medium); margin-bottom: 30px; color: var(--white-color); }
.new-footer .footer-links { list-style: none; }
.new-footer .footer-links li { margin-bottom: 18px; }
.new-footer .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-regular);}
.new-footer .footer-links a:hover { color: var(--second-color); }
.new-footer .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-regular);}
.new-footer .footer-contact i { color: var(--second-color); font-size: 1.3rem; }
.new-footer .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;}

@media (max-width: 1024px) {
    .campaigns-grid { grid-template-columns: 1fr 1fr; }
    .campaign-main { grid-column: span 2; }
    .new-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero::before { background: linear-gradient(180deg, rgba(8, 38, 34, 0.95) 0%, rgba(8, 38, 34, 0.85) 100%); }
    .hero-content h1 { font-size: 2.8rem; }
    .campaigns-section { margin-top: 0; padding-top: 60px; }
    .campaign-main { grid-column: span 1; }
    .campaigns-grid { grid-template-columns: 1fr; }
    .new-footer .footer-grid { grid-template-columns: 1fr; }
}

