/* Base Styles */
:root {
  --primary-color: #281e52;
  --hover-color: #f3b844;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f7f7f7;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

body {
  line-height: 1.3;
  color: var(--black);
}

/* Pre header */

.he_header {
  font-family: Arial, sans-serif;
  background-color: var(--primary-color);
  height: 40px; /* Altura total del pre-header */
  line-height: 40px; /* Alinea verticalmente el contenido */
  color: #ffffff;
}

.pre-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%; /* Asegura que ocupe toda la altura del pre-header */
}

.he_logo {
  margin-left: 20px; /* Espacio a la izquierda del logo */
}

.he_logo img {
  height: 20px; /* Ajusta la altura del logo */
  width: auto;
  display: block;
}

.he_menu {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alinea el texto y enlaces a la derecha */
  gap: 25px; /* Espaciado entre el texto y los enlaces */
  margin-right: 5rem;
}

.he_menu p {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap; /* Evita saltos de línea */
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px; /* Espaciado entre enlaces */
}

.nav-item .nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap; /* Evita saltos de línea */
  transition: color 0.3s ease;
}

.nav-item .nav-link:hover {
  color: var(--hover-color); /* Color al pasar el cursor */
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Content */
.hero-content {
  text-align: center; /* Centra el contenido horizontalmente */
  padding: 20px;
}

.hero-content h1 {
  margin: 5px 0;
  font-size: 4rem;
  color: var(--primary-color);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.subtitle {
  max-width: 800px; /* Limita el ancho del subtítulo */
  margin: 0 auto; /* Centra el elemento horizontalmente */
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 10px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn.primary:hover {
  background-color: #1d1640;
}

.btn.secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Featured Image */
.featured-image {
  padding: 60px 0;
  text-align: center;
}

.square-image {
  width: 900px;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq {
  padding: 60px 20px;
  background-color: var(--gray-100);
}

.faq h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--gray-500);
  display: none;
}

.faq-item.active p {
  display: block;
}

/* Stats Section */
.stats {
  padding: 60px 20px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--gray-500);
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  padding: 60px 20px;
  color: var(--white);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
  color: var(--white);
  opacity: 0.9;
}

.footer-column.logos img {
  max-width: 150px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .hero-image {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 200px;
  }

  .hero-image {
    height: 200px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .subtitle {
    font-size: 1.5rem;
  }

  .square-image {
    width: 100%;
    height: auto;
    max-width: 500px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats-container {
    flex-direction: column;
    gap: 30px;
  }
}
