
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: url('./img/meteorito-fondo.webp') no-repeat center center fixed;
    background-size: cover;
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* No repetir la imagen */
    background-attachment: fixed; /* Opcional: fija la imagen al hacer scroll */
    min-height: 100vh;           /* Asegura mínimo la altura del viewport */
    color: white;
    line-height: 1.5; /* Mejora legibilidad */
    position: relative; /* Para el overlay */
}

/* Overlay para oscurecer un poco el fondo y mejorar contraste */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

header {
    padding: 30px 20px;
    font-size: 24px;
    font-weight: 700; /* Más grosor para jerarquía */
}

/* Mejora accesibilidad para focus */
a:focus, button:focus {
    outline: 2px solid #ffae00;
    outline-offset: 2px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    font-size: 20px;
    border-radius: 5px;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cta-button:hover {
    background-color: #c0392b;
}

.contacto a, .imagenes img, .videos iframe {
    display: inline-block;
    margin-top: 10px;
}

.contacto a {
    background: #2ecc71;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: 0.3s;
}

.contacto a:hover {
    background: #27ae60;
}

.imagenes img {
    width: 100%;
    max-width: 600px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.imagenes img:hover {
    transform: scale(1.05);
}

.videos iframe {
    width: 100%;
    max-width: 600px;
    height: 340px;
    border-radius: 5px;
}

.presentacion img {
    width: 150px;
    border-radius: 50%;
    margin-top: 10px;
}

.aimg {
    color: yellow;
    text-decoration: underline; /* Mejor para enlaces */
}

.ebook img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.ebook img:hover {
    transform: scale(1.03);
}

/*eliminar cuando se lance*/

.lanzamiento-cartel {
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  margin: 20px auto;
  border-left: 5px solid #ff4d00;
  border-radius: 8px;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: aparecer 2s ease-in-out;
}

.lanzamiento-cartel .fecha {
  color: #ffae00;
  font-weight: bold;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras para formularios: input y botón juntos y responsivos */
form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

form input[type="email"] {
    flex: 1 1 250px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

form button {
    flex: 0 0 auto;
    padding: 12px 25px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #c0392b;
}

/* Responsive */

@media (max-width: 480px) {
    .container {
        margin: 20px 10px;
        padding: 15px;
    }
    header {
        font-size: 20px;
    }
    .cta-button {
        padding: 12px 20px;
        font-size: 18px;
    }
    .videos iframe, .imagenes img {
        max-width: 100%;
        height: auto;
    }
    form {
        flex-direction: column;
        align-items: stretch;
    }
    form input[type="email"], form button {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
