/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- CONFIGURACIÓN FLEXIBLE PARA EL CUERPO --- */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

/* --- HERO SECTION --- */
.hero {
  background-image: url("../img/Fondo2.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: none;
  margin: 0;
  padding: 0;

  /* Sombra elegante sin franja gris */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* --- NAVBAR --- */
.navbar {
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  flex-wrap: wrap;
}

.logo {
  color: #f72727;
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #f72727;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffffff;
}

.nav-links li a.active {
  font-weight: 700;
  color: #ffffff;
}

/* --- BOTÓN MENÚ MÓVIL --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* --- HERO TEXT --- */
.hero-text {
  text-align: center;
  padding: 40px 20px;
  color: #f72727;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f72727;
  margin-bottom: 10px;
}

.hero-text h3 {
  color: #f72727;
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
}

/* --- CONTENIDO PRINCIPAL --- */
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.content-box {
  background-color: rgba(245, 245, 245, 0.9);
  max-width: 900px;
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  text-align: justify;
  line-height: 1.8;
  color: #222;
}

.content-box p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.content-box strong {
  color: #000;
}

.content-box em {
  color: #444;
}

.content-box img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 0 15px rgba(255, 50, 50, 0.7);
}

/* --- BOTONES --- */
.btn {
  background-color: #f52020;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn a {
  color: white;
  text-decoration: none;
}

.btn:hover {
  background-color: #ef4444;
  transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: auto;
  letter-spacing: 0.3px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 20px 0;
    z-index: 10;
  }

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

  .menu-toggle {
    display: block;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }

  .hero {
    height: 40vh;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h3 {
    font-size: 1rem;
  }

  .content-box {
    padding: 25px 20px;
  }
}
