﻿/* =========================================
   ARGO 2.0 - ULTRA PREMIUM DESIGN
   World-Class Architecture Website
   ========================================= */

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

:root {
    /* Colors - Ultra Premium Palette */
    --primary-burgundy: #8B0000;
    --primary-gold: #D4AF37;
    --primary-black: #0D0D0D;
    --cream: #F5F1E8;
    --warm-gray: #4A4A4A;
    --light-gold: #F4E4C1;
    --accent-copper: #B87333;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 10rem;

    /* Effects */
    --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.2);

    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--warm-gray);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === CUSTOM CURSOR === */
.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary-burgundy);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    opacity: 0;
}

body:hover .cursor,
body:hover .cursor-follower {
    opacity: 1;
}

/* Ocultar cursor en dispositivos táctiles o pantallas pequeñas */
@media (hover: none) and (pointer: coarse),
(max-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* Ocultar cursor personalizado sobre el iframe de Kuula para permitir el cursor nativo del panorama */
.lightbox-gallery:hover+.cursor,
.lightbox-gallery:hover+.cursor-follower {
    opacity: 0 !important;
}


/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-burgundy), var(--primary-gold));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all var(--transition-smooth);
}

.nav.scrolled {
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.nav.scrolled .nav-logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo-image {
    height: 50px;
    width: auto;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

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

.nav-link-cta {
    background: var(--primary-burgundy);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all var(--transition-fast);
}

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

.nav-link-cta:hover {
    background: var(--primary-black);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    /* Blanco por defecto para verse sobre video */
    transition: all var(--transition-fast);
}

/* Toggle Negro cuando Scrolled O cuando Menú está Abierto */
.nav.scrolled .nav-toggle span,
.nav-toggle.active span {
    background: var(--primary-black);
}

/* === HERO === */
/* === HERO === */
.hero {
    position: relative;
    /* Allow growth for content */
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Keep hidden for bg image scaling, but height auto prevents clipping content */
    padding-top: 80px;
    /* Ensure space for navbar */
    padding-bottom: 40px;
    /* Space for scroll arrow */
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: heroZoom 20s ease-out forwards;
    transition: opacity 0.5s ease;
    /* Smooth fade for dynamic changes */
    opacity: 1;
    /* Ensure distinct starting state */
}

/* Video de fondo hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-video.loaded {
    opacity: 1;
}

/* Sistema Toggle Video/Imagen */
/* Por defecto: mostrar imagen, ocultar video */
.hero-image {
    display: block;
}

.hero-video {
    display: none;
}

/* Cuando body tiene clase "use-video": mostrar video, ocultar imagen INMEDIATAMENTE */
body.use-video .hero-video {
    display: block;
}

body.use-video .hero-image {
    display: none !important;
}

/* Preloader elegante mientras carga el video */
.hero-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-preloader-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spinPreloader 1s linear infinite;
}

.hero-preloader-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes spinPreloader {
    to {
        transform: rotate(360deg);
    }
}

/* Ocultar preloader cuando NO se usa video */
body:not(.use-video) .hero-preloader {
    display: none;
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 20, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-logo {
    width: 500px;
    max-width: 80%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    /* Increased from 0.875rem (approx +2px) */
    font-weight: 700;
    /* Bold */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 2rem;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    transition: left var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.btn-secondary:hover {
    background: var(--primary-black);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1rem;
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === CONTAINERS === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* === SECTIONS === */
section {
    padding: var(--spacing-xxl) 0;
}

.section-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.section-cta {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* === MANIFIESTO === */
.manifiesto {
    background: var(--primary-black);
    color: white;
    padding: var(--spacing-xxl) 0;
}

.manifiesto-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

.manifiesto-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.5;
    color: white;
    margin-bottom: 3rem;
}

.manifiesto-author {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
}

.author-line {
    width: 60px;
    height: 1px;
    background: var(--primary-gold);
}

/* === STATS === */
.stats {
    background: white;
    padding: var(--spacing-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--primary-burgundy);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-gray);
    line-height: 1.6;
}

/* === FEATURED PROJECTS === */
.featured-projects {
    background: white;
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 500px;
}

.project-card-large {
    grid-row: span 2;
    height: 1020px;
}

.project-card-wide {
    grid-column: span 2;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    margin-top: auto;
}

.project-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.5rem;
}

.project-location {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-arrow {
    align-self: flex-end;
    color: white;
    transform: translate(0, 0);
    transition: transform var(--transition-fast);
}

.project-card:hover .project-arrow {
    transform: translate(10px, -10px);
}

/* Fix: Ensure project title has proper white color on hover overlay */
.project-overlay .project-title,
.project-card .project-overlay .project-title,
.project-card:hover .project-overlay .project-title {
    color: white !important;
}

/* === SERVICES === */
.services {
    background: var(--cream);
}

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

.service-card {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary-black);
}

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

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.8;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    transition: opacity var(--transition-smooth);
}

.service-card:hover .service-image {
    transform: scale(1.1);
    opacity: 0.6;
}

.service-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transform: translateY(0);
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-content {
    transform: translateY(-10px);
}

.service-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 90%;
    opacity: 0.9;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-description {
    transform: translateY(0);
    opacity: 1;
}

/* Service card wrapper link - makes entire card clickeable */
.service-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.service-card-link .service-card {
    transition: all var(--transition-smooth);
}

.service-card-link:hover .service-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    transition: gap var(--transition-fast);
    pointer-events: none;
    /* Let parent link handle clicks */
}

