/** 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: #5CACEE;
  --second-color: #FF6B6B;
  --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);

  --holiday-red: #b91c1c;
  --holiday-dark: #7f1d1d;
  --holiday-gold: #fbbf24;
  --holiday-glow: rgba(251, 191, 36, 0.4);

  /* ========== 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, 64%, 85%);
  --text-color: hsl(260, 20%, 65%);
  --body-color: hsl(0, 0%, 8%);
  --container-color: hsl(262, 34%, 19%);
  --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: hidden;
}

/* =============== 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;
  width: 36px;
}

.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.png");
  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: 90%; /* Aumentamos un poco el ancho permitido */
  width: 100%;
  
  /* Activamos Flexbox para controlar la posición */
  display: flex;
  flex-direction: column; /* En móviles: uno encima del otro */
  align-items: center;
  justify-content: center;
  gap: 1rem; /* Espacio entre el logo y el texto */
}

.TitleHome {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.TitleHome img {
  width: 60%;
  max-width: 250px;
  height: auto;
  animation: pulseAndRotate 2s ease-in-out infinite;
  filter: 
    /* Capa 1: Un borde blanco muy pegado y fuerte para definir las letras */
    drop-shadow(0 0 2px rgba(255, 255, 255, 1.0)) 
    /* Capa 2: Un resplandor medio */
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) 
    /* Capa 3: Un resplandor lejano para separarlo del fondo */
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@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.2;
  font-weight: 900;
  text-align: center;
  
  /* Sombra del texto (Mantenemos tu estética) */
  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);
}

/* ============================================ */
/* AQUI OCURRE LA MAGIA PARA PANTALLAS GRANDES */
/* ============================================ */
@media screen and (min-width: 900px) {
  .HomeInfo {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }

  .TitleHome {
    margin-bottom: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .TitleHome img {
    width: 100%; 
    max-width: 320px;
  }

  .DescripcionH {
    flex: 1;
    text-align: left;
    margin-bottom: 0;
  }
}

.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;
}

.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, 64%, 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: 30px; /* Flotante */
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Oculto inicialmente hacia abajo */
    width: 90%;
    max-width: 1000px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto rebote suave */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 1rem 2rem;
}

.BannerVacaciones.active {
    transform: translateX(-50%) translateY(0);
}

/* Fondo con degradado y textura */
.BannerBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--holiday-red), var(--holiday-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Efecto de borde brillante superior */
.BannerBackground::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--holiday-gold), transparent);
    opacity: 0.7;
}

/* --- NIEVE --- */
.SnowContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(150px) rotate(360deg); opacity: 0; }
}

/* --- CONTENIDO --- */
.BannerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- ICONOS LATERALES --- */
.FestiveSide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 60px;
}

.festive-icon {
    font-size: 1.8rem;
    color: var(--holiday-gold);
    filter: drop-shadow(0 0 8px var(--holiday-glow));
}

/* Animaciones de iconos */
.swing { animation: swing 3s ease-in-out infinite; transform-origin: top center; }
.pulse { animation: pulse 2s ease-in-out infinite; }
.spin  { animation: spin 4s linear infinite; }

@keyframes swing { 0%, 100% { transform: rotate(-15deg); } 50% { transform: rotate(15deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes spin  { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- TEXTO CENTRAL --- */
.BannerMain {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.BannerBadge {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--holiday-gold);
    color: var(--holiday-gold);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.BannerMessage p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

.BannerMessage strong {
    color: var(--holiday-gold);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- BOTÓN CERRAR --- */
.CloseBtn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.CloseBtn:hover {
    background: var(--holiday-gold);
    color: var(--holiday-red);
    transform: rotate(90deg);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .BannerVacaciones {
        width: 95%;
        bottom: 10px;
        padding: 1rem;
        flex-direction: column;
    }
    
    .FestiveSide { display: none; } /* Ocultar iconos laterales en móviles pequeños */
    
    .BannerMessage p { font-size: 0.85rem; }
    
    .BannerActions {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}