/* styles.css */

/* ————————————————————————————
   1. Variables y resets
   ———————————————————————————— */
:root {
  --font-base: 'Helvetica Neue', Arial, sans-serif;

  /* Colores principales */
  --color-bg: #FEFEFE;           /* Fondo principal */
  --color-text: #1A1A1A;         /* Texto oscuro */
  --color-text-light: #FEFEFE;   /* Texto claro */
  --color-primary: #0B9444;      /* Verde principal */
  --color-secondary: #58A664;    /* Verde claro */
  --color-accent: #4A0B17;       /* Complementario oscuro */
  --color-grey: #5F6265;         /* Texto secundario */
  --color-soft: #96A095;         /* Gris verdoso suave */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
}


body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ————————————————————————————
   2. Navbar responsive y hide‐on‐scroll
   ———————————————————————————— */
/* PRELOADER */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-text);       /* tu color de fondo oscuro */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;       /* fade-out de 0.5s */
}

/* Contenedor del spinner y el logo */
.loader-container {
  position: relative;
  width: 100px;
  height: 100px;
}

/* Logo centrado en el círculo */
.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: auto;
  z-index: 2;
}

/* Círculo giratorio alrededor */
.spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--color-primary);  /* tu verde principal */
  border-radius: 50%;
  animation: spin 1s linear infinite;      /* giro continuo cada 1s */
  z-index: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

   
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: top 0.3s ease;
  z-index: 1000;
}

.navbar.hide {
  top: -100px;                  /* ocultar moviendo top */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 40px;
}

/* Botón hamburguesa */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}
/* Hover, focus y active en los enlaces del nav */
.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
  color: var(--color-secondary);
}

/* Subrayado animado */
.nav-list a {
  position: relative;
  transition: color 0.3s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a:focus::after,
.nav-list a.active::after {
  width: 100%;
}


.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle .hamburger::before { transform: translateY(-7px); }
.nav-toggle .hamburger::after  { transform: translateY(4px); }

/* Menú desplegable */
.nav-menu {
  position: absolute;
  top: 100%;
  right: 1rem;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Enlaces del menú */
.nav-list {
  list-style: none;
  padding: 0.5rem 0;
}
.nav-list li + li {
  margin-top: 0.5rem;
}
.nav-list a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 500;
}
/*.nav-list a:hover */

/* Selector de idioma */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-link {
  display: inline-block;
}

.lang-icon {
  width: 24px;
  height: auto;
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}

.lang-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}



/* Para marcar el idioma activo, añade `class="active"` al <a> correspondiente */
.lang-link.active .lang-icon {
  filter: drop-shadow(0 0 2px var(--color-secondary));
}


/* Desktop: mostrar menú siempre y ocultar burger */
@media(min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
  }
  .nav-list {
    display: flex;
  }
  .nav-list li + li {
    margin-top: 0;
    margin-left: 1.5rem;
  }
  .lang-switcher {
    border: none;
    margin-left: 2rem;
  }
  .lang-switcher a + a {
    border: none;
  }
}

/* ————————————————————————————
   3. Secciones full-height
   ———————————————————————————— */
