@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: black;
  --secondary-color: #330aba;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --extra-light: #e2e8f0;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  text-align: center;
  color: var(--text-dark);
}
.btnDomus a {
  padding: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}
.btnDomus {
  padding: 5px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--secondary-color);
  transition: all 1000ms;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  outline: 2px solid var(--secondary-color);
}

.btnDomus:hover {
  color: #ffffff;
  transform: scale(1.1);
  outline: 2px solid var(--primary-color);
  box-shadow: 4px 5px 17px -4px var(--secondary-color);
}

.btnDomus::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--secondary-color);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

.btnDomus:hover::before {
  width: 250%;
}
.link-download {
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #090909;
  padding: 0.5em 1em;
  cursor: pointer;
  font-size: 18px;
  border-radius: 0.5em;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.link-download:active {
  color: #666;
  box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.link-download:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.link-download:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #330aba;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.link-download:hover {
  color: #ffffff;
  border: 1px solid #330aba;
}

.link-download:hover:before {
  top: -35%;
  background-color: #330aba;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.link-download:hover:after {
  top: -45%;
  background-color: #330aba;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}


.section__subheader {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-align: center;
}

.section__subheader::before {
  position: absolute;
  content: "";
  left: 50%;
  top: -3rem;
  height: 2rem;
  width: 2px;
  background-color: var(--secondary-color);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header {
  background-image: url("../../images/portal/header.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 20px;
}

.nav__logo a {
  position: relative;
  padding: 2rem 1rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
  background-color: var(--secondary-color);
}

.nav__logo a::after {
  position: absolute;
  content: "";
  bottom: -10px;
  left: 0;
  height: 5px;
  width: 100%;
  background-color: var(--secondary-color);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  padding: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.link a:hover {
  color: var(--secondary-color);
}

.header__container {
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.header__content {
  padding: 5rem 0;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-family: var(--header-font);
  color: var(--white);
}

.header__content .btn {
  position: relative;
  padding: 1rem 2rem;
  margin-right: 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--secondary-color);
  cursor: pointer;
}

.header__content .btn::after {
  position: absolute;
  content: "";
  top: 0;
  right: -10px;
  height: 100%;
  width: 5px;
  background-color: var(--secondary-color);
}

.header__content a {
  font-size: 1.2rem;
  color: var(--white);
}

.header__content a:hover {
  color: var(--secondary-color);
}

.header__image img {
  max-width: 550px;
  margin: auto;
  border-radius: 20px;
}
.fadeInDown {
    animation: fadeInDown 1s ease forwards; 
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.services__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services__card {
  padding: 2rem;
  border: 2px solid var(--extra-light);
}

.services__card img {
  max-width: 80px;
  margin-bottom: 1rem;
}

.services__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
}

.services__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.services__card li{
  margin-bottom: 0.5rem;
  color: var(--text-light);
  list-style: none;
}

.services__card a {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-left: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: 0.3s;
}

.services__card a::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  background-color: var(--secondary-color);
  border-radius: 100%;
  z-index: -1;
}

.services__card a:hover {
  padding-left: 2.5rem;
}

.projects__container {
  max-width: 1400px;
  margin: auto;
  padding: 5rem 1rem;
}

.projects__grid {
  margin-top: 4rem;
  margin-bottom: 6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.projects__card img {
  margin-bottom: 1rem;
  border-radius: 5px;
}

.projects__card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
  padding-bottom: 10px;
}

.projects__card p {
  font-weight: 600;
  color: var(--secondary-color);
}

.projects__card:nth-child(even) {
  transform: translateY(4rem);
}

.projects__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.projects__nav span {
  display: inline-block;
  padding: 5px 15px;
  font-size: 1.5rem;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  transition: 0.3s;
  cursor: pointer;
}

.projects__nav span:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.banner {
  background-color: var(--secondary-color);
}

.banner__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.banner__container .section__header {
  padding: 2rem;
  color: var(--white);
  text-align: left;
}

.banner__content {
  position: relative;
  padding: 2rem;
}

.banner__content::before {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 50%;
  width: 2px;
  background-color: var(--white);
}

.banner__content p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--white);
}

.banner__content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
}

.banner__content h5 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.blogs__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blogs__card {
  overflow: hidden;
  border: 2px solid var(--extra-light);
  border-radius: 10px;
}

.blogs__content {
  padding: 1rem;
}

.blogs__content h5 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.blogs__content h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
}

