/* 
 * Bar Desiderio - Main Stylesheet
 * Colors: Black, Gold, Light Green
 */

:root {
    --color-bg: #121212;
    --color-text: #f0f0f0;
    --color-gold: #d4af37;
    --color-gold-hover: #b5952f;
    --color-green: #a8d5ba;
    /* Light green */
    --color-green-hover: #8fc7a4;
    --color-dark-green: #2e4a3d;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    margin-bottom: var(--spacing-unit);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-green);
    /* Changed to green */
}

/* Header & Nav */
header {
    background-color: #000;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Slightly smaller to fit with logo */
    font-weight: bold;
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px; /* Force small size */
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

nav a.active {
    color: var(--color-green);
    /* Changed to green */
    border-bottom: 1px solid var(--color-green);
}

nav a:hover {
    color: var(--color-gold);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../imagenes/Desiderio1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-bottom: 3px solid var(--color-green);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-green);
    /* Changed to green */
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid var(--color-green);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-green);
    border-color: var(--color-green);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-green);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card Style */
.card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-green);
    /* Changed to green on hover */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--color-gold);
    /* Gold accent on images */
}

/* Gallery Specific */
.gallery-img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.8;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--color-gold);
    text-decoration: none;
    cursor: pointer;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #ccc;
    font-size: 0.9rem;
}

.card-date {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-green);
}

/* Footer */
footer {
    background-color: #000;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 3px solid var(--color-green);
    /* Changed to green */
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--color-gold);
    }

    nav ul.show {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .lightbox-content {
        width: 95%;
    }
}