.service-card-link:hover .service-link {
    gap: 1rem;
    color: white;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--primary-black) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

/* === FOOTER === */
.footer {
    background: var(--primary-black);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-column a,
.footer-column p {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* === AOS ANIMATIONS === */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos='fade-up'] {
    transform: translateY(50px);
}

[data-aos='fade-up'].aos-animate {
    transform: translateY(0);
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-fast);
    text-decoration: none;
    padding: 0;
    line-height: 0;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .projects-masonry {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .project-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-smooth);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1100;
        /* Siempre encima del menú desplegado */
    }

    /* Animación Hamburguesa -> X */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background-color: var(--primary-black);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background-color: var(--primary-black);
    }

    /* Links del menú móvil siempre negros cuando está abierto */
    .nav-menu.active .nav-link {
        color: var(--primary-black);
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .manifiesto-title {
        font-size: 1.25rem !important;
        /* Reducido al ~50% en móvil */
        line-height: 1.4;
    }

    /* Hero Rediseñado para Móvil (Split View) */
    .hero {
        height: auto;
        min-height: 0;
        display: block;
        background: var(--primary-black);
    }

    /* Área del Video (Parte Superior - 55%) */
    .hero-bg {
        position: relative;
        height: 55vh;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        position: static;
        padding: 0;
        height: auto;
        display: block;
    }

    /* CONTENIDO SUPERIOR: Logo + Título (Overlay sobre video) */
    .hero-top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 55vh;
        /* Coincide con hero-bg */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Control total con padding */
        z-index: 10;
        padding: 15vh 2rem 0 2rem;
    }

    /* CONTENIDO INFERIOR: Texto + Botón (Fondo Negro) */
    .hero-bottom {
        position: relative;
        background: var(--primary-black);
        padding: 3rem 2rem 6rem 2rem;
        z-index: 20;
        text-align: center;
        margin-top: -2px;
        /* Evitar línea blanca pixel */
    }

    .hero-logo {
        width: 200px;
        max-width: 65%;
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Ajuste Preloader */
    .hero-preloader {
        top: 27.5vh;
        /* Mitad de 55vh */
    }

    .projects-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Espacio equilibrado */
    }

    /* Reset completo de tarjetas para móvil */
    .project-card,
    .project-card-large,
    .project-card-wide {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 300px !important;
        /* Altura corregida para móvil */
        width: 100%;
    }


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

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {

    .container,
    .container-fluid {
        padding: 0 1.5rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === ABOUT SECTION (NOSOTROS) === */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: var(--spacing-lg);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--primary-black);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-gray);
}

