:root {
    /* Fondos - Minimalista Puro */
    --bg-primary: rgba(250, 250, 250, 0.85);
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #f0f0f0;

    /* Acento Primario: #1a1a1a (Negro Arquitectónico) */
    --primary-50: #f5f5f5;
    --primary-100: #e5e5e5;
    --primary-200: #d4d4d4;
    --primary-300: #a3a3a3;
    --primary-400: #737373;
    --primary-500: #404040;
    --primary-600: #262626;
    --primary-700: #171717;
    --primary-800: #0a0a0a;
    --primary-900: #000000;
    --primary-rgb: 26, 26, 26;

    /* Acento Secundario: #C9A227 (Oro Arquitectónico) */
    --accent-500: #C9A227;
    --accent-rgb: 201, 162, 39;

    /* Textos */
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-quaternary: #a3a3a3;

    /* Elementos Estructurales */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.08);
    --icon-invert: 0;

    /* Espaciado */
    --section-padding: 140px;
    --container-max: 1400px;

    /* Fuentes */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.dark-theme {
    /* Overrides - Minimalista Oscuro */
    --bg-primary: #080808;
    --bg-secondary: #0c0c0c;
    --bg-tertiary: #141414;

    /* Textos Oscuro */
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --text-quaternary: #525252;

    /* Elementos Estructurales */
    --glass-bg: rgba(12, 12, 12, 0.9);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);
    --icon-invert: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Headings */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    transition: color 0.4s ease;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Contenedores */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 45vw;
    height: 80%;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 32px 0 48px;
    max-width: 100%;
    font-weight: 400;
    line-height: 1.8;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Minimalist Hero Visual - Architectural Grid */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.architectural-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.architectural-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--text-tertiary);
    opacity: 0.2;
    margin: 20px;
    pointer-events: none;
}

.architectural-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 1px solid var(--text-primary);
    opacity: 0.15;
    pointer-events: none;
}

.hero-image-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: grayscale(20%) contrast(1.05);
}

body.dark-theme .hero-image-3d {
    mix-blend-mode: screen;
    opacity: 0.9;
    filter: grayscale(10%) contrast(1.1);
}

/* Grid lines overlay */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
}

/* Floating architectural element */
.arch-element {
    position: absolute;
    width: 120px;
    height: 160px;
    border: 1px solid var(--text-tertiary);
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.arch-element-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.arch-element-2 {
    bottom: 20%;
    right: 5%;
    width: 80px;
    height: 100px;
    animation-delay: -3s;
}

/* ------------------- COMPONENTS ------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--text-tertiary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 500;
    padding: 18px 36px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.7rem;
}

.btn-large {
    padding: 22px 56px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-tertiary);
    font-weight: 500;
    padding: 18px 36px;
    border-radius: 2px;
    transition: all 0.4s ease;
    display: inline-flex;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Reducción de glows excesivos para minimalismo */
.glow-primary {
    box-shadow: var(--shadow-elevated);
}

.glow-text {
    color: var(--text-primary);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* Botón Toggle de Tema */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-soft);
}

.theme-toggle .icon-light {
    display: none;
}

.theme-toggle .icon-dark {
    display: block;
}

body.dark-theme .theme-toggle .icon-light {
    display: block;
}

body.dark-theme .theme-toggle .icon-dark {
    display: none;
}


/* ------------------- ANIMATIONS ------------------- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fade-in-up-delay {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

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

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-10deg) translateY(20px);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0) translateY(0);
    }
}

@keyframes line-expand {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(0.5deg);
    }
}

@keyframes float-particle {

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

    10% {
        opacity: 0.3;
    }

    50% {
        transform: translate(30px, -60px);
        opacity: 0.2;
    }

    90% {
        opacity: 0.1;
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Scroll-triggered animation classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-line {
    position: relative;
    overflow: hidden;
}

.reveal-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-line.active::after {
    transform: scaleX(1);
}

.fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
    opacity: 0;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.fade-in-rotate {
    opacity: 0;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ------------------- LAYOUT SECTIONS ------------------- */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 28px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 20px 0;
}

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

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: invert(var(--icon-invert));
    transition: filter 0.4s;
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Full-Bleed Slider */
.hero-slider {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Slight zoom out effect during slide lifespan */
}

.slide-active {
    opacity: 1;
    z-index: 10;
    transform: scale(1);
    /* Returns to normal scale slowly */
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    /* Accounts for navbar */
}

/* Minimalist Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.slider-progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.slider-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    width: 0%;
    /* Width will be animated by JS */
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot-active {
    background: #fff;
}

/* Social Proof */
.social-proof {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 48px;
}

.metric-item {
    position: relative;
}

.metric-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--glass-border);
}

.metric-item:first-child::before {
    display: none;
}

.metric-number {
    font-size: 3rem;
    font-weight: 300;
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.metric-label {
    color: var(--text-tertiary);
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

/* Services */

.services {
    padding: 60px 0; /* Antes era 100px. Cámbialo a 60px o 50px según prefieras */
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 80px;
    font-size: 1rem;
    max-width: 800px; /* Ya lo tienes en 800px */
    font-weight: 400;
    margin-left: auto;  /* AÑADE ESTO */
    margin-right: auto; /* AÑADE ESTO */
    text-align: center; /* Asegúrate de que esto esté para que el texto interno se centre */
}

/* Services - Alternative row layout */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding-top: 40px;
}

.service-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 120px;
    /* Mas espacio */
    padding: 100px 0;
    /* Espacio vertical para cada servicio */
    border-bottom: 1px solid var(--glass-border);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:nth-child(even) {
    background-color: var(--bg-tertiary);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 10px);
    padding-right: calc(50vw - 50% + 10px);
}

