body
{
    background-color: rgb(129, 72, 53);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
h1,h2,em,strong,p,tr,td,table,li
{
    color: white;
    font-size: 20px;
}
.titulo
{
    font-size: 80px;
    text-align: center;
    text-decoration: underline rgb(0, 0, 0);
}
.vd
{
    width: 1600px;  
    height: 600px; 
    object-fit: fill;
}
.Willy
{
    display: block;      
  margin-left: auto;
  margin-right: auto;
  width: 35%;
}
.rod
{
   background-color: rgb(108, 86, 53); 
   text-align: center;
}
.redes
{
    background:linear-gradient(to left,rgba(109, 8, 8, 0.842),rgb(73, 72, 72));
}
/* Estilo del contenedor de navegación */
.navbar {
    background-color: #222;
    padding: 20px;
    font-family: sans-serif;
}

/* Menú desplegable - Asegúrate de que no haya una llave extra al final */
.navbar{
    position: sticky;
    top: 0;
    background: #111827;
    padding: 15px 0;
    z-index: 1000;
}

.navbar ul{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.navbar a:hover{
    color: #6a0aaa;
}
/* Contenedor que da el marco a la imagen */
.contenedor-imagen {
    width: 500px;
    height: 550px;
    overflow: hidden;
    position: relative;
    border-radius: 15px; /* Bordes redondeados modernos */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Sombra elegante */
    transition: box-shadow 0.3s ease;
}

/* Efecto al pasar el cursor sobre el contenedor */
.contenedor-imagen:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.4); /* Sombra roja al pasar el cursor */
}

/* Interacción con la imagen */
.contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(90%); /* Imagen ligeramente oscura al inicio */
}

/* Efecto de zoom y brillo al pasar el cursor */
.contenedor-imagen:hover img {
    transform: scale(1.15); /* Zoom suave */
    filter: brightness(110%); /* Se aclara al pasar el cursor */
}

    /* 4. Las tablas son el mayor problema en móviles, esto las hace desplazables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .titulo {
        font-size: 40px !important; /* Título más pequeño */
    }
}
/* Contenedor principal ajustado */
.carrusel-contenedor {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 900px; /* Puedes aumentar esto si quieres que sea más ancho */
    margin: auto;
    overflow: hidden; /* Esto oculta los videos que no están en pantalla */
}

.lista-videos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Fuerza el ajuste al video */
    width: 100%;
    gap: 0; /* Sin espacio entre videos para que sea fluido */
    scrollbar-width: none; /* Oculta la barra de scroll en Firefox */
}

.lista-videos::-webkit-scrollbar {
    display: none; /* Oculta la barra de scroll en Chrome/Edge */
}

.lista-videos video {
    flex: 0 0 100%; /* IMPORTANTE: Cada video ocupa el 100% del contenedor */
    height: 500px;  /* Altura grande para que se vea bien */
    object-fit: cover;
    scroll-snap-align: center; /* Alinea el video al centro */
}
.flecha-izq, .flecha-der {
    position: absolute;
    top: 50%; /* Centrado vertical */
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
    color: white;
    border: 2px solid white;
    border-radius: 50%; /* Forma circular */
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.flecha-izq:hover, .flecha-der:hover {
    background-color: red; /* Cambia a rojo al pasar el mouse */
    transform: translateY(-50%) scale(1.1);
}

.flecha-izq { left: 10px; }
.flecha-der { right: 10px; }
.img-interactiva {
    transition: transform 0.4s ease, border 0.4s ease;
    border: 3px solid transparent;
}

.img-interactiva:hover {
    transform: rotate(3deg) scale(1.05); /* Rota un poquito y hace zoom */
    border: 3px solid red; /* Le pone un marco rojo al pasar el cursor */
    cursor: pointer;
}