.about-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

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

/* === VALUES GRID === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-smooth);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.value-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.value-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 1rem;
}

.value-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-smooth);
}

.value-card:hover .value-title {
    color: white;
}

.value-card:hover .value-description {
    color: white;
}

.section-padding-lg {
    padding: var(--spacing-xxl) 0;
}

.bg-white {
    background: white;
}

/* === RESPONSIVE FOR ABOUT === */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 350px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* === FOOTER LOGO IMAGE === */
.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

/* === SERVICE SHOWCASE CARDS === */
.services-showcase {
    background: var(--cream);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
}

.service-showcase-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin: 0 3rem;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.service-showcase-card:hover .service-showcase-bg {
    transform: scale(1.08);
}

.service-showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.75) 0%, rgba(30, 30, 30, 0.65) 100%);
    z-index: 1;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-showcase-card:hover .service-showcase-overlay {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.80) 0%, rgba(139, 0, 0, 0.65) 100%);
}

/* Service showcase link wrapper */
.service-showcase-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.service-showcase-link:hover .service-showcase-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.service-showcase-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem;
    color: white;
    max-width: 1400px;
    margin: 0 auto;
}

.service-number-large {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.40);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-showcase-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.service-showcase-description {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.service-features-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
}

.service-showcase-card:hover .service-features-list {
    max-height: 400px;
    opacity: 1;
}

.service-features-list li {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.service-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* === PROCESS TIMELINE === */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
}

/* Arrow between steps - Desktop only */
.process-step::after {
    content: '→';
    position: absolute;
    top: 35px;
    right: -1.25rem;
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: 300;
    opacity: 0.8;
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-burgundy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    transition: all var(--transition-smooth);
}

.process-step:hover .process-number {
    transform: scale(1.15);
    background: var(--primary-gold);
    color: var(--primary-black);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.process-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--warm-gray);
}

/* === PROJECTS INTRO SECTION === */
.projects-intro {
    background-color: #fff;
    position: relative;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.intro-text:last-child {
    margin-bottom: 0;
}

.intro-text strong {
    color: var(--primary-black);
    font-weight: 600;
}

/* Elegant Link Styling */
.intro-text a {
    color: var(--primary-burgundy);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    padding-bottom: 1px;
}

.intro-text a:hover {
    color: var(--primary-black);
    border-bottom-color: var(--primary-gold);
}

@media (max-width: 768px) {
    .intro-text {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
        /* Better readability on mobile */
    }
}

/* === RESPONSIVE FOR SERVICES === */
@media (max-width: 1024px) {
    .service-showcase-content {
        padding: 3rem 4rem;
    }

    .service-number-large {
        font-size: 6rem;
    }

    .service-showcase-title {
        font-size: 2.5rem;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .service-showcase-card {
        height: 500px;
    }

    .service-showcase-content {
        padding: 2rem;
    }

    .service-number-large {
        font-size: 4rem;
    }

    .service-showcase-title {
        font-size: 2rem;
    }

    .service-showcase-description {
        font-size: 1rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: var(--spacing-lg);
}

.contact-info-cards {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon svg {
    color: white;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-gray);
}

.contact-card a {
    color: var(--primary-burgundy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--primary-gold);
}

/* === CONTACT FORM === */
.contact-form-wrapper {
    background: var(--cream);
    padding: 3rem;
}

.contact-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

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

/* === MAP SECTION === */
.map-section {
    padding: 0;
    background: var(--cream);
}

.container-full {
    max-width: 100%;
    padding: 0;
}

.map-wrapper {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
    transition: filter var(--transition-smooth);
}

.map-wrapper:hover iframe {
    filter: grayscale(0%);
}

/* === RESPONSIVE FOR CONTACT === */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .map-wrapper {
        height: 350px;
    }
}

/* === PROJECTS PAGE === */
.hero-projects {
    position: relative;
}

.hero-filters {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    z-index: 10;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

.hero-filters::-webkit-scrollbar {
    height: 4px;
}

.hero-filters::-webkit-scrollbar-track {
    background: transparent;
}

.hero-filters::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 2px;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-black);
}

/* === PROJECTS GRID === */
.projects-section {
    background: var(--cream);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-item {
    background: white;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.project-item.hidden {
    display: none;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-item:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.85) 0%, rgba(139, 0, 0, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

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

.project-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.project-item:hover .project-overlay-content {
    transform: translateY(0);
}

.project-overlay-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-overlay-category {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.btn-view-project {
    background: white;
    color: var(--primary-black);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-view-project:hover {
    background: var(--primary-gold);
    transform: translateX(5px);
}

/* === PROJECT INFO === */
.project-info {
    padding: 2rem;
}

.project-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--cream);
    color: var(--primary-burgundy);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-black);
}

.project-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--warm-gray);
}

/* === EMPTY STATE === */
.projects-empty {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--warm-gray);
    opacity: 0.3;
}

