 /* Estilos del header existente */
 .top-bar {
    animation: slideDown 0.5s ease-out;
}





.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 64px; /* Compensa altura del header */
    height: calc(100vh - 64px); /* Altura completa menos header */
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    cursor: grab;
    user-select: none;
    touch-action: pan-y; /* Cambiado de 'none' a 'pan-y' */
    height: 100%;
}


.carousel-track:active {
    cursor: grabbing;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}



.carousel-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
z-index: 1;
pointer-events: none;
}   

[class^="content-"] {
position: absolute;
z-index: 2;
color: white;
padding: 2rem;
max-width: 1200px;
animation: fadeInUp 0.8s ease-out;
}


.content-left {
top: 50%;
left: 10%;
transform: translateY(-50%);
text-align: left;
}

.content-center {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}

.content-right {
top: 50%;
right: 10%;
transform: translateY(-50%);
text-align: right;
}

.cta-btn {
padding: 1rem 2.5rem;
border-radius: 2rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
transform: translateY(0);
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@media (max-width: 768px) {
.content-left,
.content-right {
    left: 5%;
    right: 5%;
    text-align: center;
    transform: translateY(-50%);
}

[class^="content-"] {
    padding: 1rem;
}

.cta-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

h2 {
    font-size: 1.8rem;
}

p {
    font-size: 1rem;
}
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
} 

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 0 20px;
  
}

.thumbnail {
    width: 80px;
    height: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail.active {
    border-color: #f97316;
    transform: scale(1.1);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    border: none;
   border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-button:hover {
    background: #f97316;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}



@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .carousel {
        margin-top: 56px; /* Ajuste para móvil */
        height: calc(100vh - 56px);
    }

    .carousel-item {
        flex-direction: column;
        justify-content: center;
    }

    [class^="content-"] {
        padding: 1rem !important;
        position: relative;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        text-align: center !important;
        width: 100% !important;
        top: auto !important;
    }

.content-left {
    left: 10%;
}

.content-right {
    right: 10%;
}

.cta-btn {
    min-width: 200px;
    letter-spacing: 1px;
}
.thumbnail {
    width: 50px;
    height: 35px;
    
}
}


@media (max-width: 480px) {


.carousel-item {
    aspect-ratio: 4/3; /* Ajuste para pantallas pequeñas */
}


[class^="content-"] {
    top: 50%;
    width: 95%;
}

.content-left,
.content-right {
    text-align: center;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-50%);
}

.cta-btn {
    min-width: 140px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}


.thumbnail {
    width: 40px;
    height: 30px;
}
}


*, *:before, *:after {
box-sizing: inherit;
}

.vaca {
background-image: url(vaca.png) ;
}



.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

/* Animación para los enlaces */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}