* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #666666;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --line-color: rgba(0, 0, 0, 0.1);
    --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    --dark-color: #1a202c;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --backdrop-blur: blur(20px);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}
body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #000000;
    background: #ffffff;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.01em;
}

html {
    scroll-behavior: smooth;
}
main {
    margin-top: 70px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.header.scrolled {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}
.header.scrolled .navbar {
    padding: 1.2rem 0;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 2rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s ease;
}
.nav-logo:hover {
    opacity: 0.7;
}
.nav-logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}
.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}
.logo-icon i {
    color: white;
    font-size: 12px;
}
#site-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.02em;
}
.logo-subtitle {
    font-size: 0.55rem;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: 2px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin-left: auto;
}
.nav-menu li a {
    text-decoration: none;
    color: #000000;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    position: relative;
    letter-spacing: -0.01em;
    display: block;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 30px;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    width: auto;
    height: auto;
    z-index: 100000 !important;
    gap: 5px;
}
.nav-toggle:hover .bar {
    background: #666666;
}
.bar {
    width: 24px;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
    transform-origin: center;
}
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu Overlay - Solo visible en móviles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}
html.menu-open {
    overflow: hidden !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Desktop: Contenedor con tamaño fijo uniforme para todas las imágenes */
.slide {
    overflow: hidden;
}

.slide img {
    width: 950px;
    max-width: 85%;
    height: 600px;
    object-fit: contain;
    object-position: center center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    transform-origin: center center;
}

/* Móvil: Landing Page estilo moderno */
@media (max-width: 1024px) {
    /* Fondo oscuro para toda la página cuando hay slider */
    body:has(.hero-slider) {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        overflow: hidden !important;
        height: 100vh !important;
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    html:has(.hero-slider) {
        overflow: hidden !important;
        height: 100% !important;
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        background: #1a1a1a !important;
    }
    
    .hero-slider {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        height: 100% !important;
        width: 100vw !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
    }
    
    .slider-container {
        width: 100% !important;
        height: 100% !important;
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
    }
    
    .slide {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        transition: opacity 1s ease-in-out !important;
        z-index: 1 !important;
    }
    
    .slide.active {
        opacity: 1 !important;
        z-index: 2 !important;
    }
    
    /* Imagen de fondo sin opacidad - CUBRIR TODO */
    .slide img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        opacity: 1 !important;
        filter: grayscale(0%) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Contenido encima de la imagen - Posicionado abajo con MÁS ESPACIO */
    .slide-info {
        position: absolute !important;
        z-index: 2 !important;
        bottom: 120px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: transparent !important;
        padding: 2rem !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        max-width: 500px !important;
    }
    
    /* Título MUY GRANDE y llamativo */
    .slide-info h2 {
        font-size: 4rem !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
        margin: 0 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.1 !important;
        font-family: 'Space Grotesk', sans-serif !important;
    }
    
    /* Botón MUY pequeño y minimalista con MEJOR VISIBILIDAD */
    .view-obra-link {
        color: #ffffff !important;
        font-size: 0.75rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
        border: 2px solid rgba(255, 255, 255, 0.9) !important;
        background: rgba(0, 0, 0, 0.4) !important;
        padding: 0.6rem 1.8rem !important;
        border-radius: 50px !important;
        transition: all 0.4s ease !important;
        text-decoration: none !important;
        display: inline-block !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase !important;
        font-weight: 500 !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    }
    
    .view-obra-link:hover {
        background: #ffffff !important;
        color: #1a1a1a !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 30px rgba(255, 255, 255, 0.4) !important;
        border-color: #ffffff !important;
    }
}

/* Controles del slider - Desktop: Flechas sin contorno */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 100, 100, 0.12);
    border: none;
    color: #505050;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000 !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    outline: none;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-control:hover {
    background: rgba(100, 100, 100, 0.22);
    color: #303030;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.slider-control.prev {
    left: 2rem;
}

.slider-control.next {
    right: 2rem;
}

