/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: 'Arial', sans-serif;
  color: #fff;
  margin: 0;
  line-height: 1.5;

  background: url('../images/filtro.png') no-repeat center center;
  background-size: cover;  /* muestra la imagen completa sin recorte */
  background-attachment: fixed; /* mantiene la imagen fija al hacer scroll */
  min-height: 100vh;
  width: 100%;
}

/* ================= HEADER y NAVBAR ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0, 0, 50, 0.6); /* azul oscuro semitransparente */
}

header .logo img {
  height: 130px;
  width: auto;
  display: block;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
}

header nav a:hover {
  opacity: 0.7;
}

/* Botón de contacto dentro del nav */
header nav a.contacto {
  background-color: #002c80;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

header nav a.contacto:hover {
  background-color: #001a4d;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  justify-content: center;  /* centra horizontalmente */
  align-items: center;      /* centra verticalmente */
  flex-wrap: wrap;
  min-height: 80vh;         /* ocupa buena parte de la pantalla */
  padding: 50px;
}

/* Texto principal */
.texto-principal {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
}

.texto-principal h1 {
  font-size: 4vw;           /* relativo a la pantalla */
  font-weight: bold;
  line-height: 1.2;
  position: relative;
  padding-left: 30px;
}

.texto-principal h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 8px;
  background-color: #fff;
  border-radius: 4px;
}

.texto-principal h1 span {
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 2px #dfe4ec;
}

.texto-principal p {
  font-size: 1.2vw;
  margin-top: 20px;
  line-height: 1.4;
}

/* Tarjeta */
.card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.card img {
  width: 100%;
  border-radius: 5px;
}

.card-texto {
  font-size: 1rem;
  background-color: #fafafa;
  color: #000;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border-radius: 0 0 10px 10px;
}

.card-texto h3 {
  margin-bottom: 10px;
}

.boton {
  display: inline-block;
  margin-top: 20px;
  background-color: #002c80;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
}

.boton:hover {
  background-color: #001a4d;
}

/* Icono WhatsApp */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon img {
  width: 100%;
  height: 100%;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 30px;
    justify-content: center;
    min-height: 70vh;
  }

  .texto-principal {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .texto-principal h1 {
    font-size: 6vw;
  }

  .texto-principal p {
    font-size: 2vw;
  }

  .card {
    width: 80%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  header .logo img {
    height: 80px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  header nav a {
    font-size: 18px;
  }

  header nav a.contacto {
    font-size: 16px;
    padding: 8px 16px;
  }

  .texto-principal h1 {
    font-size: 8vw;
    padding-left: 0;
  }

  .texto-principal p {
    font-size: 3vw;
  }

  .card {
    width: 90%;
  }
}