.section {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Animación de aparición para secciones */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*.section:nth-child(even) {
  background: var(--color-soft);
}

/* ————————————————————————————
   4. Hero
   ———————————————————————————— */
.hero {
  position: relative;
  overflow: hidden;
  background-image: url('images/tecnafoto.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top left,
              rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: rotate(45deg);
  animation: hero-reflect 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes hero-reflect {
  0%   { transform: translate(-100%, -100%) rotate(45deg); }
  50%  { transform: translate(100%, 100%)   rotate(45deg); }
  100% { transform: translate(-100%, -100%) rotate(45deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: left;
  color: var(--color-text-light);
  margin-left: 10%;
}

.hero-content h1 {
  font-size: 40px;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
}

.btn.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn.cta-btn:hover {
  background: var(--color-secondary);
}

/* ————————————————————————————
   5. Tipografía global
   ———————————————————————————— */
h2 {
  font-size: 2.5rem;
  color: var(--color-bg);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}



/* ————————————————————————————
   6. Sección “Quiénes somos”
   ———————————————————————————— */
   
   .empresa-enhanced .empresa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  
}

.section.empresa-enhanced {
  background: var(--color-text);
  color: var(--color-bg);
  text-align: left;
}

.empresa-text {
  flex: 1 1 400px;
}
.empresa-text h2 {
  margin-bottom: 1rem;
}
.empresa-text p {
  max-width: 600px;
  line-height: 1.6;
  margin-top: 1rem;
}

.empresa-right {
  flex: 1 1 400px;
}

/* KPIs */
.kpis {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.kpi-item {
  background: var(--color-bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  min-width: 120px;
}
.kpi-number {
  font-size: 2.2rem;
  color: var(--color-primary);
}
.kpi-label {
  font-size: 0.85rem;
  color: var(--color-grey);
  margin-top: 0.25rem;
}

.kpi-cards {
  display: grid;
  /* 2 columnas iguales en pantallas grandes */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* en móvil, 1 columna */
@media (max-width: 768px) {
  .kpi-cards {
    grid-template-columns: 1fr;
  }
}

/* Cards Misión/Visión */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card .icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
.card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--color-grey);
  text-align: center;
}

/* Logo debajo del texto en .empresa-text */
.empresa-text .empresa-logo {
  display: block;               /* para que margin auto funcione */
  max-width: 200px;             /* ancho máximo deseado */
  width: 100%;                  /* escala responsiva */
  margin: 2rem 0;          /* separa del párrafo y centra */
  margin-top: 7rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* sombra sutil */
  transition: transform 0.3s;
}
.empresa-text .empresa-logo:hover {
  transform: scale(1.05);       /* ligero zoom al pasar el ratón */
}

/* Móvil */
@media (max-width: 768px) {
  .empresa-enhanced .empresa-container {
    flex-direction: column;
  }
  .kpis {
    justify-content: center;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ————————————————————————————
   7. Sección “Nuestros servicios”
   ———————————————————————————— */
/* ———————————————
   Sección “Puesta en Marcha”
   ——————————————— */
.servicios-new-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.servicios-left,
.servicios-right .service-img {
  display: block;
  text-align: left;
  width: 100%;            /* ocupa todo el ancho de su columna */
  /* altura fija o relativa: ajusta a tu gusto */
   height: 100%;       
  object-fit: cover;      /* recorta para rellenar sin deformar */
  border-radius: 8px;     /* opcional: esquinas redondeadas */
  
}


/* Texto */
.servicios-left h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 5rem;
  
}
.servicios-left p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.servicios-new2 .servicios-left h2 {
  color: var(--color-text-light);
}

/* Contenedor padre: ya no es octogonal */
.octagon-container {
  /* Ocupa el 100 % de ancho de su padre (o ajusta max-width si quieres un límite) */
  width: 100%;
  /* Altura equivalente al 20 % de la altura de la ventana */
  height: 50vh;
  /* Centrado horizontal opcional */
  margin: 1rem auto;
  /* Recorta cualquier exceso de la imagen */
  overflow: hidden;
  /* Esquinas ligeramente redondeadas */
  border-radius: 8px;
  /* Sombra suave para destacar */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Asegúrate de que el contenedor se comporte normalmente en el flujo */
  position: relative;
}

.octagon-container img {
  /* La imagen va a llenar 100 % de ancho y alto del contenedor */
  width: 100%;
  height: 100%;
  /* Recorta para cubrir todo el contenedor sin distorsión */
  object-fit: cover;
  /* Quita posibles espacios en línea */
  display: block;
}
 
.servicios-right  {
  position: static;
  width: 100%;
  padding: 0;
  overflow: visible;
  clip-path: none;
  box-shadow: none;
}

/* Imagen rectangular apaisado */
.servicios-right .service-img {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  object-fit: cover;           /* recorta para llenar */
  border-radius: 8px;          /* esquinas redondeadas */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Logo-icon debajo */
.logo-icon {
  display: block;
  width: 200px;
  margin: 1rem auto 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.logo-icon:hover {
  opacity: 1;
}


/* Adaptación móvil */
@media (max-width: 768px) {
  .servicios-new-container {
    flex-direction: column;
  }
  .servicios-right {
    margin-top: 2rem;
  }
}
.servicios-new2 {
  background-color: #1A1A1A;
}

.servicios-new {
  background-color: var(--color-bg); /* Fondo blanco */
  
}
.servicios-new2 p{
  color: var(--color-text-light);
}
.servicios-new .servicios-left p {
  color: var(--color-text); /* Asegura que el texto sea oscuro sobre fondo blanco */
}

/*
   ———————————————————————————— */
/* 4. Productos - Tarjetas con fondo fijo */
.productos-cards {
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('images/tecnafoto.jpeg') center/cover no-repeat fixed;
  color: var(--color-bg);
}

.productos-cards h2 {
  text-align: center;
  color: var(--color-bg);
  margin-bottom: 3rem;
}

.productos-accordion {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.producto-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.producto-titulo {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  color: var(--color-text-light);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.producto-titulo:hover {
  background: rgba(255, 255, 255, 0.1);
}

.producto-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.producto-item.active .producto-contenido {
  padding: 0 2rem 2rem 2rem;
}

.producto-contenido .producto-imagen {
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
}

.producto-contenido .producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.producto-contenido .producto-texto {
  text-align: left;
}

.producto-contenido .producto-texto p,
.producto-contenido .producto-texto ul {
  color: var(--color-text-light);
  margin-top: 1rem;
}

.producto-contenido .producto-texto ul {
  padding-left: 1.5rem;
}

.productos-cards .producto-texto h3 {
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .producto-item.active .producto-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .producto-contenido .producto-imagen {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .productos-cards {
    background-attachment: scroll; /* Mejora rendimiento en móviles */
  }
}




.section.proyectos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;    /* permite que baje al móvil */
  gap: 2rem;           /* espacio horizontal y vertical */
}

/* Cada “container” ocupa casi la mitad en desktop */
.proyectos-lista {
  flex: 0 1 45%;       /* no crece más del 45% ni menos de 0 */
  text-align: center;
}

/*texto de la lista*/
.proyectos-lista p{
  flex: 0 1 45%;       /* no crece más del 45% ni menos de 0 */
  text-align: center;
  color: var(--color-bg);
}

/* Imágenes responsivas y grandes */
.img-caso-exito {
  width: 100%;         /* llena su contenedor .proyectos-lista */
  max-width: 400px;    /* nunca más grandes que 400px */
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Sigue funcionando tu interacción JS igual */

/* En móviles: una columna y tamaños un poco más pequeños */
@media (max-width: 768px) {
  .section.proyectos {
    flex-direction: column;
  }
  .proyectos-lista {
    flex: 0 1 100%;
  }
  .img-caso-exito {
    max-width: 300px;
  }
}


/* Si sigues necesitando la clase .img-caso-exito, hazla simplemente: */
.img-caso-exito {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ————————————————————————————
   11. Novedades & Newsletter
   ———————————————————————————— */
.feed-linkedin {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1 1 250px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.proyectos{
  background-color:#1A1A1A;
}
/* ————————————————————————————
   12. Contacto
   ———————————————————————————— */
#contacto {
  position: relative;
  background-image: url('images/tecnafoto2.jpeg');
  background-size: cover;
  background-position: center;
}

#contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
#contacto .contact-form,
#contacto .contact-info,
#contacto .mapa-embed {
  position: relative;
  z-index: 2;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto;
}
@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 150px;
}
.contact-form button {
  grid-column: 1 / -1;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.contact-info {
  text-align: center;
  margin-top: 2rem;
}
.social-links a {
  color: var(--color-primary);
  text-decoration: none;
  margin: 0 0.5rem;
}
.social-links a:hover {
  text-decoration: underline;
}


/* ————————————————————————————
   13. Mapa embed
   ———————————————————————————— */
.mapa-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

/* ————————————————————————————
   14. Footer
   ———————————————————————————— */
footer {
  background: #222;
  color: #fff;
  padding: 2rem;
  /* quitamos el text-align:center para delegar la alineación al flex */
}

.footer-info {
  display: flex;
  align-items: center;
  justify-content: center;  /* centra párrafo + nav */
  position: relative;
  flex-wrap: wrap;          /* para que en móvil apile */
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.5rem;
}
.footer-nav a:hover {
  color: #fff;
}

/* Logo Tecnagent alineado a la derecha */
.footer-logo {
  margin-left: auto;       /* empuja el logo hasta el extremo derecho */
  width: 100%;
  max-width: 100px;        /* tamaño máximo en desktop */
  height: auto;
}

/* Ajustes para móvil */
@media (max-width: 600px) {
  .footer-info {
    flex-direction: column;
    text-align: center;    /* vuelve a centrar texto en columna */
  }
  .footer-logo {
    margin: 1rem 0 0;      /* separa el logo del nav/párrafo */
  }
}


.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;      /* o flex-start si lo quieres alineado a la izquierda */
  align-items: center;
  margin: 1rem 0;
}

.social-icon {
  width: 24px;
  height: auto;
  display: block;
  /* filter: invert(1);             /* si tu fondo es oscuro y quieres iconos blancos */
  transition: filter 0.2s, transform 0.2s;
}

.social-links a:hover .social-icon {
  transform: scale(1.1);
  filter: invert(0.7);           /* un toque de color al pasar hover */
}

.contact-info p{
  color:#96A095;
}

@media (max-width: 767px) {
    /* Sólo muestra el dropdown cuando está activo */
  .nav-menu {
    opacity: 0;
    visibility: hidden;
  }
  .nav-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Oculta el lang‐switch hasta que el menú esté abierto */
  .lang-switcher {
    display: none !important;
  }
  .nav-menu.active .lang-switcher {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 0.75rem 0 0 !important;
  }

  /* Limpia cualquier filtro/fondo de las banderas */
  .lang-icon {
    filter: none !important;
    background: transparent !important;
  }

  /* Asegura que el dropdown siga siendo semitransparente y compacto */
  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    right: 1rem !important;
    max-width: 90vw !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transform: none !important;
    z-index: 999 !important;
  }
}

/* Estilos para el modal */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1001; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.6); 
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--color-text);
  color: var(--color-text-light);
  margin: 15% auto; 
  padding: 2rem;
  border: 1px solid var(--color-primary);
  width: 90%; 
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-button {
  color: var(--color-text-light);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
  color: var(--color-secondary);
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
    color: var(--color-primary);
}

.modal-content p {
    color: var(--color-soft);
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.modal-content li a {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--color-grey);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.modal-content li a:hover {
    background-color: var(--color-primary);
}