.projects-empty h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.projects-empty p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--warm-gray);
    margin-bottom: 2rem;
}

/* === RESPONSIVE FOR PROJECTS === */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .project-image-wrapper {
        height: 350px;
    }

    .hero-filters {
        bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image-wrapper {
        height: 300px;
    }

    .hero-filters {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .project-overlay-title {
        font-size: 1.5rem;
    }
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    background: white;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: visible;
    animation: lightboxFadeIn 0.3s ease;
    border-radius: 8px;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: white;
}

.lightbox-close:hover {
    background: var(--primary-burgundy);
    transform: rotate(90deg);
}

.lightbox-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
}

.lightbox-image-section {
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-info-section {
    padding: 0;
    overflow: hidden;
    height: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.lightbox-info-wrapper {
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: 100%;
}

/* Scrollbar visible styling */
.lightbox-info-wrapper::-webkit-scrollbar {
    width: 10px;
}

.lightbox-info-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 5px;
}

.lightbox-info-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

.lightbox-info-wrapper::-webkit-scrollbar-thumb:hover {
    background: #c09b3d;
}

.lightbox-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--cream);
    color: var(--primary-burgundy);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.lightbox-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 2rem;
}

.lightbox-details {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.lightbox-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-family: var(--font-body);
}

.lightbox-detail-item strong {
    color: var(--primary-black);
    font-weight: 600;
}

.lightbox-detail-item span {
    color: var(--warm-gray);
}

/* === RESPONSIVE FOR LIGHTBOX === */
@media (max-width: 1024px) {
    .lightbox-body {
        grid-template-columns: 1fr;
    }

    .lightbox-image-section {
        max-height: 400px;
    }

    .lightbox-info-wrapper {
        padding: 2rem;
    }

    .lightbox-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-image-section {
        max-height: 300px;
    }

    .lightbox-info-wrapper {
        padding: 1.5rem;
    }

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

    .lightbox-close {
        width: 40px;
        height: 40px;
    }
}

/* === LIGHTBOX GALLERY & NAVIGATION === */
.lightbox-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-family: var(--font-body);
    z-index: 5;
}

.video-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: white;
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

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

/* === KUULA 360 IFRAME === */
.lightbox-kuula-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === LIGHTBOX PREMIUM REDESIGN === */

/* Main image - show complete */
.lightbox-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #000;
}

/* Navigation arrows - BIGGER & CLEARER */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.95);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-black);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: var(--primary-gold);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

.lightbox-nav svg {
    width: 32px;
    height: 32px;
    stroke-width: 3;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
}

/* Thumbnail gallery */
.lightbox-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem 1rem 1rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 2px;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lightbox-thumb:hover img {
    transform: scale(1.1);
}

