@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- 1. DESIGN SYSTEM & ROOT VARIABLES --- */
:root {
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --electric-blue: #0052ff;
    --electric-glow: rgba(0, 82, 255, 0.4);
    --neon-cyan: #00d2ff;
    --cyan-glow: rgba(0, 210, 255, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --header-height: 80px;
}

/* Theme adaptation based on html[data-theme] */
html, html[data-theme="dark"] {
    --bg-primary: #030814;
    --bg-secondary: #071024;
    --bg-card: #0a1631;
    --bg-card-alt: #112240;
    --border-color: rgba(0, 82, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-contrast: #0f172a;
    
    --logo-text-color: #ffffff;
    --logo-subtext-color: #94a3b8;
    
    --header-scrolled-bg: rgba(3, 8, 20, 0.9);
    --header-border: rgba(255, 255, 255, 0.08);
    --header-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --dropdown-bg: rgba(10, 22, 49, 0.85);
    
    --map-fill: #142850;
    --map-stroke: #071024;
    --map-active: #1a3c7a;
    --map-hover: #2251a3;
    
    --accordion-bg: #071024;
    --accordion-active-bg: #0a1631;
    
    --form-bg: rgba(10, 22, 49, 0.4);
    --input-bg: rgba(3, 8, 20, 0.6);
}

html[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-alt: #e2e8f0;
    --border-color: rgba(148, 163, 184, 0.2);
    
    --text-primary: #0f172a;
    --text-muted: #334155; /* Darker slate for better readability contrast in light mode */
    --text-contrast: #ffffff;
    
    --logo-text-color: #2a3890; /* Royal blue from actual logo */
    --logo-subtext-color: #0f172a;
    
    --header-scrolled-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(15, 23, 42, 0.08);
    --header-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --dropdown-bg: rgba(255, 255, 255, 0.9);
    
    --map-fill: #cbd5e1;
    --map-stroke: #f8fafc;
    --map-active: #94a3b8;
    --map-hover: #64748b;
    
    --accordion-bg: #f1f5f9;
    --accordion-active-bg: #ffffff;
    
    --form-bg: rgba(255, 255, 255, 0.85);
    --input-bg: #ffffff;
}

/* --- 2. BASE STYLES & RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--electric-blue);
    border: 2px solid var(--bg-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* --- 3. REUSABLE UTILITIES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 7rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    background: rgba(0, 82, 255, 0.1);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 82, 255, 0.2);
}

.badge-dark {
    background: rgba(0, 210, 255, 0.08);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 210, 255, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.btn-primary {
    background-color: var(--electric-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--electric-glow);
}

.btn-primary:hover {
    background-color: #0044d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.6);
}

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

.btn-secondary-dark:hover {
    background-color: rgba(0, 82, 255, 0.05);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    transform: translateY(-2px);
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- 4. NAVIGATION BAR --- */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.header.scrolled {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    height: 72px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px; /* Perfect scale for header height */
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

html[data-theme="dark"] .logo-img {
    /* Subtle halo to keep dark blue/black letters perfectly legible on dark theme */
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.75));
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem; /* Spacious premium layout since we have fewer top-level items */
}

.nav-link {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
    opacity: 0.8;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue), var(--neon-cyan));
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav-link:hover {
    color: var(--electric-blue) !important;
    opacity: 1;
}

.nav-link:hover::after {
    width: 80%;
    box-shadow: 0 0 8px var(--electric-glow);
}

.nav-link.active {
    color: var(--electric-blue) !important;
    opacity: 1;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
    box-shadow: 0 0 10px var(--electric-glow);
}

/* --- DROPDOWN NAVIGATION MENU SYSTEM --- */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem 0;
    min-width: 210px;
    box-shadow: var(--header-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
    opacity: 0.85;
    white-space: nowrap;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(0, 82, 255, 0.08);
    color: var(--electric-blue);
    opacity: 1;
    padding-left: 1.5rem; /* Premium text sliding transition */
}

