@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;600&display=swap');

:root {
    --white: #ffffff;
    --white-light: #f8f9fa;
    --white-dark: #e9ecef;
    --white-medium: #f0f0f0;
    --brown-dark: #3d2817;
    --brown: #5c4033;
    --brown-light: #7a5c45;
    --black: #1a1a1a;
    --black-light: #2d2d2d;
    --accent: #8b6914;
    --accent-gold: #c4a35a;
    --border-light: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--white);
    color: var(--brown-dark);
    line-height: 1.7;
    overflow-x: visible;
    position: relative;
    user-select: none;
}

/* Imágenes protegidas */
img {
    -webkit-user-drag: none;
}

/* Decorative vines SVG */
.vine-decoration {
    position: fixed;
    width: 200px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.vine-left {
    top: 0;
    left: 0;
}

.vine-right {
    bottom: 0;
    right: 0;
    transform: scaleX(-1);
}

.vine-decoration svg {
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--brown-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-gold);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(61, 40, 23, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brown-dark);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    color: var(--brown-dark);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 15'%3E%3Cpath d='M0 7 Q20 0 40 7 Q60 14 80 7' stroke='%23c4a35a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--brown);
}

.nav-link:hover::after {
    width: 80px;
}

.nav-link.active {
    color: var(--brown);
}

.nav-link.active::after {
    width: 80px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--brown-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
                url('https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(196, 163, 90, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(61, 40, 23, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: var(--brown-dark);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--brown-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--brown-dark);
    color: var(--white);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    border: 2px solid var(--brown-dark);
    letter-spacing: 1px;
}

.btn:hover {
    background: transparent;
    color: var(--brown-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(61, 40, 23, 0.2);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--brown-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
}

.section-title span {
    color: var(--accent);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white-light);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(61, 40, 23, 0.12);
    border-color: var(--accent-gold);
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--brown-dark);
    position: relative;
    padding-bottom: 1rem;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.about-card p {
    color: var(--brown-light);
    font-size: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
    border: 3px solid var(--white-dark);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--accent-gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 40, 23, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--white);
}

/* Videos Section */
.videos-section {
    margin-top: 60px;
}

.videos-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--brown-dark);
    text-align: center;
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--white-dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Events */
.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: var(--white-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(61, 40, 23, 0.1);
}

.event-card img {
    display: block;
}

.event-date {
    background: var(--brown-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    flex-shrink: 0;
}

.event-date .day {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.event-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.event-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--brown-dark);
}

.event-info .location {
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.event-info .time {
    color: var(--brown-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--brown-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--brown-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item div p:first-child {
    font-weight: 600;
    color: var(--brown-dark);
}

.contact-item div p:last-child {
    color: var(--brown-light);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--white-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brown-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--brown-dark);
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brown-dark);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--brown-dark);
    border: 2px solid var(--brown-dark);
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: transparent;
    color: var(--brown-dark);
}

/* Footer */
footer {
    background: var(--brown-dark);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer-section h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 3px solid var(--white);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* Event Banner */
.event-banner {
    display: flex;
    background: var(--white-light);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 40px rgba(61, 40, 23, 0.15);
    margin-top: 40px;
}

.event-banner-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-label {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 1rem;
}

.event-banner-content h2 {
    font-size: 2rem;
    color: var(--brown-dark);
    margin-bottom: 0.8rem;
}

.event-banner-content p {
    color: var(--brown-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.event-banner-image {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
}

.event-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        gap: 40px;
    }
    
    .event-banner {
        flex-direction: column;
    }
    
    .event-banner-image {
        min-width: 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .event-banner-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}