.slider-control i {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Móvil: Flechas sin contorno */
@media (max-width: 1024px) {
    .slider-control {
        background: rgba(255, 255, 255, 0.15) !important;
        border: none !important;
        color: #ffffff !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        tap-highlight-color: transparent !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        transition: all 0.3s ease !important;
    }
    
    .slider-control.prev {
        left: 1.5rem !important;
    }
    
    .slider-control.next {
        right: 1.5rem !important;
    }
    
    .slider-control i {
        font-size: 1.1rem !important;
        pointer-events: none !important;
        font-weight: 700 !important;
    }
    
    .slider-control:hover,
    .slider-control:active,
    .slider-control:focus {
        background: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        outline: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    }
}

.slide-info {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001 !important;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.75);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.slide-info h2 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: none;
    letter-spacing: -0.02em;
}

/* Móvil: Pequeño y minimalista sin fondo */
@media (max-width: 1024px) {
    .slide-info {
        bottom: 2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: transparent !important;
        padding: 0.5rem 1.2rem !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.4rem !important;
        text-align: center !important;
        z-index: 10001 !important;
    }
    
    .slide-info h2 {
        font-size: 0.95rem !important;
        color: #ffffff !important;
        font-weight: 400 !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    }
    
    .view-obra-link {
        color: #ffffff !important;
        font-size: 0.75rem !important;
        opacity: 0.9 !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    }
}

.view-obra-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
}

.view-obra-link:hover {
    opacity: 0.7;
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 900px;
}

.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: #ffffff;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    padding: 3rem 2rem;
}
/* Animación deshabilitada */
.hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.7);
    color: #000000;
    position: relative;
    text-align: center;
}
.hero-subtitle {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.7;
    letter-spacing: -0.01em;
}
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    position: relative;
    border: 1.5px solid #000000;
    background: #ffffff;
    color: #000000;
}
.hero-btn.primary {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #000000;
}
.hero-btn.secondary {
    background: #ffffff;
    color: #000000;
    border: 1.5px solid #000000;
}
.hero-btn.primary:hover {
    background: #ffffff;
    color: #000000;
    border: 1.5px solid #000000;
}
.hero-btn.secondary:hover,
.hero-btn:hover {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #000000;
}
.hero-btn:focus,
.hero-btn:focus-visible,
.hero-btn:focus-within {
    outline: none !important;
    box-shadow: none !important;
}
.hero-btn:active {
    transform: translateY(0);
}
.hero-btn::before,
.hero-btn::after {
    display: none !important;
    content: none !important;
}
.section-editable {
    position: relative;
    padding: 0 0 6rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}
.services {
    background: var(--secondary-color);
    position: relative;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}
.service-card {
    background: var(--secondary-color);
    padding: 4rem 3rem;
    border: 1px solid var(--primary-color);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}
