@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;700&display=swap');

:root {
    --primary-bg: #f7f6f2;
    --highlight-bg: #bb9913;
    --hover-bg: #e6bc18;
    --text-color: #444;
    --heading-color: #333;
    --icon-size: 20px;
    --border-radius: 8px;
}

body {
    font-family: "Epilogue", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    background: #fff;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las columnas horizontalmente */
}

.card-column {
    flex: 0 0 25%; /* 4 columnas */
    max-width: 25%;
    text-align: center;
    padding: 15px;
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
}

/* Estilo adicional para ajustar en pantallas más pequeñas */
@media (max-width: 1024px) {
    .card-column {
        flex: 0 0 50%; /* 2 columnas en pantallas medianas */
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .card-column {
        flex: 0 0 100%; /* 1 columna en pantallas pequeñas */
        max-width: 100%;
    }
}

.card-details {
    width: 80%;
    margin: auto;
    position: relative;
    transition: 0.3s ease-in-out;
}

.card-details:before {
    content: "";
    width: 190px;
    height: 380px;
    background: var(--primary-bg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skew(-20deg);
    z-index: -1;
    transition: 0.3s ease-in-out;
}

.card-details:hover:before {
    background: var(--hover-bg);
}

.card-icons {
    width: 140px;
    height: 150px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-icons:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    border: 1px solid var(--highlight-bg);
    background: #fff;
    transform: skew(-20deg);
    transition: 0.3s ease-in-out;
}

.card-details:hover .card-icons:before {
    background: var(--highlight-bg);
}

.card-icons img {
    width: 70px;
    height: 70px;
    z-index: 1;
}

.card-details h3 {
    margin: 50px 0 15px;
    font-size: 1.75rem;
    font-weight: 700;
}

.card-details h3 a {
    color: #000;
    text-decoration: none;
}

.card-details p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.read-more-btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--highlight-bg);
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: 0.3s ease-in-out;
     text-decoration: none;
}

.read-more-btn i {
    font-size: var(--icon-size);
    color: #000;
}

.card-details:hover .read-more-btn {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.requirements-list {
    background: var(--primary-bg);
    padding: 0;
    margin: 0 auto 30px auto; /* Aumenta el margen superior para moverlo más abajo */
    border-radius: 0 0 50% 50%; /* Hace la parte inferior con la forma de la mitad de un círculo */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative; /* Para ajustes si es necesario */
    overflow: hidden; /* Asegura que el contenido no sobresalga del borde */
}


.requirements-list h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--heading-color);
}

