/* --- VARIABLES DE COLOR --- */
:root {
    --bg-color: #F8F6F2; /* Crema claro, fondo principal */
    --text-main: #2C2A29; /* Casi negro, texto principal */
    --accent-green: #5B7A58; /* Verde naturaleza */
    --accent-sand: #C6B49D; /* Tono arena/tierra */
    --accent-blue: #4A6B8C; /* Azul apagado */
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    border: 2px solid black;
    width: 80%;
    margin: auto;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    filter: drop-shadow(5px 5px 3px rgba(0,0,0,0.5));
    text-wrap-mode: nowrap;
    font-size: large;
    max-width: 400px;
    min-width: 325px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: black;
}

.hero-image {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 2;
}

.hero-text h1 {
    text-wrap-mode: nowrap;
    font-size: 2rem !important;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.arrow {
    width: 40px;
    height: 40px;
    margin: 100px auto;

    border-left: 5px solid white;
    border-bottom: 5px solid white;
    transform: rotate(-45deg);

    animation: pulse 1.2s infinite ease-in-out;

    position: absolute;
    top: 75%;
    left: 50%;
}

@media (max-width: 650px) {
    .arrow {
        left: 45%;
    }
}

@media (min-width: 651px) and (max-width: 900px) {
    .arrow {
        left: 45%;
    }
}

@media (min-width: 901px) {
    .arrow {
        left: 50%;
    }
}

@keyframes pulse {
    0% {
        transform: rotate(-45deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(-45deg) scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: rotate(-45deg) scale(1);
        opacity: 1;
    }
}

/* --- ABOUT SECTION --- */
.about {
    max-width: 1024px;
    padding-top: 0;
    text-align: justify;
    padding: 40px 40px 20px 40px;
    margin: auto;}

.about p {
    font-size: 1.2rem;
    color: #555;
    text-align: justify;
}

/* --- EVENTS SECTION --- */
.events-section {
    max-width: 1024px;
    margin: 0 auto 0 auto;
    padding: 0 20px;
}

.event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-sand);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.event-date {
    text-align: center;
    min-width: 80px;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-green);
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.event-details {
    flex-grow: 1;
    padding: 0 20px;
}

.event-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.event-details p {
    font-size: 0.9rem;
    color: #666;
}

.event-btn {
    padding: 10px 20px;
    background-color: var(--text-main);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    text-align: center;
    white-space: nowrap;
}

.event-btn:hover {
    background-color: var(--accent-green);
}

/* --- FEED / GRID SECTION (Estilo IG) --- */
.feed-section {
    margin-bottom: 80px;
    max-width: 1024px;
    margin: auto;
}

.feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    filter: drop-shadow(6px 6px 10px black);

}

.card:hover {
    transform: translateY(-5px);
}

/* Estilo para las tarjetas con imagen */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Variaciones de color para las tarjetas estáticas */
.card-green { background-color: var(--accent-green); color: white; }
.card-light { background-color: white; color: var(--text-main); }

.card-quote {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    z-index: 1; /* Para estar sobre el fondo */
}

.card-author {
    font-size: 0.75rem;
    letter-spacing: 1px;
    position: absolute;
    bottom: 20px;
    border: 1px solid currentColor;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 1;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--text-main);
    color: white;
    margin-top: 40px;
}

.btn-footer {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--bg-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-footer:hover {
    background-color: var(--accent-sand);
    color: white;
    transform: scale(1.05);
}

.footer-credit {
    height: 50px;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 999;
    position: relative;
}

.footer-credit a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-credit a:hover {
    color: white;
    text-decoration: underline;
}

/* --- VIDEO CAROUSEL --- */
.videos-section {
    max-width: 1000px;
    margin: 0 auto 20px auto;
}

.carousel-container {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 450px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: none;
    flex-shrink: 0;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44,42,41,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--accent-green);
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--accent-sand);
}

/* --- RESPONSIVE FOR VIDEOS --- */
@media (max-width: 800px) {
    .carousel {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .event-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .event-date {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 15px;
    }
    .event-details {
        padding: 0;
    }
    .event-btn {
        width: 100%;
    }
}

#overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;

    display: flex;
    flex-direction: column;
    color: white;
    justify-content: center;
    align-items: center;
    background: rgb(0, 0, 0, 0.8);
    text-align: center;
}


.startBtn {
    font-size: 20px;
    padding: 15px 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    border-radius: 8px;
}

.socialNetworks {
    width: 100%;
    gap: 20px;
    display: flex;
    justify-content: center;
    border: solid 1px white;
    border-radius: 20px;
    width: min-content;
    margin: auto;
    margin-top: 5px;
    padding: 20px;
}
.socialNetworks img {
    width: 24px;
}
.flotantWsp {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 20px;
    width: 72px;
    height: 72px;
    border-radius: 100%;
    background-color: rgb(80, 200, 80);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: wspPulse 1.2s infinite ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
}
.flotantWsp img{
    width: 75%;
    height: 75%;
    object-fit: contain;
}

@keyframes wspPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}