.service-card:hover {
    background: var(--primary-color);
    color: white;
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: block;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    color: white;
}
.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}
.service-card:hover .service-title {
    color: white;
}
.service-description {
    color: var(--accent-color);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
}
.service-card:hover .service-description {
    color: white;
}
.about {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(31, 41, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.01) 0%, transparent 50%);
}
.about .section-title {
    color: var(--text-color);
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.about-content p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-color);
    font-weight: 300;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.contact-info {
    position: relative;
}
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid transparent;
}
.contact-item:hover {
    transform: translateX(5px);
    border-left-color: #dc2626;
    box-shadow: var(--shadow-medium);
}
.contact-item i {
    color: var(--gold-accent);
    font-size: 1.5rem;
    width: 25px;
    text-align: center;
}
.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.5rem;
    box-shadow: var(--shadow-light);
}
.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-medium);
}
.contact-form {
    background: var(--secondary-color);
    padding: 2rem;
    border: 1px solid var(--primary-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.contact-form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
}
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0.6rem;
    border: 2px solid var(--primary-color);
    background: var(--secondary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    outline: none;
    resize: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: var(--primary-color);
    color: white;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--accent-color);
}
.submit-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}
.submit-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
.submit-btn:focus,
.submit-btn:focus-visible {
    outline: none !important;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Projects Gallery Section */
.projects-gallery {
    padding: 6rem 0;
    background: #ffffff;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 300;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}
.gallery-overlay h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}
.gallery-cta {
    text-align: center;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: #000000;
    border: 1.5px solid #000000;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}
.cta-btn:hover {
    background: #000000;
    color: #ffffff;
}
.cta-btn i {
    transition: transform 0.3s ease;
}
.cta-btn:hover i {
    transform: translateX(5px);
}

.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text-color);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(31, 41, 55, 0.02) 0%, transparent 50%);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
}
.footer-logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.footer-text {
    opacity: 0.8;
    font-size: 1.1rem;
    color: var(--text-color);
}
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.footer-tagline {
    font-style: italic;
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
}
.footer-copyright {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}
.footer-copyright span {
    color: var(--primary-color);
    font-weight: 600;
}
.footer-credentials {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin: 0;
}
.footer .logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
}
.footer .logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer .logo-text span {
    color: var(--primary-color);
}
.footer .logo-subtitle {
    color: var(--accent-color);
    font-size: 0.6rem;
}
.admin-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}
.admin-toggle button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.admin-toggle button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
}
.admin-toggle button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}
.admin-toggle button:hover::before {
    animation: shine 0.5s ease-in-out;
}
@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.hidden {
    display: none !important;
}
.editable-text {
    position: relative;
    transition: var(--transition);
}
.edit-mode .editable-text:hover {
    outline: 2px dashed var(--gold-accent);
    outline-offset: 4px;
    background: rgba(233, 69, 96, 0.05);
    border-radius: 8px;
    cursor: pointer;
}
.edit-mode .editable-text:hover::after {
    content: '✏️ Editar';
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}
.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--gold-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.message {
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    animation: slideInRight 0.5s ease;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.message.success {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f3f4f6 100%);
    color: var(--text-color);
    border-left: 5px solid var(--gold-accent);
}
.message.error {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f3f4f6 100%);
    color: var(--text-color);
    border-left: 5px solid #991b1b;
}
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    border: 2px solid var(--light-gray);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particles 20s infinite linear;
}
@keyframes float-particles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    .nav-container {
        padding: 0 1.5rem;
    }
    .hero-container {
        padding: 0 1.5rem;
    }
    .header {
        left: 15px;
        right: 15px;
        top: 15px;
    }
}
@media (max-width: 968px) {
    .menu-overlay {
        display: block;
        pointer-events: none;
    }
    .menu-overlay.active {
        pointer-events: auto;
    }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background: #ffffff !important;
        width: 320px;
        max-width: 85%;
        text-align: left;
        transition: right 0.3s ease;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
        gap: 0;
        padding: 6rem 2rem 2rem 2rem;
        border: none;
        overflow-y: auto;
        z-index: 1001 !important;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        z-index: 1002;
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu li a {
        padding: 1.2rem 0;
        margin: 0;
        display: block;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 400;
        color: #000000 !important;
        position: relative;
        z-index: 1003;
    }
    .nav-menu li a::after {
        display: none;
    }
    .nav-menu li a:hover {
        color: #666666 !important;
    }
    .nav-toggle {
        display: flex;
        border: none;
        background: transparent;
        width: auto;
        height: auto;
        padding: 0.5rem;
    }
    .hero {
        padding-top: 140px;
    }
    .hero-content {
        padding: 3rem 2rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-content {
        max-width: 100%;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .about-image {
        margin-top: 1rem;
    }
}
@media (min-width: 769px) {
    .header {
        transform: translateY(0) !important;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    /* Header BLANCO para páginas normales */
    .header {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0;
        padding: 0.5rem 0;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        z-index: 99999 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        min-height: 80px;
    }
    .header.scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    .navbar {
        background: #ffffff !important;
    }
    .nav-container {
        background: #ffffff !important;
    }
    
    /* Header TRANSPARENTE SOLO para página de inicio */
    body:has(.hero-slider) .header {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    body:has(.hero-slider) .navbar {
        background: transparent !important;
    }
    
    body:has(.hero-slider) .nav-container {
        background: transparent !important;
    }
    
    /* Páginas NORMALES - TODAS las páginas con <main> tienen espacio superior */
    main {
        margin-top: 100px !important;
        padding-top: 0 !important;
    }
    
    /* Secciones dentro de main */
    main > section:first-of-type {
        padding-top: 20px !important;
    }
    
    /* Página de inicio (hero-slider está FUERA de main) */
    .hero-slider {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Si hay slider, asegurar que NO haya margin */
    body:has(.hero-slider) section.hero-slider {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    body::before,
    body::after,
    .hero::before,
    .hero::after,
    .about::before,
    .about::after,
    .footer::before,
    .footer::after,
    section::before,
    section::after {
        display: none !important;
    }
    .hero,
    .hero-content,
    .hero-title,
    .hero-subtitle,
    section,
    main,
    .container {
        position: relative;
        z-index: 1 !important;
    }
    body > *:not(.header) {
        z-index: 1 !important;
    }
    * {
        z-index: auto;
    }
    .header {
        z-index: 1000 !important;
    }
    .nav-toggle {
        z-index: 10000 !important;
    }
    .nav-menu {
        z-index: 1001 !important;
    }
    * {
        box-shadow: none !important;
    }
    .header {
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
    }
    .nav-container {
        padding: 0 1rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    /* Logo y menú NEGROS por defecto en móvil */
    #site-name {
        color: #000000 !important;
    }
    
    .logo-subtitle {
        color: rgba(0, 0, 0, 0.6) !important;
    }
    
    .logo-icon {
        background: rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .logo-icon i {
        color: #000000 !important;
    }
    
    .nav-toggle .bar {
        background: #000000 !important;
    }
    
    .menu-overlay {
        display: block;
    }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background: #ffffff !important;
        width: 320px;
        max-width: 85%;
        text-align: left;
        transition: right 0.3s ease;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
        gap: 0;
        padding: 6rem 2rem 2rem 2rem;
        border: none;
        overflow-y: auto;
        z-index: 1001 !important;
        margin-top: 0;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu li {
        flex: none;
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        z-index: 1002;
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu li a {
        padding: 1.2rem 0;
        margin: 0;
        display: block;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 400;
        color: #000000 !important;
        position: relative;
        z-index: 1003;
    }
    .nav-menu li a::after {
        display: none;
    }
    .nav-menu li a:hover {
        color: #666666 !important;
    }
    .nav-toggle {
        display: flex !important;
    }
    .contact-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .contact-info {
        order: 1 !important;
        width: 100%;
        padding: 0;
    }
    .contact-form-container {
        order: 2 !important;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .contact-form {
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        box-sizing: border-box;
    }
    .hero {
        min-height: 100vh;
        padding-top: 100px;
        position: relative;
        z-index: 1 !important;
    }
    
    /* Hero con slider - sin padding top */
    body:has(.hero-slider) .hero {
        padding-top: 0 !important;
    }
    .hero-content {
        padding: 2rem 1rem;
        margin: 0;
        text-align: center;
        position: relative;
        z-index: 1 !important;
    }
    .hero-title,
    .hero-subtitle {
        position: relative;
        z-index: 1 !important;
    }
    .hero-slider {
        height: 100vh;
        margin-top: 0 !important;
    }
    
    /* Eliminar TODOS los espacios cuando hay slider */
    body:has(.hero-slider) {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    html:has(.hero-slider) {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Slider debe empezar desde el tope absoluto */
    body:has(.hero-slider) .hero-slider {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1 !important;
    }
    
    /* Header TRANSPARENTE en móvil con slider */
    body:has(.hero-slider) .header {
        background: transparent !important;
        background-color: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
    
    body:has(.hero-slider) .header.scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    body:has(.hero-slider) .navbar,
    body:has(.hero-slider) nav.navbar {
        background: transparent !important;
        background-color: transparent !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    body:has(.hero-slider) .nav-container,
    body:has(.hero-slider) div.nav-container {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Logo BLANCO en página de inicio móvil */
    body:has(.hero-slider) #site-name {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    body:has(.hero-slider) .logo-subtitle {
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    body:has(.hero-slider) .logo-icon {
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: none !important;
    }
    
    body:has(.hero-slider) .logo-icon i {
        color: #ffffff !important;
    }
    
    /* Barras del menú hamburguesa BLANCAS */
    body:has(.hero-slider) .nav-toggle .bar {
        background: #ffffff !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Cuando se hace scroll, el logo vuelve a negro */
    body:has(.hero-slider) .header.scrolled #site-name {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    body:has(.hero-slider) .header.scrolled .logo-subtitle {
        color: rgba(0, 0, 0, 0.6) !important;
        text-shadow: none !important;
    }
    
    body:has(.hero-slider) .header.scrolled .logo-icon {
        background: rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    body:has(.hero-slider) .header.scrolled .logo-icon i {
        color: #000000 !important;
    }
    
    body:has(.hero-slider) .header.scrolled .nav-toggle .bar {
        background: #000000 !important;
        box-shadow: none !important;
    }
    
    body:has(.hero-slider) .hero-slider {
        margin-top: 0 !important;
    }
    
    /* Mantener el menú lateral blanco */
    body:has(.hero-slider) .nav-menu,
    body:has(.hero-slider) .nav-menu * {
        background: #ffffff !important;
    }
    
    body:has(.hero-slider) .nav-menu a {
        color: #000000 !important;
    }
    
    /* Ocultar slides desktop-only en móvil */
    .slide.desktop-only {
        display: none !important;
    }
    
    /* Controles del slider en móvil */
    .slider-control {
        width: 40px;
        height: 40px;
    }
    
    .slider-control.prev {
        left: 1rem;
    }
    
    .slider-control.next {
        right: 1rem;
    }
    
    .slider-control i {
        font-size: 1rem;
    }
    
    .slide-info {
        bottom: 1.5rem;
        left: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .slide-info h2 {
        font-size: 1.3rem;
    }
    .view-obra-link {
        font-size: 0.85rem;
    }
    .hero-content-overlay {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 2rem;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 3rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .hero-btn {
        padding: 1.2rem 3rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .page-header {
        padding-top: 20px !important;
        margin-bottom: 2rem !important;
    }
    
    /* Solo en página con slider, quitar padding del header */
    body:has(.hero-slider) .page-header {
        padding-top: 0 !important;
    }
    
    .projects-page,
    .education-page {
        padding-top: 20px !important;
    }
    
    /* Solo en página con slider, quitar padding */
    body:has(.hero-slider) .projects-page,
    body:has(.hero-slider) .education-page {
        padding-top: 0 !important;
    }
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 2rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    .section-editable {
        padding: 3rem 0;
    }
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    .projects-gallery {
        padding: 3rem 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gallery-item {
        aspect-ratio: 16/10;
    }
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-card {
        padding: 2.5rem 2rem;
        text-align: center;
    }
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .service-description {
        font-size: 0.95rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    .about-content p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    .about-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    .stat-item {
        padding: 1.25rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .about-image {
        margin-top: 2rem;
    }
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    .image-placeholder i {
        font-size: 3rem;
    }
}
@media (max-width: 480px) {
    .hero {
        padding-top: 440px;
    }
    .hero-content {
        padding: 1.5rem 0.5rem;
        margin: 0;
    }
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    .hero-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .hero-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        gap: 0.5rem;
        width: 90%;
        max-width: 280px;
    }
    .hero-buttons {
        gap: 0.8rem;
    }
    .section-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        margin-bottom: 1.5rem;
    }
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .section-editable {
        padding: 2.5rem 0;
    }
    .container {
        padding: 0 0.5rem;
    }
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .service-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .nav-logo {
        font-size: 1.2rem;
    }
    .nav-logo .logo-subtitle {
        font-size: 0.7rem;
    }
    button, .btn {
        min-height: 44px; 
        padding: 0.8rem 1.5rem;
    }
    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .about-stats {
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    .stat-item {
        padding: 1rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
    .image-placeholder i {
        font-size: 2.5rem;
    }
}
@media (max-width: 360px) {
    .hero {
        padding-top: 460px;
    }
    .hero-title {
        font-size: clamp(1.5rem, 12vw, 2.2rem);
    }
    .hero-subtitle {
        font-size: clamp(0.85rem, 6vw, 1rem);
        padding: 0 0.5rem;
    }
    .hero-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
        width: 95%;
    }
    .service-card {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
    }
    .container {
        padding: 0 0.25rem;
    }
    .contact-form {
        padding: 1rem;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.65rem;
        font-size: 16px;
    }
    .form-group textarea {
        min-height: 80px;
    }
    .about-content p {
        font-size: 0.95rem;
        padding: 0 0.25rem;
    }
    .about-text {
        font-size: 0.9rem;
    }
    .about-stats {
        padding: 0 0.25rem;
        gap: 0.8rem;
    }
    .stat-item {
        padding: 0.8rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .image-placeholder {
        width: 180px;
        height: 180px;
    }
    .image-placeholder i {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    a, button, .nav-menu li a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-menu li a {
        justify-content: flex-start;
        padding-left: 2rem;
    }
    .hero-buttons {
        gap: 1.5rem;
    }
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    input, select, textarea {
        font-size: 16px;
    }
    a {
        text-decoration: underline;
        text-decoration-skip-ink: auto;
    }
    .hero-btn, .nav-menu li a {
        text-decoration: none;
    }
}
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    .hero-content {
        padding: 1rem 2rem;
    }
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    .hero-btn {
        width: auto;
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    .section-editable {
        padding: 2rem 0;
    }
}
@media (prefers-contrast: high) {
    :root {
        --primary-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0, 0, 0, 0.3);
    }
    .hero-title,
    .nav-logo span {
        background: #000000;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero::after,
    .hero::before {
        animation: none !important;
    }
    body::before {
        animation: none !important;
    }
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
*:focus-visible:not(.hero-btn):not(button):not(a) {
    outline: 3px solid rgba(102, 126, 234, 0.6);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
    outline: none !important;
}
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}
::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

/* Estilos para páginas individuales */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Estilos para página de Proyectos */
.projects-page {
    padding: 0 0 6rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-year {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive para páginas */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ============================================
   ESTILOS PARA PÁGINAS DE DETALLE DE PROYECTOS
   ============================================ */

.project-detail {
    padding: 4rem 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span:not(.breadcrumb a) {
    color: var(--accent-color);
}

/* Header del proyecto */
.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-color);
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-description {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
}

/* Imagen principal */
.project-main-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-main-image:hover img {
    transform: scale(1.02);
}

/* Contenido del proyecto */
.project-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Galería del proyecto */
.project-gallery {
    margin-bottom: 4rem;
}

.project-gallery h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.project-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-gallery .gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.project-gallery .gallery-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.project-gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navegación entre proyectos */
.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line-color);
    margin-top: 4rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-link.all {
    flex-direction: column;
    text-align: center;
}

.nav-link i {
    font-size: 1.2rem;
}

/* Hacer que los project-card sean clicables */
.projects-grid a.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.projects-grid a.project-card:hover {
    text-decoration: none;
}

/* Responsive para detalle de proyectos */
@media (max-width: 768px) {
    .project-detail {
        padding: 2rem 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .project-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .project-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .project-main-image {
        margin-bottom: 2rem;
        border-radius: var(--radius-sm);
    }
    
    .project-content {
        padding: 0 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .features-list li {
        font-size: 0.95rem;
    }
    
    .project-gallery h2 {
        font-size: 1.5rem;
    }
    
    .project-gallery .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .nav-link.prev,
    .nav-link.next {
        order: 2;
    }
    
    .nav-link.all {
        order: 1;
        width: 100%;
    }
}
