@font-face {
  font-family: 'GothicB';
  src: url('./fonts/GothicB.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat Regular';
  src: url('./types/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* 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/fondola.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: #3054a0;
  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-family: 'GothicB', sans-serif;
  font-size: 4vw;
  font-weight: bold; /* Bebas Neue solo tiene un peso */
  line-height: 1.2;
  position: relative;
  padding-left: 20px;
}

.texto-principal h1::before {
  font-family: 'Montserrat Regular';
  content: "";
  position: absolute;
  left: -50px;
  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 vw;
  margin-top: 20px;
  line-height: 1.4;
  max-width: 400px; 
  font-weight: bold;
}

/* Tarjeta */
.card {
  background-color: #ffffff;       /* blanco sólido */
  padding: 0 20px 20px 20px;       /* quito el padding arriba */
  border-radius: 10px;
  width: 350px;
  backdrop-filter: none;
  box-shadow: none;
  overflow: hidden;                /* para que el border-radius funcione y recorte */
}


.card img {
  
 display: block !important;
  width: calc(100% + 40px); /* 100% + 2 * padding del card */
  margin-left: -20px;
  margin-right: -20px;
  height: auto;
  border-radius: 10px 10px 0 0; /* solo arriba redondeado */
}

.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 {
  white-space: pre-line;
  font-size: 1.9rem; /* sube el tamaño si quieres */
  line-height: 1.2;
}

.card-texto h3,
.card-texto p {
  text-align: center;
}
.card-texto h3::after {
  content: "";
  display: block;
  width: 20%;             /* ajusta el ancho de la línea */
  height: 4px;            /* grosor de la línea */
  background-color: #6091cc; /* color de la línea */
  margin: 8px auto 0 auto; /* separa un poco del texto y la centra */
  border-radius: 2px;
}

.boton {
  display: inline-block;
  margin-top: 20px;
  background-color: #3054a0;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
}

.boton:hover {
  background-color: #001a4d;
}

.whatsapp-icon,
.instagram-icon {
  position: fixed;
  bottom: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* Fondo transparente */
  cursor: pointer;
  z-index: 1000; /* Por si acaso */
}

.whatsapp-icon {
  left: 20px;
}

.instagram-icon {
  left: 90px; /* 60px (ancho whatsapp) + 10px espacio + 20px margen inicial */
}

.whatsapp-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: none; /* para que no se afecte color del SVG */
}
.instagram-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: invert(100%); /* para que no se afecte color del SVG */
 opacity: 0.70;
}


/* ================= 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%;
  }
}
