 /* Reset Básico y Optimizaciones */
        *{
            padding: 0;
            margin: 0;
            box-sizing: border-box; 
        }

        body{
            min-height: 80vh;
            margin: 0;
            font-family: Poppins, sans-serif; 
            color: #1E1E1E;
            background-color: azure;
            background-image: 
                linear-gradient(to right, #cdcdcd7d, #cdcdcd00),
                url(images/feria.jpg);
            background-repeat: no-repeat;
            background-size: cover;
          
        }

        /* --- Estilos del Header --- */
        header{
            width: min(1200px, 90vw);
            margin: auto;
            display: flex;
            justify-content: space-between;
            padding-top: 20px; 
            flex-wrap: wrap;
        }

        header h1 {
            font-family: "Karantina", system-ui;
            font-size: 9vw;
            line-height: 0.8em;
            position: relative;
            left: 10px; 
        }

        header .author{
            text-align: right;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        header h3{
            font-family: "Karantina", system-ui;
            font-size: 5vw;
        }

        header .author div{
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        header .author div p:nth-child(2){
            font-weight: 500;
        }

        header .author img{
            width: 250px;
        }

        /* --- Estilos de Navegación --- */
        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            position: relative;
            padding: 10px 0;
            margin-bottom: 30px;
        }

        .sphere-container {
           perspective: 1000px;
           display: flex;
           gap: 30px;
        }

.sphere {
  width: 100px;
  height: 100px;
  background-image: url('img/bandera_sanlucar.gif');
  background-size: cover;
  background-repeat: repeat;
  border-radius: 50%;
  animation: spin 10s linear infinite;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
}

.sphere1 {
  width: 100px;
  height: 100px;
  background-image: url('img/bandera_andalucia.webp');
  background-size: cover;
  background-repeat: repeat;
  border-radius: 50%;
  animation: spin 10s linear infinite;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
}

/* Simulación de rotación */
@keyframes spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

        .flags-container {
            display: flex;
            gap: 20px;
            margin-right: 0px;
        }

        .flag-image {
            border-radius: 200px;
        
            width: 90px;
            height: 90px;
            animation: girar 15s linear infinite;
        }
         .flag-image1 {
            border-radius: 200px;
            width: 90px;
            height: 90px;
            animation: girar 15s linear infinite;
        }


        .hamburger {
            font-size: 28px;
            background: none;
            border: none;
            cursor: pointer;
            display: none;
            z-index: 1000;
        }

        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-links a {
            text-decoration: none;
            color: rgb(0, 6, 10);
            font-weight: bold;
            font-size: 20px;
            padding: 10px 0;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #35e788;
        }

        /* --- Estilos del Banner/Producto --- */
        .banner{
            height: 50vh; 
            position: relative;
        }
        
        .escudo {
            width: 200px;
            margin-top: 30px;
            margin-left: 50px;
        }
        
        /* Contenedor principal de la lata */
        .product{
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 140px; 
            z-index: 2;
            width: 255px; 
            transition: 0.7s;
        }

        /* La lata (mockup) */
        .product .soda{
            position: absolute; 
            bottom: 0px;
            left: calc(50%);
            transform: translateX(-50%);
        }

        .soda{
            --left: 0px;
            background: 
                var(--url) var(--left),
                url(images/mockup.png) 0 0;
            background-size: auto 100%;
        
            width: 170px; 
            aspect-ratio: 2 / 4;
            background-blend-mode: multiply;
            transition: 0.8s;
            mask-image: url(images/mockup.png);
            mask-size: auto 100%;
        }

        .soda:nth-child(2){
            opacity: 0;
        }

        /* Control del hover: Ahora sube 50px (de 50px a 0px) */
         
        .product:hover{
            top: 100px; 
            
        }

        .product:hover .soda:nth-child(2){
            opacity: 1;
            --left: 345px;
        }

        .product:hover .soda:nth-child(1){
            opacity: 0;
            --left: 395px;
        }

        /* --- Estilos de las Rocas/Nubes --- */
        .nube {
            width: 450px;
            height: 350px;
        }

        .rock{
            position: absolute;
            inset: 0 0 0 0; 
            width: 100%;
            pointer-events: none;
        }

        .rock img:nth-child(1){
            position: absolute;
            height: 220px;
            left: 50%;
            transform: translateX(-50%);
            bottom: 30px;
            transition: 0.7s;
            z-index: 1;
        }

        .rock img:nth-child(2){
            position: absolute;
            width: 250px;
            height: 50%;
            left: 0;
            bottom: 0;
            transition: 0.7s;
        }

        .rock img:nth-child(3){
            position: absolute;
            width: 350px;
            height: 50%;
            right: 0;
            bottom: -100px;
            rotate: -5deg;
            transition: 0.7s;
        }

        /* Hover: Animación de las rocas/elementos de fondo */
        .banner:has(.product:hover) .rock img:nth-child(1){
            transform: translateX(-50%) translateY(30px);
        }
        .banner:has(.product:hover) .rock img:nth-child(2){
            transform: translateX(-100px) translateY(50px);
        }
        .banner:has(.product:hover) .rock img:nth-child(3){
            transform: translateX(100px) translateY(50px);
        }

        footer ul li, p, a {
            margin-top: 5px;
            text-decoration: none;
        }

        /* Animación de las banderas */
        @keyframes girar {
            from { transform: rotatex(0deg); }
            to { transform: rotatex(360deg); }
        }

        /* --- Media Queries --- */
        @media screen and (max-width: 1023px) {
            .soda{
                width: 200px; 
            }
            .product {
                width: 200px;
            }
        }

       @media screen and (max-width: 768px) {
            
        .sphere, .sphere1 {
            width: 70px;
            height: 70px;
            margin-bottom: 10px;
        }
            header h1 {
                font-size: 12vw;
                line-height: 0.7em;
            }
            
            header h3 {
                font-size: 6vw;
            }
            
            header{
                gap: 20px;
            }
            
            header .author div p:nth-child(2){
                font-size: 14px;
            }
            
            header h3, header .author div p:nth-child(2), header .author div p:nth-child(1) {
                color: #eee;
            }
            
            header h1, header
        
        .author, .left {
                color: #eee;
            }
             .product:hover .soda:nth-child(2){
            opacity: 1;
            --left: 205px;
        }
            .soda{
                width: 100px; /* Reducido de 250px */
            }
            
            header img{
                display: none;
            }
            
            header .author{
                width: 100%;
            }
            
            .product {
                width: 150px; /* Más pequeño en móvil */
            }
            
            .soda-container {
                height: 180px; /* Altura reducida en móvil */
            }
            
            .nav {
                flex-wrap: wrap;
            }
            
            .flags-container {
                order: 1;
                flex: 1;
            }
            
            .hamburger {
                display: block;
                order: 3;
                z-index: 10;
            }
            
            .nav-links {
                display: none;
                flex-direction: column;
                width: 100%;
                order: 4;
                background-color: rgba(155, 164, 25, 0.393);
                padding: 10px 0;
                
                border-radius: 15px;
                box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links a {
                padding: 15px 20px;
                border-bottom: 1px solid #eee;
                font-size: 18px;
            }
            
            .flag-image {
                width: 80px;
            }
            
            .banner {
                height: 60vh;
            }
        }

        @media screen and (max-width: 480px) {
            .flag-image {
                width: 60px;
            }
            
            .nav-links a {
                font-size: 16px;
            }
            
            .product {
                width: 120px; /* Más pequeño en móviles pequeños */
            }
            
  
        }
        