/* CSS Variables & Reset */
:root {
    --primary-bg: rgb(62, 0, 62);

    --card-bg: rgba(30, 15, 40, 0.7);
    --text-main: #f0edf5;
    --text-muted: #bdaec6;
    --accent-pink: #ff2e93;
    --accent-purple: #9d4edd;
    --accent-gold: #ffd700;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-glow: 0 0 20px rgba(255, 46, 147, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 5, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-pink);
    transition: padding 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.logo-placeholder {
    width: 70px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-pink);
}

.language-wrapper {
    display: flex;
    align-items: center;
}

#selector {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--accent-purple);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

#selector:hover,
#selector:focus {
    background: rgba(157, 78, 221, 0.2);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

#selector option {
    background: var(--primary-bg);
    color: var(--text-main);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    margin: 6px 0;
    background: var(--accent-pink);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Slider */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 5, 20, 0.3), rgba(15, 5, 20, 0.8));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.1);
}

.btn:hover {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 46, 147, 0.6);
    transform: translateY(-3px);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: var(--accent-pink);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-pink);
}

/* Sections General */
main {
    flex: 1;
    transition: transform 0.3s ease;
    --u: 2.5vmin;
    /* Paleta de uvas oscuras */
    --c1: #0a0a0a;
    /* fondo base */
    --c2: #2a112b;
    /* morado profundo */
    --c3: #3b153f;
    /* uva media */
    --c4: #501c55;
    /* reflejo más claro */
    --shine: rgba(255, 255, 255, 0.05);
    /* brillo sutil */

    /* Forma del racimo: círculos de distintos tonos */
    --shape:
        var(--c4) 0 calc(var(--u) * 0.7),
        var(--c3) calc(var(--u) * 0.8) calc(var(--u) * 1.4),
        var(--c2) calc(var(--u) * 1.5) calc(var(--u) * 2.2),
        var(--c3) calc(var(--u) * 2.3) calc(var(--u) * 2.9),
        var(--c4) calc(var(--u) * 3.0) calc(var(--u) * 3.7),
        var(--shine) calc(var(--u) * 3.2) calc(var(--u) * 3.3),
        var(--c2) calc(var(--u) * 3.8) calc(var(--u) * 4.4),
        var(--c3) calc(var(--u) * 4.6) calc(var(--u) * 5.3),
        #0000 calc(var(--u) * 5.4) 100%;

    /* Patrón repetitivo */
    --gp: 50%/calc(var(--u) * 10) calc(var(--u) * 6.33);

    height: 100%;
    background:
        radial-gradient(circle at 50% 150%, var(--shape)) var(--gp),
        radial-gradient(circle at 0% 100%, var(--shape)) var(--gp),
        radial-gradient(circle at 100% 100%, var(--shape)) var(--gp),
        radial-gradient(circle at 50% 50%, var(--shape)) var(--gp),
        radial-gradient(circle at 0% 0%, var(--shape)) var(--gp),
        radial-gradient(circle at 100% 0%, var(--shape)) var(--gp),
        var(--c1);
    background-attachment: fixed;
    background-repeat: repeat;
    background-color: var(--c1);
}

main>div:not(.slider) {
    padding: 6rem 2rem;
    text-align: center;
}

main h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--accent-pink);
    position: relative;
    display: inline-block;
}

main h1::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--accent-purple);
    margin: 10px auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.block-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.block {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.block:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-pink);
}

.block h2,
.block h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.block iconify-icon {
    font-size: 1.5em;
    vertical-align: middle;
    color: var(--accent-purple);
    margin-right: 0.5rem;
}

/* Specific Section Styles */

/* Events */
#eventos {}

#eventos .block h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

/* Contacto Styles */
.contact-card {
    text-align: left;
    align-items: flex-start;
}

.contact-item {
    width: 100%;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item span {
    font-size: 1.3rem;
    font-weight: 400;
}

/* Schedule List */
.schedule-list {
    width: 100%;
    padding: 0;
}

.schedule-list li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}


.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .day {
    font-weight: 700;
    color: var(--accent-pink);
    text-align: start;
}

.schedule-list .hours {
    color: var(--text-muted);
    text-align: end;
}

/* Map Section */
.map-section {
    width: 100%;
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;

    /* Stylish dark map look */
    transition: filter 0.3s;
}

.map-section h3,
.map-section span {
    display: none;
    /* Hide text, keep map clean or style it overlays if needed */
}

/* Footer Styles */
footer {
    background-color: #050208;
    color: var(--text-muted);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--accent-pink);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-pink);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 850px) {
    header {
        padding: 1rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Mobile Nav */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0f0514;
        padding: 6rem 2rem;
        transition: 0.4s ease;
        border-left: 1px solid var(--accent-purple);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    .language-wrapper {
        width: 100%;
        order: -1;
        /* Put language selector at top of mobile menu */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }

    #selector {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
        text-align: center;
    }

    /* Slider Mobile */
    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }

    main h1 {
        font-size: 2rem;
    }

    .block {
        padding: 1.5rem;
    }

    .contact-item span {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .schedule-list li {
        flex-direction: column;
    }

    .schedule-list .day {
        text-align: center;
    }

    .schedule-list .hours {
        text-align: center;
    }






}