.blogs__content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.blogs__content a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.blogs__content a:hover {
  color: var(--secondary-color);
}

.footer {
  background-color: var(--primary-color);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
}

.footer__col p {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--white);
}

.footer__col form {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
}

.footer__col input {
  width: 100%;
  padding: 0.75rem 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  background-color: var(--white);
}

.footer__col button {
  padding: 0.75rem 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--secondary-color);
}

.footer__socials {
  display: flex;
  align-items: center;
}

.footer__socials a {
  padding: 5px 10px;
  font-size: 1rem;
  color: var(--secondary-color);
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
}

.footer__col:nth-child(3) a {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
  transition: 0.3s;
}

.footer__col:nth-child(3) a:hover {
  color: var(--secondary-color);
}

.footer__bar {
  font-size: 0.9rem;
  padding: 1rem;
  color: var(--white);
  text-align: center;
}

@media (width < 900px) {
  .nav__links {
    gap: 1rem;
  }

  .header__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .header__image {
    grid-area: 1/1/2/2;
  }

  .header__content {
    text-align: center;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 4rem;
  }

  .banner__container {
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }

  .banner__container .section__header {
    text-align: center;
  }

  .banner__content::before {
    content: none;
  }

  .blogs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }
}

@media (width < 600px) {
  .nav__links {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .projects__card:nth-child(even) {
    transform: translateY(0);
  }

  .blogs__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }
}

.menu-toggle {
    display: none;
    font-size: 60px;
    color: var(--white);
    cursor: pointer;
  }
  
  @media (max-width: 450px) {
    .nav__links {
      display: flex;
      flex-direction: column;
      background-color: var(--secondary-color);
      position: fixed;
      top: 0;
      right: 0; /* Cambiamos la posición al lado derecho */
      height: 100%; /* Ajustamos el alto para cubrir toda la pantalla */
      width: 200px; /* Ancho del menú */
      padding: 1rem;
      z-index: 999;
      transform: translateX(100%); /* Empieza oculto */
      transition: transform 0.3s ease; /* Animación de transición */
    }
  
    .nav__links.active {
      transform: translateX(0); /* Mostrar el menú */
    }
  
    .nav__links .link {
      text-align: center;
      margin-bottom: 1rem;
    }
  
    .nav__links .link a {
      font-size: 14px; /* Tamaño de fuente más pequeño */
      color: var(--white);
    }
  
    .menu-toggle {
      display: block;
      position: absolute;
      top: 10px;
      right: 10px; /* Posición en el lado derecho */
      z-index: 1000;
    }
  }
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se queda en su lugar */
    z-index: 1000; /* Alto z-index para estar sobre todo */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; /* Permitir scroll si es necesario (el fondo) */
    background-color: rgba(0,0,0,0.6); /* Negro con opacidad */
}

/* El contenido del modal (la caja blanca) */
.modal-content {
    background-color: var(--white);
    margin: 5% auto; /* 5% desde arriba y centrado horizontalmente */
    padding: 30px;
    border: 1px solid #888;
    width: 90%; /* Ancho del modal, ajustado para móviles */
    max-width: 800px; /* Ancho máximo para pantallas grandes */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation: fadeInModal 0.5s;
}

/* Animación de entrada para el modal */
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón para cerrar (la X) */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-header-title {
    font-size: 1.8rem;
    font-family: var(--header-font);
    color: var(--secondary-color);
    margin-bottom: 5px;
    border-bottom: 2px solid var(--extra-light);
    padding-bottom: 10px;
    text-align: left;
}

.modal-subheader {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
}

/* Contenedor para el scroll de los archivos */
.modal-body-content {
    max-height: 70vh; /* Altura máxima para forzar el scroll */
    overflow-y: auto; /* Habilitar scroll vertical */
    padding-right: 15px; /* Espacio para la barra de scroll */
}

/* Estilo para cada ítem de descarga (similar a services/projects card) */
.modal-download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--extra-light);
}

.modal-download-item:last-child {
    border-bottom: none;
}

.modal-download-item img {
    max-width: 50px; /* Tamaño más pequeño para los íconos */
    height: auto;
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.modal-download-item h4 {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.modal-text-content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Media Query para móvil */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 15px;
    }
    .modal-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }
    .modal-text-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }
}
.download{
    background-color: transparent;
    
}

