:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --accent: #000000;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Canvas */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-color: #ffffff;
}

/* Typography elements */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--text-main);
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 5%;
}

.nav-brand {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-brand span {
    font-weight: 300;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 101;
}

/* Main Sections Layout */
section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* Hero Section - Minimalist Elegant */
/* --- TYPOGRAPHIC MINIMALIST HERO (No Image) --- */
.hero-typo {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-typo-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typo-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    margin-bottom: 3rem;
    animation: slowPulse 4s infinite alternate;
}

.typo-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    letter-spacing: -4px;
    color: var(--text-main);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typo-light {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: -2px;
}

.typo-bold {
    font-family: var(--font-sans);
    font-weight: 900;
    text-transform: uppercase;
    padding: 0.1em 0; /* Prevents clipping */
}

.typo-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 0;
}

.typo-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.typo-cta {
    display: flex;
    justify-content: center;
}

.btn-typo-primary {
    display: inline-block;
    padding: 1.25rem 3.5rem;
    background-color: var(--text-main);
    color: var(--bg-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-typo-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background-color: #222;
}

@keyframes slowPulse {
    0% { border-color: rgba(0,0,0,0.1); color: var(--text-muted); }
    100% { border-color: rgba(0,0,0,0.4); color: var(--text-main); }
}

/* Services */
.service-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

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

/* Equipment */
.grid-equipos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.equipo-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.equipo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.equipo-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--text-main);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipo-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.1));
}

.equipo-card:hover .equipo-img {
    transform: scale(1.08) translateY(-5px);
}

.equipo-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.equipo-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sensor-specs {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sensor-specs li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.sensor-specs strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}

/* Pricing */
.pricing {
    align-items: center;
}

.pricing-table {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.price-row {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.price-row.header {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.p-col {
    flex: 1;
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
    text-align: center;
    max-width: 800px;
}

/* Footer */
.footer {
    padding: 4rem 5% 2rem;
    background: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-brand {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-brand span {
    font-weight: 300;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .service-card, .service-card.reverse {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }

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

    .footer-col {
        min-width: 100% !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    section {
        padding: 4rem 5%;
    }

    .hero-typo {
        padding: 6rem 5% 3rem;
    }

    .typo-title {
        font-size: clamp(1.8rem, 9vw, 3.5rem);
        letter-spacing: -1px;
    }

    .typo-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .typo-badge {
        margin-bottom: 1.5rem;
    }

    #dedicatedThreeView {
        height: 350px !important;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .service-info h3 {
        font-size: 1.8rem;
    }
    .price-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .price-row.header {
        display: none;
    }
    .price-row .p-col:first-child::before {
        content: 'Servicio: ';
        font-weight: bold;
    }
}

/* Animations Trigger Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

/* 3D Model Viewer Styles */
.viewer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.viewer-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(0,0,0,0.05);
}

.tab-btn.active {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}


/* Photogrammetry Carousel */
.photogrammetry-info {
    overflow: hidden;
    padding-bottom: 8rem;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 4rem 0;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.carousel-card {
    flex: 0 0 calc(33.333% - 2rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s ease;
    user-select: none;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    scroll-snap-align: center;
}

.carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-sans);
    color: rgba(0,0,0,0.03);
    line-height: 0.8;
}

.carousel-card h3 {
    font-size: 1.6rem;
    margin: 0;
}

.carousel-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}


.card-icon {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-sans);
    color: rgba(0,0,0,0.05);
    line-height: 1;
}

.carousel-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.carousel-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: #333;
}

.carousel-btn:active {
    transform: scale(0.95);
}

@media (max-width: 1024px) {
    .carousel-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 1rem;
    }
    .carousel-track {
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .carousel-card {
        flex: 0 0 calc(90% - 1rem); /* Most of the screen width */
    }
    .photogrammetry-info {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .carousel-nav {
         display: none; /* Hide buttons on mobile, use swipe */
    }
}

/* 3D Model Play Overlay */
.model-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(250,250,250,0.9), rgba(240,240,240,0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.play-btn {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.play-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.play-btn:active {
    transform: translateY(0) scale(0.98);
}

.play-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.overlay-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 80%;
    text-align: center;
}
