/* CSS Design System for CLAUMATIC */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
    /* Colors from DESIGN.md */
    --primary: #053b9f;
    --primary-container: #2d54b8;
    --on-primary: #ffffff;
    --secondary: #006e08; /* Deep Corporate Green */
    --secondary-container: #7afb6a;
    --on-secondary: #ffffff;
    --surface: #faf8ff;
    --surface-bright: #faf8ff;
    --surface-container: #eeedf6;
    --on-surface: #1a1b22;
    --on-surface-variant: #434653;
    --outline: #747684;
    --outline-variant: #c4c6d5;
    --background: #f8f9fc;
    
    /* Animation Tokens */
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Functional Accents */
    --urgent-bg: #fff1f1;
    --urgent-text: #ba1a1a;
    --whatsapp-green: #25D366;

    /* Spacing Scale - Compacted for efficiency */
    --space-xs: 4px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 60px;
    --container-max: 1280px;
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows - More sophisticated */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(5, 59, 159, 0.08), 0 4px 6px -2px rgba(5, 59, 159, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(5, 59, 159, 0.15);
    
    /* Dynamic Accents */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse { animation: pulse-soft 3s ease-in-out infinite; }

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Technical Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--outline-variant) 1px, transparent 1px),
        linear-gradient(90deg, var(--outline-variant) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.05;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--background) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Fixed Global Watermark - Optimized for subtlety */
html::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background-image: url('../assets/Branding/CM%20logo%20sin%20fondo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.025; /* Reduced for a more "watermark" feel */
    filter: blur(2px) grayscale(1);
    z-index: -10;
    pointer-events: none;
}

/* Specific overrides for Legal Pages */
body.legal-page::before,
body.legal-page::after {
    display: none !important; /* Force removal of technical grid and gradients */
}

/* Hide the global watermark on legal pages for better readability */
html.legal-page::before {
    display: none !important;
}

.legal-page {
    background-color: white !important;
}

.legal-page header {
    background: white;
    box-shadow: var(--shadow-sm);
    height: auto;
    min-height: 70px;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.legal-page .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.legal-page .logo img {
    height: 60px;
    width: auto;
}

.legal-page main {
    padding: 100px 20px 80px !important;
    max-width: 900px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--surface-container);
    padding-bottom: 10px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    color: var(--on-surface-variant);
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .legal-page header {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .legal-page .header-inner {
        flex-direction: row; /* Keep on one line if possible */
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .legal-page .logo img {
        height: 45px; /* Compact logo for mobile */
        max-width: 140px;
    }
    
    .legal-page .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .legal-page main {
        padding: 40px 15px 60px !important; /* Proper side padding */
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
        text-align: left;
        margin-bottom: 25px !important;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
        margin-top: 30px;
    }
    
    .legal-content p, .legal-content li {
        font-size: 0.95rem; /* Readable font size */
    }
}

/* Extra small screens check */
@media (max-width: 360px) {
    .legal-page .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-page .logo img {
        height: 40px;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--on-surface);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); }

.label-caps {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em; /* More premium spacing */
    color: var(--secondary); /* Switched to Green for presence */
    margin-bottom: var(--space-sm);
    display: block;
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.grid {
    display: grid;
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 59, 159, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(5, 59, 159, 0.05);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-accent {
    background-color: var(--secondary);
    color: white;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--outline-variant);
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    transform-origin: left center;
    transition: all 0.3s ease;
}

/* Desktop Nav */
#main-nav .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav .nav-links a {
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
}

#main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

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

.toggle-icon,
.has-submenu .submenu,
.mobile-menu-header,
.mobile-menu-footer {
    display: none;
}


/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Hero Section - High-End Impact */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-xl) 0;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95) contrast(1.15) saturate(1.05); /* Sharp, high-quality look */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 59, 159, 0.45) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 850px;
    color: #ffffff;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 10;
}

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

.hero h1 {
    font-size: clamp(3.2rem, 8vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0;
    opacity: 0; /* JS will set to 1 */
}

.char {
    display: inline-block !important;
    opacity: 0;
    transform: translateY(15px);
    white-space: pre; /* Ensure spaces or characters don't collapse */
}

.char-animated {
    animation: charFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    color: #e2e8f0;
    max-width: 700px;
    opacity: 0;
}

.hero-btns {
    opacity: 0;
}

.hero .label-caps {
    margin-bottom: -15px;
    letter-spacing: 2px;
    opacity: 0;
}

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

.fade-up-animated {
    animation: charFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInHeroUp 0.7s ease-out forwards;
}

.hero-btns {
    display: flex;
    gap: var(--space-md);
    margin-top: 15px;
    justify-content: center;
    opacity: 0;
    animation: fadeInHeroUp 0.7s ease-out 0.4s forwards;
}

.hero .btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 18px 42px; /* Larger, more premium padding */
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero .btn-primary:hover {
    transform: scale(1.05); /* Impactful hover scale */
    background-color: var(--primary-container);
    box-shadow: 0 15px 40px rgba(5, 59, 159, 0.4);
}

.hero .btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Services Section */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
}

