/* ============================================================
   VACIADOS PISOS BARCELONA - Main Stylesheet
   Color Scheme: Teal/Emerald (replacing original Gold/Orange)
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --color-primary: #1A8F7D;         /* Teal primary (replaces #D9984A gold) */
    --color-primary-light: #22B8A0;   /* Lighter teal for hovers */
    --color-primary-dark: #147264;    /* Darker teal for active states */
    --color-heading: #111111;         /* Dark grey headings */
    --color-body: #555555;            /* Medium grey body text */
    --color-bg-light: #F2F6F5;       /* Light section background (subtle teal tint) */
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #0F1C1A;        /* Dark footer/header bg (dark teal-black) */
    --color-white: #FFFFFF;
    --color-border: #E0E8E6;
    --color-whatsapp: #25D366;

    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container-width: 1140px;
    --section-padding: 100px;
    --transition-speed: 0.3s;
    --border-radius: 5px;
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-body);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: disc;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.25;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Titles & Dividers --- */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.section-title.align-left {
    text-align: left;
}

.section-title.align-center {
    text-align: center;
}

.divider {
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 25px;
    border: none;
    border-radius: 2px;
}

.divider-left {
    width: 60px;
    margin-left: 0;
    margin-right: auto;
}

.divider-center {
    width: 100px;
    margin-left: auto;
    margin-right: auto;
}

.divider-wide {
    width: 100px;
}

.divider-medium {
    width: 84px;
}

.divider-info {
    width: 80px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    padding: 15px 45px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 143, 125, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 143, 125, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--transition-speed) ease;
}

.site-logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-heading);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 32px);
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-speed) ease;
}

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

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-solicitar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: var(--border-radius);
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 3px 10px rgba(26, 143, 125, 0.25);
}

.btn-solicitar:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26, 143, 125, 0.35);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-heading);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

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

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(15, 28, 26, 0.7) 0%, rgba(26, 143, 125, 0.35) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-logo-img {
    max-width: 380px;
    width: 80%;
    height: auto;
    filter: brightness(0) invert(1);
    drop-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 12px;
    font-style: italic;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-white);
    margin: 16px auto 20px;
    border-radius: 2px;
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 32px;
    font-style: italic;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    font-size: 18px;
    padding: 16px 50px;
    border-radius: 6px;
}

/* ============================================================
   ABOUT SECTION (Quiénes Somos)
   ============================================================ */
.about-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-body);
}

.about-text p strong {
    color: var(--color-heading);
    font-weight: 600;
}

.about-image {
    position: relative;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-image-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.about-image:hover .about-image-inner {
    transform: scale(1.03);
}

/* ============================================================
   SERVICES SECTION (Servicios)
   ============================================================ */
.services-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.services-image:hover img {
    transform: scale(1.03);
}

.services-content {
    text-align: center;
}

.services-content .section-title {
    font-size: 2.5rem;
}

.services-list {
    text-align: left;
    padding-left: 40px;
    margin-bottom: 30px;
    color: var(--color-body);
    font-size: 1rem;
    line-height: 1.7;
}

.services-list li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.services-list li::marker {
    color: var(--color-primary);
}

.services-cta-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 18px;
}

/* ============================================================
   MAP SECTION (Dónde Estamos)
   ============================================================ */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ============================================================
   CONTACT SECTION (Contacto)
   ============================================================ */
.contact-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper .section-title {
    font-size: 2.5rem;
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 10px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-heading);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 143, 125, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.form-checkbox-row {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--color-body);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.btn-submit {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 40px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(26, 143, 125, 0.25);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(26, 143, 125, 0.35);
}

/* --- Contact Info Sidebar --- */
.contact-info-wrapper {
    text-align: center;
}

.contact-info-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.contact-info-block {
    margin-bottom: 24px;
}

.info-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 6px;
}

.info-text {
    font-size: 0.95rem;
    color: var(--color-body);
    line-height: 1.6;
}

.info-text a {
    color: var(--color-body);
    transition: color var(--transition-speed) ease;
}

.info-text a:hover {
    color: var(--color-primary);
}

.contact-social {
    margin-top: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    color: var(--color-white);
    transform: scale(1.08);
    box-shadow: 0 5px 18px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    width: 26px;
    height: 26px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--color-bg-dark);
    padding: 50px 0 24px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-brand {
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 20px;
    transition: color var(--transition-speed) ease;
}

.footer-brand:hover {
    color: var(--color-primary);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin: 0 auto 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--color-primary-light);
    transition: color var(--transition-speed) ease;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    width: 420px;
    max-width: calc(100% - 40px);
    background-color: var(--color-bg-white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 28px;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--color-body);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.cookie-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 12px;
    padding-right: 24px;
}

.cookie-content p {
    font-size: 13px;
    color: var(--color-body);
    line-height: 1.55;
    margin-bottom: 18px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-color: var(--color-primary);
}

.cookie-accept:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-color: var(--color-primary-light);
}

.cookie-deny {
    background-color: var(--color-bg-white);
    color: var(--color-heading);
}

.cookie-deny:hover {
    background-color: var(--color-bg-light);
}

.cookie-prefs {
    background-color: var(--color-bg-white);
    color: var(--color-heading);
}

.cookie-prefs:hover {
    background-color: var(--color-bg-light);
}

/* ============================================================
   FORM SUCCESS / ERROR MESSAGE
   ============================================================ */
.form-message {
    padding: 14px 20px;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    display: block;
    background-color: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================================
   RESPONSIVE - Tablet (max 921px)
   ============================================================ */
@media (max-width: 921px) {
    :root {
        --section-padding: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed) ease;
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
        display: block;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .btn-solicitar {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .hero-logo-img {
        max-width: 280px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        min-height: 350px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-image {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-content .section-title,
    .contact-form-wrapper .section-title {
        font-size: 2rem;
    }
}

/* ============================================================
   RESPONSIVE - Mobile (max 544px)
   ============================================================ */
@media (max-width: 544px) {
    :root {
        --section-padding: 50px;
    }

    .header-container {
        height: 60px;
    }

    .logo-img {
        height: 36px;
    }

    .hero-logo-img {
        max-width: 220px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        font-size: 16px;
        padding: 14px 35px;
    }

    .form-row-half {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 280px;
    }

    .services-cta-text {
        font-size: 1.2rem;
    }

    .contact-info-title {
        font-size: 1.4rem;
    }

    .cookie-banner {
        bottom: 10px;
        right: 10px;
        padding: 20px;
        width: calc(100% - 20px);
    }
}

/* --- Mobile menu overlay --- */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* --- Scroll reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   GALLERY SECTION (Nuestro Trabajo)
   ============================================================ */
.gallery-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
    display: block;
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 143, 125, 0.85); /* teal overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.gallery-hover span {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 24px;
    border: 1px solid var(--color-white);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform var(--transition-speed) ease;
}

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

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

.gallery-item:hover .gallery-hover span {
    transform: translateY(0);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 11000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 28, 26, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-primary-light);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.lightbox-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-primary);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 16px;
    padding: 10px 20px;
}

/* Responsive details for gallery */
@media (max-width: 921px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-prev, .lightbox-next {
        padding: 8px;
        font-size: 20px;
    }
}
