body {
  font-family: Arial, sans-serif;
  margin: 0; padding: 0;
  background: #f0f6f8;
  color: #003845;
}

/* ------------------ HEADER ------------------ */
header {
  background-color: #005f73;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
header h1 {
  margin: 0;
  font-size: 1.8rem;
}
nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav a:hover, nav a[aria-current="page"] {
  background-color: #94d2bd;
  color: #003845;
}

/* ------------------ BANNER ------------------ */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #023e8a;
  color: white;
  padding: 3rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.banner img {
  width: 50%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  transition: opacity 0.5s ease;
}
.banner-text {
  max-width: 500px; /* MÁS ANGOSTO */
  flex: 1 1 300px;
  text-align: left;
}
.banner-text h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: #94d2bd;
  color: #003845;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #52b788;
  color: white;
}

/* ------------------ SECCIONES ------------------ */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.fraud-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  outline: none;
}
.fraud-section img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.fraud-section div {
  flex: 1;
}
.fraud-section h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0077b6;
}
.fraud-section p {
  margin: 0 0 0.7rem 0;
  font-size: 1rem;
}
.fraud-section a {
  font-weight: bold;
  color: #52b788;
  text-decoration: none;
}
.fraud-section a:hover {
  text-decoration: underline;
}

/* ------------------ OTRAS SECCIONES ------------------ */
.why-section {
  background: white;
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  text-align: center;
}
.why-section img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.video-section {
  max-width: 700px;
  margin: 2rem auto 3rem;
  text-align: center;
}
.video-section iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
.resources {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem auto;
  max-width: 900px;
  flex-wrap: wrap;
}
.resources-column {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  width: 300px;
}
footer {
  background: #005f73;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* ------------------ RESPONSIVIDAD ------------------ */
@media (max-width: 768px) {
  .banner {
      flex-direction: column;
      text-align: center;
  }
  .banner img {
      width: 100%;
  }
  .banner-text {
      max-width: 90%;
  }
  nav ul {
      flex-direction: column;
      align-items: center;
  }
  .fraud-section {
      flex-direction: column;
      text-align: center;
  }
  .fraud-section img {
      width: 100%;
      height: auto;
  }
}

@media (max-width: 480px) {
  .banner-text h2 {
      font-size: 1.8rem;
  }
  .banner-text p {
      font-size: 1rem;
  }
  .btn-primary {
      padding: 0.6rem 1.2rem;
  }
}


/* Botón menú hamburguesa */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Menú visible solo en pantallas grandes */
nav ul {
  display: flex;
  gap: 1rem;
}

/* Vista móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: #005f73;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  nav ul.show {
    display: flex;
  }

  nav li {
    margin-bottom: 0.5rem;
  }
}


  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* relación 16:9 */
    height: 0;
    overflow: hidden;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .video-section {
    max-width: 800px; /* opcional, para centrar y limitar ancho */
    margin: auto;
    padding: 1rem;
  }

  .video-section h2 {
    text-align: center;
    margin-bottom: 1rem;
  }


    .alerts {
    background-color: #f8f9fa;
    border-left: 5px solid #d9534f;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .alerts h2 {
    color: #d9534f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  .alerts ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
  }

  .alerts ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
  }

  .alerts ul li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
  }

  .btn-alertas {
    display: inline-block;
    background-color: #d9534f;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .btn-alertas:hover {
    background-color: #c9302c;
  }


  .btn-consejos {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0077b6;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-consejos i {
  font-size: 1.2rem;
}

.btn-consejos:hover {
  background-color: #005f87;
  transform: translateY(-2px);
}