.service-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline-variant);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(5, 59, 159, 0.12);
    transform: translateY(-12px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-img {
    height: 240px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--space-md);
    position: relative;
}

.service-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(5, 59, 159, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-img::after {
    opacity: 1;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
}

.service-card p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

/* Urgent Section */
.urgent-banner {
    background-color: var(--urgent-bg);
    border: 1px solid rgba(186, 26, 26, 0.1);
    padding: var(--space-lg) 0;
    text-align: center;
}

.urgent-content h2 {
    color: var(--urgent-text);
    margin-bottom: var(--space-sm);
}

.urgent-content p {
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* Why Choose Us */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: var(--space-lg);
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline-variant);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-container);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-base);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-5deg);
}



/* Stats Section Refined */
/* Stats Section - Refined Apple-Style Light Strip -> Premium Dark Block */
.stats {
    background: #1E2A40; /* Very soft elegant navy / blue-grey */
    position: relative;
    padding: 30px 0;
    margin: 80px 0; /* Tighter breathing space */
    border: none;
    overflow: hidden; /* Contain watermark */
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: scale(1.02);
}

/* Finer, more sophisticated separators */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08); /* Thinner, subtle white line */
}

.stat-icon {
    display: none; /* Removed for maximum minimalism */
}

.stat-number {
    font-size: clamp(2.8rem, 5vw, 3.5rem);
    font-weight: 700; /* Slightly thinner for elegance */
    line-height: 1;
    margin-bottom: 10px; /* Reduced vertical spacing */
    letter-spacing: -0.04em;
    color: #ffffff; /* White for high impact */
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em; /* Very airy labels */
    font-weight: 800;
    color: #cbd5e1; /* Soft white/grey */
    opacity: 0.8;
}

.stat-sublabel {
    display: none;
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 60px 0; }
    .stat-item:nth-child(2)::after { display: none; }
    .stats { background: rgba(5, 59, 159, 0.02); }
}

@media (max-width: 480px) {
    .stats { padding: 60px 0; margin: 60px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 60px; }
    .stat-item::after { display: none !important; }
}

/* FAQ Accordion Compact */
.faq-accordion {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
}

.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--outline-variant);
    border-radius: 0;
    margin-bottom: 0;
    transition: var(--transition-base);
}

.faq-header {
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--on-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 200px; /* Compact height */
}

.faq-content p {
    padding: 0 0 16px 0;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-bottom-color: var(--primary);
}

@media (max-width: 992px) {
    .faq-accordion {
        grid-template-columns: 1fr;
    }
}

/* Process Section */
.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    position: relative;
}

.process-step {
    position: relative;
    padding-top: var(--space-md);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.08;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1;
    z-index: -1;
}

.process-step h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

/* FAQ Section */
.faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.faq-item {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--outline-variant);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
/* Projects Carousel & Modal Redesign */
.projects {
    overflow: hidden;
    position: relative;
    padding: var(--space-xl) 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.project-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 4px;
    z-index: 2;
}

.project-card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.project-card-info p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
    opacity: 0.8;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    align-self: flex-start;
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    transition: var(--transition-base);
}

.carousel-button:hover {
    background: var(--primary);
    color: white;
}

.carousel-button--left { left: -22px; }
.carousel-button--right { right: -22px; }

.carousel-button.is-hidden { display: none; }

