﻿/* ====================================
   HERO SECTION 
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Arial', sans-serif;
}

.hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

/* Capa 1: Gradiente base */
.gradient-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 60%, #6b8e3d 0%, #5a7a32 25%, #4a6629 50%, #3a5220 75%, #2d4019 100% );
    z-index: 1;
}

/* Capa 2: Manchas difusas con CSS */
.blurred-spots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.spot-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8fb854 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
}

.spot-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7a9e3f 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.spot-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #9db762 0%, transparent 70%);
    bottom: 15%;
    left: 40%;
    animation: float 12s ease-in-out infinite;
}

/* Capa 3: Canvas para partículas y conexiones */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    max-width: 100%;
}

/* Capa 4: Contenido */
.content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: white;
    text-align: center;
}

    .content h1 {
        font-size: 4rem;
        font-weight: 700;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        margin-bottom: 1rem;
    }

    .content p {
        font-size: 1.5rem;
        opacity: 0.9;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Indicador de scroll */
.scroll-indicator {
    width: 50px;
    height: 50px;
    padding: 12px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

    .scroll-indicator:hover {
        background-color: white;
        transform: scale(1.1);
    }

/* Animación de bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.scroll-text {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 500;
}

/* Contenedor de fechas */
.fecha-container {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 2rem 3rem;
    text-align: right;
    z-index: 5;
}

    .fecha-container h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .fecha-container h1 {
        font-size: 3rem;
        margin: 0;
    }

/* Contenedor de imagen de mano */
.mano-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
}

/* Scroll indicator */
.scroll-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    padding-bottom: 1.5rem;
    z-index: 6;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (min-width: 769px) and (max-width: 1366px) {
    .fecha-container {
        padding: 2rem;
    }

        .fecha-container h2 {
            font-size: 1.3rem;
        }

        .fecha-container h1 {
            font-size: 2.5rem;
        }

    .mano-container img {
        max-width: 500px;
        height: auto;
    }

    .content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) and (max-height: 768px) {
    .mano-container img {
        max-width: 500px;
    }

    .fecha-container {
        padding: 1.5rem 2rem;
    }

        .fecha-container h1 {
            font-size: 2.2rem;
        }

        .fecha-container h2 {
            font-size: 1.2rem;
        }
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 2.5rem;
    }

    .content p {
        font-size: 1.2rem;
    }

    .spot-1,
    .spot-2,
    .spot-3 {
        width: 250px;
        height: 250px;
    }

    .fecha-container {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: 60%;
        text-align: center;
        padding: 1.5rem;
        width: 90%;
    }

        .fecha-container h2 {
            font-size: 1.3rem;
        }

        .fecha-container h1 {
            font-size: 2.5rem;
        }

    .mano-container {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 80px;
    }

        .mano-container img {
            max-width: 80%;
            height: auto;
        }

    .scroll-container {
        padding-bottom: 1rem;
        z-index: 6;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    .fecha-container {
        top: 55%;
        padding: 1rem;
    }

        .fecha-container h2 {
            font-size: 1.1rem;
        }

        .fecha-container h1 {
            font-size: 2rem;
        }

    .mano-container {
        padding-bottom: 0px;
    }

        .mano-container img {
            max-width: 90%;
        }
}
