/* ===============================================
   CASTELO PALACIOS DESARROLLOS - MAIN STYLES
   Modern, Responsive, SEO-Optimized Landing Page
   =============================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #c9a22e;
    --primary-dark: #b8941f;
    --primary-light: #d4af37;
    --secondary-color: #c9a22e;
    --accent-color: #b8941f;

    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --text-white: #ffffff;

    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #2c2c2c;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Cormorant Garamond', serif;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 60px;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 50px;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-label.light {
    color: var(--accent-color);
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title.light {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
}

.centered {
    text-align: center;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-secondary);
    color: var(--text-white);
    transition: var(--transition-base);
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
    opacity: 0.8;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    position: relative;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.btn-contact {
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--text-white);
}

.navbar.scrolled .nav-link.btn-contact {
    border-color: var(--primary-color);
}

.nav-link.btn-contact:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition-base);
    border-radius: 2px;
}

.navbar.scrolled .menu-toggle span {
    background: var(--primary-color);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
    background-image: url('../imagenes/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-white);
    max-width: 900px;
}

.hero-title {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--secondary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    font-style: italic;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-white);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
        top: 16px;
    }
}

/* ===== NOSOTROS SECTION ===== */
.nosotros {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.nosotros-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ===== VALORES SECTION ===== */
.valores {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.valores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.valores-grid > * {
    flex: 1 1 280px;
    max-width: 400px;
}

.valor-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.valor-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.valor-icon svg {
    width: 30px;
    height: 30px;
}

.valor-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.valor-description {
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== INVESTMENT SECTION ===== */
.investment {
    position: relative;
    padding: var(--section-padding) 0;
    color: var(--text-white);
    overflow: hidden;
}

.investment-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    background-image: url('../imagenes/investment-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.investment-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.investment-content {
    position: relative;
    z-index: 10;
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.investment-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.investment-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.investment-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.investment-card h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.investment-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ===== ARDEH SECTION ===== */
.ardeh {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.ardeh-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ardeh-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.ardeh-gallery {
    margin-bottom: 4rem;
}

.gallery-main {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.ardeh-features {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.ardeh-features > * {
    flex: 1 1 280px;
    max-width: 400px;
}

.feature-block {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-block h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-block p {
    line-height: 1.7;
}

.ardeh-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.ardeh-cta h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ardeh-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.contact-item p {
    margin: 0;
    color: var(--text-medium);
}

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

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    transition: var(--transition-base);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--primary-color);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label {
    top: -20px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.footer-slogan {
    font-family: var(--font-secondary);
    font-style: italic;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nosotros-content {
        gap: 3rem;
    }

    .contact-wrapper {
        gap: 3rem;
    }

    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Navigation Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-dark);
        font-size: 1.2rem;
    }

    .nav-link.btn-contact {
        border-color: var(--primary-color);
        text-align: center;
    }

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

    /* Hero Mobile */
    .hero {
        min-height: 600px;
    }

    .hero-background {
        background-attachment: scroll;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Sections Mobile */
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nosotros-image {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .gallery-main img {
        height: 300px;
    }

    .gallery-item img {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .investment-background {
        background-attachment: scroll;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .valor-card {
        padding: 2rem;
    }

    .investment-card {
        padding: 2rem;
    }

    .ardeh-cta {
        padding: 2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

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

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-base);
    font-size: 0.95rem;
}

.gallery-tab:hover {
    background: var(--primary-light);
    color: var(--text-white);
    border-color: var(--primary-light);
}

.gallery-tab.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.gallery-photo.hidden {
    display: none;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1rem;
    transform: translateY(100%);
    transition: var(--transition-base);
}

.gallery-photo:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    color: var(--text-white);
    font-weight: 500;
    font-size: 1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    color: var(--text-white);
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

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

.lightbox-close {
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    line-height: 1;
    padding: 0.5rem 1.2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-tabs {
        gap: 0.5rem;
    }

    .gallery-tab {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        padding: 0.3rem 0.8rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    border: 2px solid var(--text-white) !important;
    font-weight: 600;
    transition: var(--transition-base);
}

.navbar.scrolled .lang-switcher {
    border-color: var(--primary-color) !important;
}

.lang-switcher:hover {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-color: var(--primary-color) !important;
}

.lang-switcher::after {
    display: none !important;
}

/* ===== UTILITIES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}