.lightbox-thumb.active {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Play icon overlay for video thumbnails */
.thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.lightbox-thumb-video:hover .thumb-play-icon {
    background: var(--primary-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.thumb-play-icon svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.lightbox-thumb-kuula::after {
    content: '360°';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--primary-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-shadow: none;
}

/* Info section improvements */
.lightbox-info-section {
    padding: 0;
    overflow: hidden;
    height: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.lightbox-info-wrapper {
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: 100%;
}

/* Scrollbar visible styling */
.lightbox-info-wrapper::-webkit-scrollbar {
    width: 10px;
}

.lightbox-info-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 5px;
}

.lightbox-info-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

.lightbox-info-wrapper::-webkit-scrollbar-thumb:hover {
    background: #c09b3d;
}

/* Responsive */
@media (max-width: 1024px) {
    .lightbox-nav {
        width: 60px;
        height: 60px;
    }

    .lightbox-nav svg {
        width: 28px;
        height: 28px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-thumb {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .lightbox-body {
        grid-template-columns: 1fr;
    }

    .lightbox-image-section {
        max-height: 50vh;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-thumb {
        width: 70px;
        height: 50px;
    }

    .lightbox-thumbnails {
        padding: 1.5rem 0.5rem 0.5rem;
        gap: 0.5rem;
    }

    .lightbox-counter {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   MISIÃ“N, VALORES Y COMPROMISOS - NOSOTROS
   ============================================ */

/* MisiÃ³n y Objetivos Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.mission-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-card .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.mission-card .card-icon svg {
    stroke: #1a1a1a;
}

.mission-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.mission-card p {
    line-height: 1.8;
    color: #666;
    font-size: 1rem;
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.objectives-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
    color: #666;
}

.objectives-list li:before {
    content: "";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Valores Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 350px));
    /* 3 columnas fijas */
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    /* Centrar las tarjetas */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
}

.value-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Compromisos Grid */
.commitments-section {
    margin-top: 4rem;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 400px));
    /* 3 columnas fijas */
    gap: 2.5rem;
    margin-top: 2rem;
    justify-content: center;
    /* Centrar las tarjetas */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.commitment-card {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #1a1a1a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.commitment-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.commitment-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.commitment-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.commitment-card p {
    line-height: 1.8;
    color: #666;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        /* 2 columnas en tablet */
    }

    .commitments-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        /* 2 columnas en tablet */
    }
}

@media (max-width: 768px) {

    .mission-vision-grid,
    .values-grid,
    .commitments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-card,
    .commitment-card {
        padding: 2rem;
    }

    .value-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   CARRUSEL DE SERVICIOS
   ============================================ */

.service-carousel {
    margin-top: 2rem;
    overflow: hidden;
}

.service-carousel .swiper-slide {
    height: auto;
}

.service-carousel .swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.service-carousel .swiper-pagination-bullet {
    background: #1a1a1a;
    opacity: 0.5;
}

.service-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}

.service-carousel .swiper-button-next,
.service-carousel .swiper-button-prev {
    color: #1a1a1a;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-carousel .swiper-button-next:after,
.service-carousel .swiper-button-prev:after {
    font-size: 20px;
}

@media (max-width: 768px) {
    .service-carousel .swiper-slide img {
        height: 250px;
    }

    .service-carousel .swiper-button-next,
    .service-carousel .swiper-button-prev {
        display: none;
    }

    /* Service Showcase Cards - Mobile Responsive */
    .service-showcase-card {
        height: auto;
        min-height: 550px;
        margin: 0 1rem;
    }

    .service-showcase-content {
        padding: 2.5rem 2rem;
        justify-content: flex-start;
    }

    .service-number-large {
        font-size: 5rem;
        margin-bottom: 0.5rem;
    }

    .service-showcase-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-showcase-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Compact button for mobile */
    .service-showcase-content .btn-primary,
    .service-showcase-content span.btn-primary {
        margin-top: 1rem !important;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .services-showcase {
        gap: 2rem;
        padding: 2rem 0;
    }
}

/* Mobile phones - Extra small devices */
@media (max-width: 480px) {
    .service-showcase-card {
        min-height: 520px;
        margin: 0 0.5rem;
    }

    .service-showcase-content {
        padding: 2rem 1.5rem;
    }

    .service-number-large {
        font-size: 4rem;
    }

    .service-showcase-title {
        font-size: 1.75rem;
    }

    .service-showcase-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Process Timeline - 2 columns on small phones */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-number {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .process-title {
        font-size: 1rem;
    }

    .process-description {
        font-size: 0.85rem;
    }

    /* Hide arrows on mobile */
    .process-step::after {
        display: none;
    }
}

/* Tablets - Process Timeline 3 columns */
@media (max-width: 992px) and (min-width: 481px) {
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .process-number {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
    }

    .process-title {
        font-size: 1.1rem;
    }

    .process-description {
        font-size: 0.9rem;
    }

    /* Hide arrows on tablets */
    .process-step::after {
        display: none;
    }
}

/* === MOBILE HERO FIX === */
/* Force overlay layout on mobile for projects hero */
@media (max-width: 768px) {
    .hero.hero-projects {
        min-height: 80vh;
        /* Ensure tall enough */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
    }

    .hero.hero-projects .hero-bg {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero.hero-projects .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero.hero-projects .hero-content {
        position: relative;
        z-index: 5;
        padding-top: 80px;
        /* Account for navbar */
        margin-top: 0 !important;
        /* Prevent pushing down */
        width: 100%;
    }

    /* Adjust title size for better fit on overlay */
    .hero.hero-projects .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero.hero-projects .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* Filters Layout for Mobile - 3 columns grid */
    .hero-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        overflow-x: visible;
        /* Disable horizontal scroll */
        padding-bottom: 0;
        width: 100%;
    }

    .filter-btn {
        flex: 0 0 calc(33.33% - 0.5rem);
        /* 3 buttons per row */
        width: auto;
        padding: 0.75rem 0.25rem;
        font-size: 0.75rem;
        white-space: normal;
        /* Allow text wrap if needed */
        text-align: center;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 48px;
    }

    /* Scroll Indicator Adjustment for Mobile */
    .hero-scroll {
        bottom: 1rem;
        z-index: 10;
        /* Ensure on top of everything */
    }

    .scroll-indicator span {
        font-size: 0.65rem;
        /* Smaller text */
    }

    .scroll-line {
        height: 40px;
        /* Shorter line */
    }
}

/* === MODERN SCROLL INDICATOR & LAYOUT ADJUSTMENTS === */

/* FIX: Force column layout and centering */
/* FIX: Force fixed vertical layout (Title Top, Buttons Bottom) */
/* FIX: Force fixed vertical layout (Title Top, Buttons Bottom) */
.hero.hero-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 20px;
    height: auto;
    min-height: 100vh;
}

/* Filters: High Specificity Fix - Pinned to Bottom */
#projectsHero .hero-filters {
    position: absolute;
    bottom: 85px;
    /* Raised 15px more (Total 25px from original 60px) */
    /* Raised 10px */
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 20;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    /* Consistent gap, replaced rem mixed with px */

    transform: none !important;
    padding: 0 1rem !important;
    box-sizing: border-box;

    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure buttons have visible style and correct dimensions */
/* Ensure buttons have visible style with Maximum Specificity */
#projectsHero .filter-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem !important;
    line-height: normal !important;
    transition: all 0.3s ease;
    min-width: 100px;
    height: auto !important;
    min-height: 48px !important;
    margin: 0 !important;
    /* Removed margin to fix centering shift, relying on gap */
    border-radius: 4px;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

#projectsHero .filter-btn:hover,
#projectsHero .filter-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Scroll Arrow: Robust Absolute Centering */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    /* Center anchor */
    transform: translateX(-50%);
    /* Shift back by 50% */
    width: auto;
    /* Allow auto width */
    z-index: 9;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    width: 100%;
}

.scroll-arrow-icon {
    color: white;
    opacity: 0.9;
    animation: bounceArrow 2s infinite ease-in-out;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-arrow-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 768px) {

    .intro-text,
    .hero-subtitle {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile Fixed Layout Specifics */
    .hero.hero-projects {
        padding-top: 0 !important;
        /* Reset padding to control via flex */
        padding-bottom: 0 !important;
        justify-content: flex-start;
        /* Red Gradient for Bottom Section */
        background: linear-gradient(180deg, var(--primary-burgundy) 0%, #1a0505 100%);
        /* Fallback */
        background-color: var(--primary-burgundy);

        /* FIX HEIGHT JUMP: Strict viewport height */
        height: 100vh !important;
        height: 100svh !important;
        /* Modern mobile fix */
        min-height: auto !important;
    }

    /* Split View: Image takes 50% (Restored) */
    /* Split View: Image takes 50% (Restored to correct split) */
    #projectsHero .hero-bg,
    #projectsHero .hero-video {
        height: 50% !important;
        /* FIXED: Back to 50% */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1;
    }

    #projectsHero .hero-overlay {
        height: 101% !important;
        /* 101% of the 50% container to cover gaps */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
        z-index: 2;
        opacity: 1 !important;
    }

    /* Ensure Overlay sits ON TOP of image for contrast */
    #projectsHero .hero-image {
        height: 100% !important;
        /* Relative to hero-bg */
        width: 100%;
        object-fit: cover;
        position: absolute;
        z-index: 1;
    }

    #projectsHero .hero-overlay {
        height: 100% !important;
        /* Relative to hero-bg */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
        /* Stronger mask */
        z-index: 2;
        /* WINNER: On top of image */
        opacity: 1 !important;
    }

    /* Content Styling with Padding and Layout */
    #projectsHero .hero-content {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        z-index: 2;
        /* Content above image */
        position: relative;
    }

    /* 1. Title & Label: Center in the top 50% (Image Area) */
    #projectsHero .hero-label {
        /* Push down to approx middle of image area. */
        margin-top: 10vh !important;
        /* Adjusted for 50% height */
        margin-bottom: 0;
    }

    #projectsHero .hero-title {
        margin-top: 0 !important;
    }

    /* 2. Description: Push to bottom (Red Area) */
    /* FIX: Instead of margin-bottom pushing it up, use margin-top to push it DOWN below the image */
    /* 2. Description: Push to bottom (Red Area) */
    /* FIX: Force absolute positioning to guarantee it starts exactly 25px below the 50% image line */
    #projectsHero .hero-subtitle {
        position: absolute !important;
        top: calc(50% + 25px) !important;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 !important;

        /* DYNAMIC SIZING: Adapts to screen height */
        /* Min: 0.8rem (readable), Ideal: 2.2% of height, Max: 1.1rem */
        font-size: clamp(0.8rem, 2.2vh, 1.1rem) !important;
        line-height: 1.3 !important;

        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        padding: 0 1.5rem !important;
        /* Restore horizontal padding */

        /* Ensure it doesn't overlap buttons by limiting height or z-index */
        z-index: 5;
    }

    /* Force Mobile Specificity to Win */
    #projectsHero .hero-filters {
        bottom: 90px;
        /* Center using Transform method to avoid padding/margin issues */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        /* Use 95% of viewport */

        margin: 0 !important;
        border: none !important;
        background: transparent !important;

        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;

        padding: 0 !important;
        /* Remove internal padding */
        z-index: 10;
        justify-items: center;
        box-shadow: none !important;
    }

    /* Styles inside Media Query */
    #projectsHero .filter-btn {
        padding: 10px 4px !important;
        font-size: 0.70rem !important;
        min-width: unset !important;
        width: 100%;
        /* Fill grid cell */
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-scroll {
        bottom: 20px;
        display: flex !important;
        /* Restore arrow */
        z-index: 5;
    }

    /* WhatsApp & Fixed Elements Adjustment for Mobile */
    /* Target common floating button classes */
    .whatsapp-float,
    .whatsapp-btn,
    .btn-whatsapp,
    #whatsapp-button {
        bottom: 15px !important;
        /* Lowered 15px */
        right: 15px !important;
        /* Moved right 15px */
    }
}

