/* General styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff; /* Fondo blanco */
    color: #333;
    line-height: 1.6;
    width: 100%;
    height: 100%;
}

.barra-naranja {
    height: 8px;
    background-color: #e17918;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

@media (max-width: 768px) {
  /* Intro: carrusel ajustado */
    .intro img {
      width: 100vw;
      height: 100vh;
      object-fit: cover;
    }

  .intro ul {
    width: 300%;
  }

  .intro li {
    width: 100vw;
  }

  .intro img {
    width: 100vw;
    height: auto;
    object-fit: cover;
  }

  .text {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 20px;
    transform: none;
    padding: 10px;
    max-width: 90%;
  }

  .text h2 {
    font-size: 28px;
  }

  .text p {
    font-size: 14px;
    max-width: 100%;
  }

  /* Navbar: ajustado para móviles */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 10px;
  }

  .navbar-left {
    font-size: 1.5rem;
  }

  .navbar-left img {
    height: 40px;
  }

  .navbar-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .navbar-right a {
    font-size: 0.95rem;
  }
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222121e8; /* Cambiar a blanco */
    color: #ffffff; /* Cambiar el color del texto a negro */
    padding: 20px 40px;
    position: fixed;
    top: 8px;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-left {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el logo y el texto */
}

.navbar-left img {
    height: 50px; /* Aumentar el tamaño del logo */
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-right a {
    color: #ffffff; /* Cambiar el color de los enlaces a negro */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el icono y el texto */
}

.navbar-right a:hover {
    color: #E68329; /* Color al pasar el mouse */
    transform: scale(1.1);
}/* Section styles */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #E68329;
}

/* Introduction section */
.intro {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.intro ul {
    display: flex;
    padding: 0;
    margin: 0;
    width: 300%; /* Si hay 3 imágenes, usar 300% */
    list-style: none;
    transition: transform 0.5s ease; /* Transición suave */
}

.intro li {
    width: 100vw; /* Cada imagen ocupa el 100% del ancho de la ventana */
    flex-shrink: 0;
    position: relative;
}

.intro img {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.text {
    position: absolute;
    text-align: left; /* Alinear texto a la izquierda */
    padding: 20px; /* Espaciado alrededor del texto */
    top: 50%; /* Centra verticalmente */
    left: 110px; /* Alinea el texto a la izquierda con un margen */
    transform: translateY(-50%); /* Ajusta la posición verticalmente */
    color: #ffffff;
    z-index: 1; /* Asegúrate de que el texto esté por encima de la imagen */
}

.text h2 {
    font-size: 45px;
    margin-bottom: 10px; /* Espacio entre el h2 y el párrafo */
    color: #ffffff;
}

.text p {
    font-size: 18px; /* Ajusta el tamaño del texto del párrafo */
    margin: 0; /* Elimina el margen por defecto */
    max-width: 500px; /* Ajusta el ancho máximo según sea necesario */
    overflow-wrap: break-word; /* Permite que las palabras largas se dividan */
    line-height: 1.5; /* Espaciado entre líneas para mejor legibilidad */
}

.intro li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(35, 33, 47, 0.8), rgba(35, 33, 47, 0)); /* Degradado con el color especificado */
    z-index: 0; /* Asegúrate de que el degradado esté detrás del texto */
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px; /* Ajusta el padding para un mejor tamaño */
    cursor: pointer;
    z-index: 10;
    font-size: 24px; /* Tamaño del icono */
}

.prev {
    left: 30px; /* Ajusta la distancia desde el borde izquierdo */
}

.next {
    right: 30px; /* Ajusta la distancia desde el borde derecho */
}

/* News section */
.novedades-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.novedad {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 1100px;         /* Tamaño fijo solicitado */
  height: 642.8px;         /* Altura fija solicitada */
  transition: all 0.3s ease;
}

.novedad img {
  width: 45%;
  height: 100%;
  object-fit: contain; /* mostrar toda la imagen sin recortar */
  background-color: #f8f8f8; /* opcional para fondo neutro */
}

.novedad .contenido {
  padding: 30px;
  text-align: left;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 100%;
}

.novedad .contenido a {
  color: #1a0dab;
  text-decoration: underline;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}

.novedad h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #181818;
}

.novedad p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Scroll estético */
.novedad .contenido::-webkit-scrollbar {
  width: 6px;
}

.novedad .contenido::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.nav-btn {
  background-color: #e17918;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.4rem;
  height: fit-content;
  align-self: center;
}

.nav-btn:hover {
  background-color: #ff9543;
}

@media (max-width: 768px) {
  .novedad {
    flex-direction: column;
    width: 95%;
    height: auto;
  }

  .novedad img {
    width: 100%;
    height: 250px;
  }

  .novedad .contenido {
    padding: 20px;
    max-height: none;
    overflow-y: visible;
  }

  .nav-btn {
    font-size: 1rem;
    padding: 10px 15px;
  }
}

