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

/* General */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Encabezado (Header) */
.header {
  background-color: #007bff;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px; /* Tamaño del logo */
  height: auto;
  margin-right: 10px;
}

.app-name {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navegación */
.header .nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.header .nav-links li {
  display: inline;
}

.header .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
}

.header .nav-links a:hover,
.header .btn-demo {
  color: #f70f0f;
}

.btn-demo {
  background-color: #f59898;
  color: #007bff;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
}

/* Menú en móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 5px;
}

/* Sección Principal (Hero) */
.hero {
  position: relative;
  background: url('../img/background.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* Aumenta la opacidad para hacer la capa más oscura */
  z-index: -1;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  
  color: #007bff;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
 
  color: #007bff;
}

.hero .btn-primary,
.hero .btn-secondary {
  text-decoration: none;
  padding: 10px 20px;
  color: #007bff;
  background-color: #fff;
  border-radius: 5px;
  font-weight: bold;
  margin: 5px;
}

.hero .btn-primary:hover {
  background-color: #e9ecef;
  color: #007bff;
}

.hero .btn-secondary:hover {
  background-color: #f59898;
  color: #f70f0f;
}

/* Sección "¿Qué es ResiAccess?" */
.about {
  padding: 50px 20px;
  text-align: center;
  background-color: #f3f4f6;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  color: #333;
  font-size: 1.1em;
}

/* Características Principales */
.features {
  padding: 50px 20px;
  text-align: center;
  background-color: #e9ecef;
}

.features h2 {
  color: #007bff;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  color: #007bff;
}

.feature-card p {
  color: #555;
}

/* Ventajas */
.benefits {
  padding: 50px 20px;
  background-color: #f3f4f6;
  text-align: center;
}

.benefits h2 {
  color: #007bff;
}

.benefit-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.benefit {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 250px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.benefit h3 {
  color: #007bff;
}

.benefit p {
  color: #555;
}

/* Llamado a la Acción (CTA) */
.cta {
  background-color: #007bff;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.cta h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.cta .btn-primary {
  text-decoration: none;
  padding: 10px 20px;
  color: #007bff;
  background-color: #fff;
  border-radius: 5px;
  font-weight: bold;
}

.cta .btn-primary:hover {
  background-color: #f59898;
  color: #f70f0f;
}

/* Pie de Página (Footer) */
.footer {
  background-color: #333;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer-info h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #007bff;
}

.footer p,
.footer a {
  color: #ddd;
  font-size: 0.9em;
  text-decoration: none;
}

.footer a:hover {
  color: #f0f0f0;
}

/* Responsivo */

/* Responsivo */
@media (max-width: 768px) {
  .header .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
  }

  .header .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 10px; /* Espacio entre logo y nombre */
  }

  .app-name {
    font-size: 2rem; /* Aumentar tamaño de texto en móvil */
  }

  .header .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
  }
}