/* Carousel Dots */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--outline-variant);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-indicator.current-slide {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Modal Gallery */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10010;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-close i {
    width: 24px;
    height: 24px;
}

.modal-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-close {
        top: 16px;
        right: 16px;
    }
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.modal-nav {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.modal-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.modal-image-wrapper {
    flex-grow: 1;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-weight: 500;
}

.modal-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: var(--space-sm);
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .modal-nav {
        position: absolute;
        bottom: -70px;
    }
    .modal-nav.prev { left: 30%; }
    .modal-nav.next { right: 30%; }
    .modal-container { padding-bottom: 80px; }
}

/* About Section */
/* EMPRESA SECTION - PREMIUM DARK THEME */
.premium-dark {
    background-color: #061A3D !important; /* Deep corporate navy */
    color: #ffffff;
}

.premium-dark h2, .premium-dark h3 {
    color: #ffffff;
}

.premium-dark p {
    color: #cbd5e1; /* Light cool grey */
}

.premium-dark .label-caps {
    color: var(--secondary-container); /* Subtle pop for readability */
}

.premium-image-card {
    background: white;
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.premium-image-card img {
    border-radius: var(--radius-md);
    display: block;
    width: 100%;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary); /* Green Icons */
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

/* Footer */
footer {
    background: var(--on-surface);
    color: white;
    padding: var(--space-xl) 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-logo-cm {
    height: 80px; /* Large, prominent single brand mark */
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.footer-desc {
    color: var(--outline-variant);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: var(--space-md);
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--outline-variant);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--outline-variant);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-contact li i {
    color: var(--secondary);
    width: 16px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--outline-variant);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-bottom p {
    color: var(--outline-variant);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Nav */
.mobile-toggle {
    display: none;
}

@media (max-width: 992px) {
    .header-cta .btn-primary {
        display: none; /* Hide main CTA on mobile header */
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        cursor: pointer;
        color: var(--primary);
        width: 44px;
        height: 44px;
        margin-left: auto;
    }

    .header-inner {
        padding: 10px 20px;
    }
}

/* Scroll Reveal Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for no-js or loading */
.no-js .reveal-item {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Delay for children reveal */
.services-grid .reveal-item:nth-child(1) { transition-delay: 0.1s; }
.services-grid .reveal-item:nth-child(2) { transition-delay: 0.2s; }
.services-grid .reveal-item:nth-child(3) { transition-delay: 0.3s; }
.services-grid .reveal-item:nth-child(4) { transition-delay: 0.4s; }
.services-grid .reveal-item:nth-child(5) { transition-delay: 0.5s; }

/* Enhanced Typography Elevation */
.section-header h2 {
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(5, 59, 159, 0.3);
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--outline-variant);
    opacity: 0.5;
}

.section-header[style*="text-align: left"] h2::after,
.section-header[style*="text-align: left"] h2::before {
    left: 0;
    transform: none;
}

.about-content h2::after {
    left: 0;
    transform: none;
}

/* Section Watermark Branding */
.section-watermark {
    position: relative;
    overflow: hidden;
}

.section-watermark {
    position: relative;
    overflow: hidden;
}

.watermark-img {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 650px;
    height: auto;
    filter: grayscale(1) brightness(1.2) contrast(0.8);
    opacity: 0.12; /* Clearly visible 12% */
    pointer-events: none;
    z-index: 0;
}

.about-inner {
    position: relative;
    z-index: 1; /* Content above watermark */
}

/* Specific Watermark Placements */
.watermark-left::before {
    right: auto;
    left: -8%;
}

.watermark-low::before {
    top: auto;
    bottom: -10%;
    transform: none;
}

@media (max-width: 992px) {
    .section-watermark::before {
        width: 300px;
        height: 300px;
        right: -10%;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px 0;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.cookie-text {
    font-size: 14px;
    color: var(--on-surface-variant);
    max-width: 700px;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-config {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--on-surface);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--outline-variant);
}

.cookie-pref-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
    color: var(--on-surface);
}

.cookie-pref-info p {
    font-size: 13px;
    color: var(--on-surface-variant);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}


@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Menu Side Drawer */
@media (max-width: 992px) {
    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #1E2A40; /* Solid Premium Dark Navy */
        color: white;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    #main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Backdrop overlay when menu is open */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding: 20px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-logo {
        height: 80px !important; /* Prominent size */
        width: auto;
        display: block !important;
        filter: none !important; /* Remove destructive filter */
        margin-right: auto;
        object-fit: contain;
    }

    .mobile-close {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        transition: all 0.3s ease;
    }

    .mobile-close:hover {
        background: white;
        color: #1E2A40;
    }

    #main-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding: 0 30px;
        margin-top: 20px;
    }

    #main-nav .nav-links > li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #main-nav .nav-links a {
        display: block;
        padding: 18px 0;
        font-size: 1.3rem; /* More discreet size */
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.85);
        transition: all 0.3s ease;
    }

    #main-nav .nav-links a:hover {
        color: white;
        padding-left: 10px;
    }

    .submenu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .toggle-icon {
        color: var(--secondary);
        font-size: 1.2rem;
    }

    .has-submenu .submenu {
        display: none;
        flex-direction: column;
        gap: 5px;
        padding: 10px 0 20px 15px;
    }

    .has-submenu.open .submenu {
        display: flex;
    }

    .has-submenu .submenu a {
        font-size: 1rem !important;
        font-weight: 500 !important;
        opacity: 0.7;
        padding: 10px 0 !important;
    }

    .mobile-menu-footer {
        width: 100%;
        padding: 40px 30px;
        background: rgba(255, 255, 255, 0.03);
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-footer .btn-primary {
        background: white;
        color: #1E2A40;
        font-weight: 800;
        padding: 15px;
        border-radius: 8px;
        font-size: 0.95rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
    }

    .social-links a {
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.3rem;
        transition: color 0.3s;
    }

    .social-links a:hover {
        color: white;
    }
}