html[data-theme="dark"] .dropdown-item:hover {
    color: var(--neon-cyan);
    background: rgba(0, 210, 255, 0.08);
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.4rem;
    transition: transform var(--transition-smooth);
    opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-header-action {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem !important; /* Smaller paddings suited for header height */
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    white-space: nowrap;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-header-action:hover {
    background-color: rgba(0, 82, 255, 0.08);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* Control Group (Theme & Language Switchers) styled as a unified premium capsule */
.controls-group {
    display: flex;
    align-items: center;
    background: rgba(0, 82, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 3px;
    transition: var(--transition-smooth);
}

.controls-group:hover {
    border-color: rgba(0, 82, 255, 0.3);
    background: rgba(0, 82, 255, 0.08);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.75rem;
    outline: none;
}

.control-btn:hover {
    color: var(--electric-blue);
    background: rgba(0, 82, 255, 0.1);
}

html[data-theme="dark"] .control-btn:hover {
    color: var(--neon-cyan);
    background: rgba(0, 210, 255, 0.15);
}

.control-btn i {
    font-size: 1rem;
    pointer-events: none;
}

.lang-btn {
    width: auto;
    padding: 0 0.5rem;
    border-radius: 50px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 20px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: var(--transition-fast);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }


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

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 82, 255, 0.12) 0%, rgba(3, 8, 20, 0) 60%),
                linear-gradient(180deg, rgba(3, 8, 20, 0.05) 0%, var(--bg-primary) 100%);
    z-index: 2;
    pointer-events: none;
}

html[data-theme="dark"] .hero::after {
    background: radial-gradient(circle at 70% 30%, rgba(0, 82, 255, 0.18) 0%, rgba(3, 8, 20, 0) 60%),
                linear-gradient(180deg, rgba(3, 8, 20, 0.5) 0%, var(--bg-primary) 100%);
}

.hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    opacity: 0.85; /* Solves low-contrast issues in light mode while looking sleek in dark mode */
    max-width: 720px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Indicators in Hero */
.hero-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.indicator-item {
    display: flex;
    flex-direction: column;
}

.indicator-number {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--neon-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--electric-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .indicator-number {
    /* Deep blue to indigo gradient for light mode contrast, avoiding invisible cyan */
    background: linear-gradient(135deg, var(--electric-blue) 0%, #0022b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.indicator-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* --- 6. WHO WE ARE (QUIÉNES SOMOS) --- */
.about {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--electric-blue);
}

/* Accordion style details (Mission, Vision, Values) */
.about-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--accordion-bg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item.active {
    border-color: var(--electric-blue);
    background-color: var(--accordion-active-bg);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.04);
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--electric-blue);
    transition: var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.value-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.value-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--electric-blue);
}

/* About visual frame */
.about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-backdrop {
    position: absolute;
    width: 95%;
    height: 95%;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.05) 0%, rgba(0, 210, 255, 0.05) 100%);
    border-radius: 24px;
    z-index: 1;
    transform: rotate(-3deg);
}

.visual-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    background-color: var(--bg-secondary);
}

.visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Floating operational card overlay */
.floating-badge {
    position: absolute;
    bottom: 2rem;
    left: -1rem;
    background: var(--form-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    animation: floatAnim 6s ease-in-out infinite;
}

.floating-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.floating-badge-text h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.floating-badge-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* --- 7. SERVICES SECTION --- */
.services {
    background-color: var(--bg-primary);
}

/* Tabs System Layout */
.services-tabs-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.services-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-right: 1px solid var(--border-color);
    padding-right: 2.5rem;
}

.service-tab-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.service-tab-btn i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.service-tab-btn:hover {
    color: var(--electric-blue);
    background-color: rgba(0, 82, 255, 0.03);
}

.service-tab-btn.active {
    color: #ffffff;
    background-color: var(--electric-blue);
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.2);
}

.service-tab-btn.active i {
    color: #ffffff;
}

/* Tab Panel Content */
.services-panels {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-panel {
    display: none;
    animation: tabFadeIn 0.5s ease forwards;
}

.service-panel.active {
    display: block;
}

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

.panel-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.panel-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.panel-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.panel-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--electric-blue);
    font-size: 1.1rem;
}

.panel-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background-color: var(--bg-primary);
}

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


/* --- 8. CAPABILITIES MAP (CAPACIDADES OPERATIVAS) --- */
.capabilities {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.capabilities::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.05) 0%, rgba(3, 8, 20, 0) 70%);
    top: 10%;
    right: 5%;
    pointer-events: none;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