/* =========================================
   TREATMENT VIEW STYLES
   ========================================= */
#treatment-view {
    padding-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.treatment-details {
    margin-bottom: 4rem;
}

.treatment-text-col h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.treatment-text-col p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.treatment-features {
    list-style: none;
    margin-top: 2rem;
}

.treatment-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.treatment-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.section-subtitle-small {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-gold);
    padding-left: 1rem;
}

/* Carousel */
.treatment-carousel-section {
    margin-bottom: 5rem;
}

.treatment-swiper {
    width: 100%;
    padding-bottom: 3rem;
    /* Space for pagination */
}

.treatment-swiper .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

.slide-caption {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--warm-gray);
    text-align: center;
}

/* Swiper Controls Customization */
.treatment-swiper .swiper-button-next,
.treatment-swiper .swiper-button-prev {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.7);
    /* Reduced opacity */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.treatment-swiper .swiper-button-next:after,
.treatment-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.treatment-swiper .swiper-button-next:hover,
.treatment-swiper .swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.treatment-swiper .swiper-pagination-bullet-active {
    background: var(--primary-gold);
}

/* Clients Banner */
.clients-banner-wrapper {
    width: 100%;
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clients-banner-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Optional: Mix blend mode if image has white background and container is colored */
    /* mix-blend-mode: multiply; */
}

