﻿/* 🔧 Ajustes generales */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.index-fondo {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ocupa mínimo toda la pantalla */
    height: auto; /* Deja crecer si el contenido es más grande */
    overflow: hidden;
}


.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.overlay-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh; /* mínimo una pantalla */
    height: auto; /* crece automáticamente */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem; /* recomendable para celular */
}


/* ✨ Título superior */
.titulo-superior {
    position: relative; /* ✅ YA NO ABSOLUTE */
    top: 0;
    left: 0;
    transform: none;
    margin-bottom: 40px; /* ✅ separa del botón */
    z-index: 2;
}


.titulo-gradient {
    font-weight: 1000;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #000 20%, #ff0000 80%);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 0 5px rgba(255,0,0,0.5),
        0 0 10px rgba(255,0,0,0.3),
        0 0 20px rgba(0,0,0,0.3);
}

.titulo-resaltado {
    background: linear-gradient(180deg, #ff0000, #000);
    -webkit-background-clip: text;
    color: transparent;
}

/* 🎯 Botón centrado verticalmente */
.boton-centro {
    position: absolute;
    top: 40%; /* mitad vertical */
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 🏍️ Tarjeta o botón */
.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 1rem;
    min-width: 220px;
    max-width: 280px;
    transition: transform 0.3s, background 0.3s;
}

.categoria-card:hover {
    transform: scale(1.05);
    background: rgba(255, 0, 0, 0.6);
}

.categoria-logo {
    height: 60px;
}

.categoria-text {
    font-size: 1.1rem;
    text-align: center;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
    .titulo-superior {
        font-size: 2rem;
        margin-top: 1.5rem;
    }

    .categoria-card {
        min-width: 180px;
    }
}


.botones-centro {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 0rem;
    position: relative; /* o simplemente elimínalo */
}


.categoria-card {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    width: auto !important; /* evita que se extiendan */
    max-width: 200px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .categoria-card:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

.categoria-logo {
    width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
}

.categoria-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffcc00;
    text-align: center;
}


@media (max-width: 768px) {
    .botones-centro {
        position: relative; /* <-- ahora sí respeta el flujo del contenido */
        bottom: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        z-index: 1; /* ya no queda encima del contenido */
    }
}