/* Dynamic Base Visual Card */
.base-visual-card {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.08);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.base-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth), opacity 0.2s ease;
}

.base-visual-card:hover img {
    transform: scale(1.04);
}

.map-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

/* Peru SVG Map Styles */
#peru-map {
    width: 100%;
    height: 100%;
    max-height: 580px;
}

.map-region {
    fill: var(--map-fill);
    stroke: var(--map-stroke);
    stroke-width: 1.5;
    transition: var(--transition-fast);
}

.map-region.active-region {
    fill: var(--map-active);
    stroke: var(--electric-blue);
}

.map-region:hover {
    fill: var(--map-hover);
}

/* Glowing Pins */
.map-pin {
    cursor: pointer;
    position: relative;
}

.map-pin circle.core {
    fill: var(--neon-cyan);
    transition: var(--transition-fast);
}

.map-pin:hover circle.core {
    fill: #ffffff;
    r: 8px;
}

.map-pin circle.pulse {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2px;
    opacity: 0;
    transform-origin: center;
    animation: pinPulse 2s infinite;
}

.map-pin circle.pulse-delayed {
    animation-delay: 1s;
}

@keyframes pinPulse {
    0% { r: 5px; opacity: 0.8; stroke-width: 2px; }
    50% { opacity: 0.4; }
    100% { r: 25px; opacity: 0; stroke-dasharray: none; }
}

/* Map Tooltip styling */
.map-tooltip {
    position: absolute;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
    min-width: 200px;
}

.map-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.tooltip-row span:nth-child(2) {
    font-weight: 600;
    color: var(--text-primary);
}

/* Operational details list */
.bases-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.base-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.base-item:hover {
    background: rgba(0, 82, 255, 0.06);
    border-color: var(--electric-blue);
    transform: translateY(-2px);
}

.base-item.active-item {
    background: rgba(0, 210, 255, 0.06);
    border-color: var(--neon-cyan);
}

.base-name {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.base-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.base-item:hover .base-dot, .base-item.active-item .base-dot {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.base-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* --- 9. DIFFERENTIATORS (DIFERENCIADORES) --- */
.diffs {
    background-color: var(--bg-primary);
}

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

.diff-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.diff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--electric-blue) 0%, var(--neon-cyan) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.diff-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 82, 255, 0.08);
}

.diff-card:hover::before {
    opacity: 1;
}

.diff-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(0, 82, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.diff-card:hover .diff-icon {
    background: var(--electric-blue);
    color: #ffffff;
    box-shadow: 0 5px 15px var(--electric-glow);
}

.diff-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* --- 9.5. TECHNOLOGICAL RESOURCES (RECURSOS TECNOLÓGICOS) --- */
.tech-resources {
    background-color: var(--bg-secondary);
}

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

.tech-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue) 0%, var(--neon-cyan) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 82, 255, 0.08);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(0, 82, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.tech-card:hover .tech-icon {
    background: var(--electric-blue);
    color: #ffffff;
    box-shadow: 0 5px 15px var(--electric-glow);
}

.tech-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--font-head);
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tech-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--neon-cyan);
    transition: var(--transition-fast);
    align-self: flex-start;
}

.tech-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.tech-btn:hover {
    color: var(--text-primary);
}

.tech-btn:hover i {
    transform: translateX(4px);
}


/* --- 10. IMPLEMENTATION TIMELINE (PROCESO) --- */
.timeline {
    background-color: var(--bg-secondary);
}

.timeline-outer {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline central line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--electric-blue), var(--neon-cyan));
    transform: translateX(-50%);
    transition: height 0.1s linear;
}

/* Timeline blocks */
.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2.25rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
    opacity: 0;
    transform: translateY(20px);
}

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

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

/* Adjust timeline details for alignment */
.timeline-item:nth-child(odd) {
    direction: ltr;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 2.25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 4px solid var(--border-color);
    transform: translateX(-50%);
    z-index: 5;
    transition: var(--transition-smooth);
}

.timeline-item.active-node .timeline-node {
    background-color: var(--bg-secondary);
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-glow);
    transform: translateX(-50%) scale(1.2);
}

