body, html {
    height: 100%;
    margin: 0;
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #2b0b3d 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: url('fondo.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Contenedor centralizado */
.contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Capa oscura para que el texto resalte sobre el fondo */
}

.titulo-principal h1 {
    color: #ffffff;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 0px 4px 10px rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.titulo-principal span {
    color: #da4167;
    text-shadow: 0px 0px 15px rgba(218, 65, 103, 0.5);
}

.boton a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

.boton a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.boton p {
    margin: 0;
    letter-spacing: 1px;
}

.texto-principal {
    color:#ffffff;
    margin-top: 3rem;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out;
}

.texto-principal span {
    font-weight: 700;
    color: #e4e022;
    text-shadow: 0px 0px 10px rgba(218, 65, 103, 0.4);
}

.arrow {
    margin-top: 2rem;
}

.arrow img {
    border-radius: 50%;
    object-fit: cover;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes moveArrow {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

/* Fijar titulo arriba y texto abajo para TODAS las pantallas */
.titulo-principal {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 10;
}

.texto-principal {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 10;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Diseño Móvil: Hacer que la foto se estire para ocupar toda la pantalla */
@media (max-width: 768px) {
    body::before {
        background-size: 100% 100%;
    }
}

/* Diseño Escritorio: Márgenes laterales para simular encuadre y centrar foto */
@media (min-width: 769px) {
    body::before {
        width: 100%;
        max-width: 600px; /* Limita el ancho del fondo a un encuadre vertical o acotado */
        left: 50%;
        transform: translateX(-50%);
        border-left: 2px solid rgba(255,255,255,0.05);
        border-right: 2px solid rgba(255,255,255,0.05);
        box-shadow: 0 0 40px rgba(0,0,0,0.8);
    }
    
    .contenido {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}