.requirements-list h3 {
    font-size: 1.4rem;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.requirements-list ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.requirements-list li {
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.requirements-list li i {
    margin-right: 8px;
    color: #4CAF50;
}

.light-icon {
  width: 150px; /* Tamaño personalizado */
  height: 150px; /* Tamaño personalizado */
  border-radius: 50%; /* Bordes redondeados, creando un círculo */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil */
  object-fit: cover; /* Ajusta la imagen dentro del contenedor sin distorsionarla */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efecto suave al pasar el ratón */
}

.light-icon:hover {
  transform: scale(1.05); /* Efecto de escala al pasar el ratón */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada en hover */
}


/* Barra de navegación fija en la parte superior */
header {
  position: fixed; /* Fija el menú en la parte superior */
  top: 0; /* Asegura que esté en la parte superior */
  left: 0;
  right: 0;
  background-color: #0f2747;
  z-index: 1000; /* Asegura que el menú esté por encima de otros elementos */
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contenedor del logo con imagen ovalada */
.logo-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-container:hover {
  transform: translateX(-50%) scale(1.1);
}
/* Contenedor del menú */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  position: relative;
}

/* Menú izquierdo */
.left-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-menu li {
  margin: 0 20px;
  opacity: 0; /* No visible al inicio */
  transform: translateY(-30px); /* Comienza fuera de la vista */
  animation: bounceIn 0.8s ease-out forwards;
}

.left-menu li:nth-child(1) {
  animation-delay: 0.2s;
}
.left-menu li:nth-child(2) {
  animation-delay: 0.4s;
}
.left-menu li:nth-child(3) {
  animation-delay: 0.6s;
}

.left-menu li a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Estilo para el enlace activo */
.left-menu li a.active {
  color: #f39c12;  /* El color que desees para el enlace activo */
}

/* Pseudo-elemento ::after */
.left-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: #fff;
  transform: scaleX(0); /* Inicialmente no visible */
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

/* Efecto hover */
.left-menu li a:hover {
  color: #f39c12;
}

.left-menu li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Efecto cuando el enlace tiene la clase .active */
.left-menu li a.active::after {
  transform: scaleX(1);  /* Hacerlo visible */
  transform-origin: bottom left;
}

/* Menú derecho */
.right-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.right-menu li {
  margin: 0 20px;
  opacity: 0; /* No visible al inicio */
  transform: translateY(-30px); /* Comienza fuera de la vista */
  animation: bounceIn 0.8s ease-out forwards;
}

.right-menu li:nth-child(1) {
  animation-delay: 0.4s;
}
.right-menu li:nth-child(2) {
  animation-delay: 0.6s;
}

.right-menu li a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Pseudo-elemento ::after para la línea */
.right-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: #fff;
  transform: scaleX(0); /* Inicialmente no visible */
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

/* Efecto hover */
.right-menu li a:hover {
  color: #f39c12;
}

.right-menu li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Efecto cuando el enlace tiene la clase .active */
.right-menu li a.active {
  color: #f39c12;  /* Color activo */
  font-weight: bold;
}

.right-menu li a.active::after {
  transform: scaleX(1);  /* La línea aparece */
  transform-origin: bottom left;
}


/* Animación con rebote */
@keyframes bounceIn {
  0% {
    opacity: 0; /* Totalmente invisible */
    transform: translateY(-30px); /* Fuera de la vista */
  }
  50% {
    opacity: 1; /* Aparece */
    transform: translateY(10px); /* Rebote */
  }
  100% {
      opacity: 1;
    transform: translateY(0); /* Posición final */
  }
}

/* Media query para pantallas pequeñas */
@media screen and (max-width: 768px) {
  /* Barra de navegación */
  header {
    padding: 10px 20px;
        height: 8%;
  }

  /* Logo centrado y más pequeño */
  .logo-container {
    width: 100px;
    height: 100px;
  }

  /* Menú de navegación en dispositivos móviles */
  .navbar {
    flex-direction: column; /* Coloca los elementos en columna */
    align-items: center;
  }

  /* Menú izquierdo y derecho juntos */
  .left-menu, .right-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: none;
  }

  .left-menu li, .right-menu li {
    margin: 10px 0;
  }

  .left-menu li a, .right-menu li a {
    font-size: 16px; /* Ajusta el tamaño de fuente */
    padding: 10px;
  }

  /* Logo más pequeño */
  .logo-container {
    width: 90px;
    height: 90px;
  }

  /* Si es necesario, ocultar menús al lado */
  .navbar {
    position: relative;
    display: block;
    justify-content: center;
  }
  ul li:first-child {
  margin-left: 70px;
}
  /* Aplicar margen solo al último <li> */
ul li:last-child {
  margin-left: 108px;
}

.requirements-list li {
margin-left: 70px;
}

}

@media (max-width: 768px) {
    .card-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Contenedor principal de la página */
.content {
    min-height: calc(100% - 60px); /* Resta la altura del footer para asegurar que ocupe todo el espacio restante */
    display: flex;
    flex-direction: column;
}

/* El pie de página siempre al fondo, pero inicialmente oculto */
.footers {
    background-color: var(--primary-bg); /* Color de fondo */
    color: var(--text-color); /* Color de texto */
    text-align: center;
    padding: 20px 0;
    position: fixed; /* Fijar el footer en la parte inferior */
    left: 0;
    right: 0;
    bottom: 0; /* Coloca el footer fuera de la vista por defecto */
    width: 100%;
    font-size: 1rem;
    border-top: 3px solid #4CAF50; /* Línea decorativa en la parte superior */
    transition: bottom 0.3s ease; /* Animación suave */
}
.footer  {
    margin-top: 20px;

}
.footer p {
    margin: 0;
    font-weight: 600;
}

.footer .container {
    width: 90%;
    margin: 0 auto;
}/* Animación para las tarjetas */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación a las tarjetas */
.creative-cards .card-column {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: var(--delay);
}

.creative-cards .card-column:nth-child(1) {
    --delay: 0s;
}
.creative-cards .card-column:nth-child(2) {
    --delay: 0.2s;
}
.creative-cards .card-column:nth-child(3) {
    --delay: 0.4s;
}
.creative-cards .card-column:nth-child(4) {
    --delay: 0.6s;
}
/* Contenedor principal */
.requirements-list {
  overflow: hidden; /* Oculta el contenido que se anima fuera del contenedor */
}

.requirements-list h2, 
.requirements-list h3, 
.requirements-list ul {
  opacity: 0; /* Comienza invisible */
  transform: translateX(-100%); /* Desplaza fuera del contenedor hacia la izquierda */
  animation: slideIn 1s forwards;
}

.requirements-list h2 {
  animation-delay: 0.2s;
}

.requirements-list h3 {
  animation-delay: 0.5s;
}

.requirements-list ul {
  animation-delay: 0.8s;
}

.requirements-list ul li {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: calc(0.8s + var(--delay, 0s)); /* Retardo variable por elemento */
}

.requirements-list ul li:nth-child(1) {
  --delay: 0s;
}
.requirements-list ul li:nth-child(2) {
  --delay: 0.2s;
}
.requirements-list ul li:nth-child(3) {
  --delay: 0.4s;
}

/* Animación de entrada para títulos y lista */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0); /* Desplaza a la posición final */
  }
}

