/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    position: relative;
}

/* Contenedor de efectos climáticos */
#weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Efectos de lluvia */
#rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #4fc3f7);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Efectos de nieve */
#snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1em;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Efectos de nubes */
#clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: cloudMove linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

@keyframes cloudMove {
    0% {
        transform: translateX(-200px);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Efectos de estrellas */
#stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Efectos de sol */
#sun {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffeb3b 30%, #ffc107 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: sunRotate 20s linear infinite;
}

#sun::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes sunRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Efectos de tormenta */
#storm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.lightning {
    position: absolute;
    width: 2px;
    height: 100vh;
    background: linear-gradient(to bottom, #fff, #ffeb3b, transparent);
    animation: flash 0.1s ease-in-out;
}

@keyframes flash {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Efectos de granizo */
#hail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hailstone {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #e1f5fe, #b3e5fc);
    border-radius: 50%;
    animation: hailfall linear infinite;
}

@keyframes hailfall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Contenido principal */
.main-container {
    position: relative;
    z-index: 2;
    padding: 20px;
    min-height: 100vh;
}

/* Slogan superior */
.top-slogan {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
    border-radius: 10px;
}

#main-slogan {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Título principal animado */
.title-section {
    text-align: center;
    margin: 50px 0;
}

.animated-title {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.word {
    display: inline-block;
    margin: 0 10px;
    animation: bounce 2s ease-in-out infinite;
}

.word:nth-child(1) {
    animation-delay: 0s;
    color: #4fc3f7;
}

.word:nth-child(2) {
    animation-delay: 0.5s;
    color: #ffeb3b;
}

.word:nth-child(3) {
    animation-delay: 1s;
    color: #4caf50;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Galería de imágenes */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 20px;
}

.image-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Altura fija para todos los contenedores */
}

.image-container:hover {
    /* Eliminando la flotación para fijar las imágenes en su lugar */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.campaign-image {
    width: 100%;
    height: 200px; /* Altura fija */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0; /* Sin margen inferior */
    transition: transform 0.3s ease;
    flex-shrink: 0; /* No se encoge */
}

.campaign-image:hover {
    /* Eliminando la escala para mantener las imágenes fijas */
}

.image-link {
    display: inline-block;
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.image-link:hover {
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Slogans de campaña */
.campaign-slogans {
    margin: 50px 0;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
}

.slogan-title {
    text-align: center;
    color: #fff;
    font-size: 3rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slogans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.slogan-item {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(41, 182, 246, 0.2));
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
}

.slogan-item:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 195, 247, 0.6);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.slogan-item h3 {
    color: #4fc3f7;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slogan-item p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    #main-slogan {
        font-size: 1.8rem;
    }
    
    .animated-title {
        font-size: 2.5rem;
    }
    
    .word {
        display: block;
        margin: 10px 0;
    }
    
    .slogan-title {
        font-size: 2rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .slogans-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }
    
    #main-slogan {
        font-size: 1.5rem;
    }
    
    .animated-title {
        font-size: 2rem;
    }
    
    .slogan-title {
        font-size: 1.5rem;
    }
}



/* Estilos para título con escudos */
.title-with-shields {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.shield-left, .shield-right {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Animaciones para el título principal con colores de Argentina */
.animated-title .word {
    animation: argentina-colors 3s ease-in-out infinite;
}

.animated-title .word:nth-child(1) {
    animation-delay: 0s;
}

.animated-title .word:nth-child(2) {
    animation-delay: 1s;
}

.animated-title .word:nth-child(3) {
    animation-delay: 2s;
}

@keyframes argentina-colors {
    0%, 100% { color: #74ACDF; }
    33% { color: #FFFFFF; }
    66% { color: #74ACDF; }
}

/* Animación para el slogan superior con colores metálicos */
#main-slogan {
    animation: metallic-colors 4s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes metallic-colors {
    0%, 100% { color: #FFD700; }
    25% { color: #C0C0C0; }
    50% { color: #B8860B; }
    75% { color: #E5E4E2; }
}

/* Estilos para etiquetas - ahora se pegan a la imagen */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 10px 0; /* Margen uniforme */
    justify-content: center;
    flex-grow: 1; /* Ocupa el espacio disponible */
    align-items: flex-start; /* Se alinea al inicio del espacio disponible */
}

.tag {
    background: linear-gradient(45deg, #74ACDF, #FFFFFF);
    color: #1e3c72;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.tag:hover {
    transform: scale(1.1);
}

/* Los ajustes específicos por imagen ya no son necesarios con flexbox */

/* Footer */
.footer {
    background: rgba(0,0,0,0.8);
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-block;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.contact-link:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.2);
}

.contact-icon {
    font-size: 24px;
}

.copyright {
    color: #FFFFFF;
    font-size: 14px;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .title-with-shields {
        flex-direction: column;
        gap: 15px;
    }
    
    .shield-left, .shield-right {
        width: 60px;
    }
    
    .animated-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    #main-slogan {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .campaign-image {
        max-width: 100%;
        height: auto;
    }
    
    .slogans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .animated-title {
        font-size: 2rem;
    }
    
    #main-slogan {
        font-size: 1.2rem;
    }
    
    .shield-left, .shield-right {
        width: 50px;
    }
}

/* Mejoras para desktop */
@media (min-width: 1200px) {
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slogans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