.timeline-step {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.5rem;
    color: rgba(0, 82, 255, 0.1);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-step {
    color: rgba(0, 82, 255, 0.25);
}

.timeline-content h3 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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


/* --- 11. MASONRY GALLERY --- */
.gallery {
    background-color: var(--bg-primary);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-filter-btn:hover {
    color: var(--electric-blue);
    border-color: var(--electric-blue);
}

.gallery-filter-btn.active {
    background-color: var(--electric-blue);
    color: #ffffff;
    border-color: var(--electric-blue);
    box-shadow: 0 4px 12px var(--electric-glow);
}

/* Uniform Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 8, 20, 0) 40%, rgba(3, 8, 20, 0.85) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

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

.gallery-category {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.gallery-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}


/* --- 12. CLIENTS (SOCIOS) --- */
.clients {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0;
}

.clients-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clients-header {
    margin-bottom: 3rem;
}

.clients-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.clients-header p {
    color: var(--text-muted);
}

.client-logo-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 3rem 6rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.client-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(239, 68, 68, 0.3); /* Claro red touch on hover */
}

/* Claro Brand Logo Style */
.claro-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.client-label {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem;
    max-width: 500px;
    line-height: 1.4;
}


/* --- 13. CERTIFICATIONS (CERTIFICACIONES) --- */
.certs {
    background-color: var(--bg-primary);
}

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

.cert-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--electric-blue);
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.05);
}

.cert-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 82, 255, 0.05);
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.cert-card:hover .cert-badge {
    background: var(--electric-blue);
    color: #ffffff;
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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


/* --- 14. CTA FINAL --- */
.cta-final {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.cta-final::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.06) 0%, rgba(3, 8, 20, 0) 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
}

.cta-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* --- 15. CONTACT & FOOTER (CONTACTO Y PIE DE PÁGINA) --- */
.contact-footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.contact-section {
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.contact-text p, .contact-text a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-text a:hover {
    color: var(--neon-cyan);
}

/* Contact Form styling */
.contact-form-container {
    background: var(--form-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer Bottom styles */
.footer-main {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--electric-blue);
    color: #ffffff;
    border-color: var(--electric-blue);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--electric-blue);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

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


/* --- 16. RESPONSIVE DESIGN --- */

@media (max-width: 1150px) {
    .header {
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 4rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .btn-header-action {
        display: none; /* Hide proposal button on mobile, keep theme/lang switchers visible */
    }
    
    /* Mobile Flat Dropdowns */
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        font-size: 0.72rem !important;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-muted) !important;
        pointer-events: none;
        display: block;
        margin-bottom: 0.25rem;
        opacity: 0.65;
        justify-content: center;
    }
    
    .dropdown-toggle::after {
        display: none !important; /* Avoid underline indicators under headers */
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        margin-top: 0.25rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .dropdown-item {
        font-size: 0.95rem;
        padding: 0.4rem 0;
        opacity: 0.9;
        text-align: center;
    }

    .dropdown-item:hover {
        background: transparent;
        padding-left: 0;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        height: auto;
        order: -1;
    }
    
    .services-tabs-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1.5rem;
    }
    
    .services-nav {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1.5rem;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
    }
    
    .service-tab-btn {
        padding: 0.75rem 1.25rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-container {
        height: 500px;
    }
    
    .diffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4.5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    /* Header & Navigation properties handled by max-width: 1150px query */
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-top: 2rem;
    }
    
    .indicator-number {
        font-size: 2.75rem;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .panel-visual {
        height: 250px;
        order: -1;
    }
    
    .diffs-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 1.5rem;
    }
    
    .timeline-progress {
        left: 1.5rem;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 1;
        text-align: left;
        padding: 1.5rem;
    }
    
    .timeline-node {
        left: 1.5rem;
    }
    
    .timeline-step {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .client-logo-box {
        padding: 2.5rem 3rem;
    }
    
    .claro-logo {
        height: 55px;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   POLICIES & LEGAL PAGES
   ========================================================================== */
.policy-page {
    padding-top: 120px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 80vh;
}

.policy-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.policy-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.policy-header h1 {
    font-family: var(--font-head);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.policy-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.policy-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.policy-content h2 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content ul, .policy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