@media (min-width: 1024px) {
    .clients-banner-wrapper {
        padding: 2rem;
        max-width: 70%;
        margin: 0 auto;
    }

    .clients-banner-img {
        max-width: 100%;
    }
}

/* Treatment Services Grid */
.treatment-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.service-block {
    background: #fff;
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.service-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-block h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    /* Increased gap for better spacing */
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-burgundy);
    /* Burgundy color for icons */
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    /* Thin, elegant lines */
}

.service-block p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--warm-gray);
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Treatment Closing Section */
.treatment-closing {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Location Cards Grid (Contact Page) */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Override default blue links */
a {
    color: var(--primary-gold);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-burgundy);
}

.location-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    /* Slightly more rounded for elegance */
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-gold);
}

.location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(223, 168, 1, 0.1);
    /* Light gold bg */
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.location-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--warm-gray);
    margin-bottom: 0;
}

/* === CONTACT PAGE MOBILE REFINEMENTS === */
@media (max-width: 768px) {

    /* 1. FORCE FULL HEIGHT HERO & CENTER CONTENT */
    body .hero.contact-hero {
        height: 100vh !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: black !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
    }

    /* Force background to cover everything */
    body .hero.contact-hero .hero-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }

    body .hero.contact-hero .hero-bg img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: 0.5 !important;
    }

    /* Center text overlay */
    body .hero.contact-hero .hero-content {
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1.5rem !important;
        margin: 0 !important;
        background: none !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important;
        top: auto !important;
        transform: none !important;
    }

    body .contact-hero .hero-scroll {
        position: absolute !important;
        bottom: 2rem !important;
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
        /* Fix off-center issue */
        display: flex;
        justify-content: center;
        z-index: 20;
    }

    /* Reduce white space above form */
    section.section-padding-lg.bg-white {
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
    }

    /* Typography fixes for mobile hero */
    body .contact-hero .hero-title {
        color: white !important;
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    body .contact-hero .hero-subtitle {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    body .contact-hero .hero-label {
        color: var(--primary-gold) !important;
    }

    /* 2. REORDER CONTACT GRID: Form First, Info Second */
    /* Using flex direction column-reverse */
    body .contact-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 3rem !important;
    }

    /* Ensure children behave */
    body .contact-grid>div {
        width: 100% !important;
    }

    body .contact-info {
        margin-top: 0 !important;
        border-top: 2px solid rgba(0, 0, 0, 0.05);
        /* Divider */
        padding-top: 3rem;
    }
}