/* Objectives section */

.objectives {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #222121 100%);
    position: relative;
    overflow: hidden;
}

.objectives-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.objectives h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ffffff; /* Color del título */
    position: relative;
    display: inline-block;
}

.objectives h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #E68329;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.objectives .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.objectives-container {
    display: flex;
    justify-content: center; /* Espacio entre las tarjetas */
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten en varias filas */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.objective-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    width: 100%;
    max-width: 350px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 131, 41, 0.1) 0%, rgba(230, 131, 41, 0) 100%);
    z-index: -1;
}

.objective-card:hover {
    transform: translateY(-10px); /* Efecto de elevación al pasar el mouse */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(230, 131, 41, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(230, 131, 41, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.card-icon i {
    font-size: 2.5rem;
    color: #E68329;
}

.objective-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.objective-card p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-footer {
    height: 4px;
    width: 40%;
    background: #E68329;
    margin: 0 auto;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.objective-card:hover .card-footer {
    width: 60%;
}

/* Efecto de partículas de fondo (opcional) */
.objectives::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* FAQ section */
.faq {
    padding: 60px 40px;
    margin:60px auto;
    background-color: #ffffff; /* Color de fondo claro */
    border: 1px solid #e0e0e0; /* Borde gris claro */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    margin-bottom: 50px 0;
    text-align: center;
    max-width: 1300px;
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333; /* Color del título */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: block; /* Asegura que el contenedor sea en bloque */
    width: 100%; /* Ocupa todo el ancho disponible */
    display: block;
}

.faq-item {
    display: block; /* Esto ya lo tienes correcto */
    width: 100%; /* Asegura que cada ítem ocupe todo el ancho */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
  
.question {
    background-color: #e17918;
    color: white;
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.question:hover {
    background-color: #ff9543;
}

.question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.answer {
    display: none;
    background-color: #fff;
    padding: 15px 20px;
    color: #333;
    text-align: left;
    border-top: 1px solid #eee;
}

.answer p {
    margin: 0;
}
  
.icon {
    font-size: 1.5rem;
    width: 1.5rem; /* Ancho fijo */
    text-align: center; /* Centrado perfecto */
    display: inline-block; /* Para mantener el espacio consistente */
}


/* Estilos para la sección de contactos */
.contact-icons {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background-color: #edeceb;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto 0;
}

.contact-icons h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.icons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-icon.whatsapp {
    background-color: #E68329;
    color: white;
}

.contact-icon.email {
    background-color: #E68329;
    color: white;
}

.contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon i {
    font-size: 1.5rem;
}

/* Footer styles */
.footer {
    background-color: #040404;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer .social-links a {
    color: #E68329;
    text-decoration: none;
    font-size: 1.5rem;
}

.footer .social-links a:hover {
    color: #E66229;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .navbar-left {
        margin-bottom: 10px;
        font-size: 1.8rem;
    }

    .navbar-right {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    section {
        padding: 40px 20px;
    }

    section h2 {
        font-size: 1.5rem;
    }
}

/* Botón de menú hamburguesa */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ffffff; /* negro para que combine con tu navbar */
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    cursor: pointer;
    color: #ffffff;
  }

  .navbar-right {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
  }

  .navbar-right.show {
    display: flex;
  }

  .navbar-left {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .navbar-left img {
    height: 40px;
  }
}

/* Añade esto a tus media queries para móvil */
@media (max-width: 768px) {
    /* Ajustes para el carrusel/introducción */
    .intro {
        padding: 10px;
        overflow: hidden;
    }

    .intro ul {
        width: 100%;
        padding: 0;
    }

    .intro li {
        flex-direction: column;
        text-align: center;
    }

    .intro img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
    }

    .intro .text {
        padding: 15px;
        width: 100%;
        text-align: left;
    }

    .intro h2 {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .intro p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Flechas de navegación */
    .prev, .next {
        font-size: 1.5rem;
        padding: 10px;
        top: 40%;
    }
}


/* Añade esto para mejor visualización en móviles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 20px 10px;
    }
}

.footer {
    background-color: #222121e8;
    color: #ffffff;
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 1rem; /* Aumenta ligeramente el tamaño del texto */
}

.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer .text-warning {
    color: #E68329 !important;
}

.footer .creadores {
    margin-top: 20px;
}

.footer .creadores ul {
    list-style: none;
    padding: 0;
}

.footer .creadores li {
    margin-bottom: 5px;
    font-weight: 400;
}

.footer .social-icons a {
    color: #E68329; /* Naranja */
    margin-right: 20px;
    font-size: 2rem; /* Más grandes */
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #ffffff; /* Cambia a blanco al pasar el mouse */
    transform: scale(1.2); /* Ligeramente más grande al pasar el mouse */
}