/* Animación de desvanecimiento para cada elemento */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero {
  height: 100vh;
  background: linear-gradient(to bottom, #0f2747, #1c3c5a);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  padding: 10px 25px;
  background-color: #f39c12;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e67e22;
}

/* Animación de salida hacia arriba con un efecto de escala y opacidad */
@keyframes heroExitUpSmooth {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1); /* Posición inicial */
  }
  40% {
    opacity: 0.6;
    transform: translateY(-40px) scale(1.05); /* Se mueve hacia arriba y ligeramente se amplía */
  }
  100% {
       height: 0;
    opacity: 0;
    transform: translateY(-100%) scale(0.5); /* Se mueve completamente hacia arriba y se reduce aún más */
  }
}

.hero {
  animation-duration: 1.2s; /* Duración ligeramente mayor para un efecto más suave */
  animation-fill-mode: forwards; /* Mantiene el estado final después de la animación */
  transform-origin: center; /* Hace que el efecto sea más fluido desde el centro */
}

/* Activar la animación de salida cuando sea necesario */
.hero.exit {
  animation-name: heroExitUpSmooth;
}

.invi{
      background: var(--primary-bg);
    padding: 30px;

    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

}



.scroll img{
    width: 70px;
    margin: 0 20px;
    transition: .5s;
    height: 28px;
    cursor: pointer;
}

.scroll img:not(:hover){
    filter: grayscale(100%);
}

.scroll {
 position: relative;
    display: flex;
    width: 1200px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}



.scroll div{
    white-space: nowrap;
    animation: animate 30s linear infinite;
}
/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 767px) {
    .scroll {
        width: 100%; /* Ocupa el 100% del ancho en pantallas pequeñas */
        overflow-x: auto; /* Permite desplazarse horizontalmente si es necesario */
                margin-bottom: 100px;
    }

    .scroll img {
        width: 50px; /* Ajusta el tamaño de las imágenes para pantallas más pequeñas */
        height: 20px; /* Ajusta la altura de las imágenes */
        margin: 0 10px; /* Menor espacio entre las imágenes */
    }
}

@keyframes animate {
    0%{
        transform: translateX(0);
    }

    100%{
        transform: translateX(-100%);
    }
}

.scroll:hover div{
    animation-play-state: paused;
}



/* Sección de contenido principal */
.contenido-principal {
    flex-grow: 1;
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
}

.footer-simple {
    background-color: #333;
    color: white;
    padding: 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}



.footer-simple p {
    font-size: 14px;
    margin-bottom: 10px;
}

.redes a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
}

.redes a:hover {
    color: #3498db;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .redes a {
        font-size: 14px;
        margin: 0 10px;
    }
}