.service-row.row-reverse {
    flex-direction: row-reverse;
}

.service-row-visual {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Redefine to have border, but no padding/content wrapper for the row image part */
.service-row-visual .service-zoom-card {
    border-radius: 2px;
}

.service-row-visual .zoom-image-container {
    aspect-ratio: 16/10;
}

.service-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    /* Mayor espacio lateral para minimalismo */
}

.service-number {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    /* Un poco más pequeño y elegante */
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

@media (max-width: 992px) {

    .service-row,
    .service-row.row-reverse {
        flex-direction: column;
        gap: 40px;
    }

    .service-row-content {
        padding: 0 10px;
    }
}

.service-zoom-card {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-zoom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.zoom-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zoom-out on scroll pattern: Initial zoomed-in state */
    transform: scale(1.2);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.service-zoom-card.active .zoom-image {
    transform: scale(1);
    /* Intersection observer sets .active on the card */
}

/* Retain subtle interactive scale on hover, relative to the default */
.service-zoom-card.active:hover .zoom-image {
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.zoom-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.feature-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

/* About */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

.about-visual {
    height: 600px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    border-radius: 2px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-elevated);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.icon-3d {
    transition: transform 0.6s ease;
}

.icon-3d:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.about-badges {
    margin-top: 40px;
    display: flex;
    gap: 16px;
}

.glass-badge {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

/* Testimonials / Horizontal Auto-Scroll Carousel */
.testimonials-scroll {
    padding: var(--section-padding) 0;
    background: var(--bg-tertiary);
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.testimonials-scroll .container {
    max-width: var(--container-max);
}

.testimonials-scroll .section-title {
    text-align: center;
    margin-bottom: 16px;
}

.testimonials-scroll .section-subtitle {
    text-align: center;
    margin-bottom: 80px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: carousel-scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    width: 380px;
    flex-shrink: 0;
    background-color: var(--bg-primary);
    border-radius: 2px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.testimonial-card .quote {
    font-style: normal;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 400;
}

.testimonial-card .client-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.testimonial-card .client-role {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

/* CTA */
.cta-final {
    padding: 180px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.cta-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--bg-tertiary) 0%, transparent 50%);
    border-radius: 50%;
    z-index: 0;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 56px;
    font-weight: 400;
    line-height: 1.8;
}

.urgency-text {
    margin-top: 32px;
    color: var(--text-quaternary);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 100px 0 40px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 28px;
    filter: invert(var(--icon-invert));
    transition: filter 0.4s;
}

.footer-brand p {
    color: var(--text-tertiary);
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 28px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 14px;
    transition: color 0.3s;
    font-size: 0.9rem;
    font-weight: 400;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: var(--text-quaternary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Particles */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-300);
    border-radius: 50%;
    opacity: 0;
    filter: blur(2px);
    animation: float-particle infinite ease-in-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 24px auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .architectural-frame {
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.location-section {
padding: 100px 0 140px 0 !important;
background-color: var(--bg-primary);
margin-bottom: 0 !important;
position: relative;
width: 100%;
display: block;
}

.location-container {
display: flex;
gap: 40px;
align-items: stretch;
flex-wrap: wrap;
margin-top: 40px;
}

.contact-card {
background: var(--bg-secondary);
padding: 40px;
border-radius: 20px;
border: 1px solid var(--primary-100);
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item {
display: flex;
gap: 20px;
margin-bottom: 30px;
align-items: center;
}

.contact-item i {
color: #FF6600 !important;
font-size: 1.8rem;
min-width: 35px;
display: inline-block;
}

.contact-item h4 {
color: var(--text-primary);
margin: 0;
font-size: 1.1rem;
}

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

@media (max-width: 768px) {
    :root {
        --section-padding: 100px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-content {
        padding: 0;
    }

    .hero-visual {
        display: none;
    }

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

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

    .metrics-grid .metric-item::before {
        display: none;
    }

    .about-grid {
        gap: 60px;
    }

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

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

    .particle:nth-child(n+10) {
        display: none;
    }

    .testimonial-card {
        width: 320px;
    }

    .carousel-track {
        animation-duration: 50s;
    }

    .service-card-flip {
        height: 400px;
    }
}

.contact-item i,
.location-info i,
[class*="fa-"] {
color: #ff6600bb !important;
-webkit-text-fill-color: #ff6600bb !important;
}

.location-info a:hover {
color: #FF6600 !important;
text-decoration: underline !important;
transition: 0.3s;
}
.slide-subtitulo {
color: #ffffff;
}

section, .services, .about, .testimonials-scroll, .social-proof {
background-color: transparent !important;
}

body::before {
content: "";
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background-image: url('images/logo1.png');
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: 50%;
opacity: 0.05; /* Casi invisible para que sea elegante */
z-index: -1;

/* --- ESTILO FINAL DEL PRELOADER (Copia desde aquí) --- */
