:root {
    /* Midnight Blue - Professional Dark Palette */
    --color-bg-primary: #0B1120;
    /* Deep midnight blue-black */
    --color-bg-secondary: rgba(30, 41, 59, 0.6);
    /* Slate 800 translúcido */
    --color-bg-elevated: rgba(51, 65, 85, 0.4);
    /* Slate 700 translúcido */

    /* Gradients */
    --gradient-bg: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.08), transparent 50%);

    /* Text Colors */
    --color-text-primary: #F8FAFC;
    /* Slate 50 - Almost white */
    --color-text-secondary: #CBD5E1;
    /* Slate 300 */
    --color-text-muted: #94A3B8;
    /* Slate 400 */

    /* Blue Accents */
    --color-accent-primary: #3B82F6;
    /* Blue 500 */
    --color-accent-bright: #60A5FA;
    /* Blue 400 */
    --color-accent-subtle: rgba(59, 130, 246, 0.15);

    /* Borders */
    --color-border: rgba(148, 163, 184, 0.2);
    --color-border-bright: rgba(59, 130, 246, 0.5);

    /* Typography */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1280px;
    --header-height: 150px;

    /* Shadows for Dark Theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Glass effect for dark */
    --glass-dark: rgba(30, 41, 59, 0.7);
    --backdrop-blur: blur(12px);

    /* Animation */
    --ease-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-primary);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.1;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Global Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Premium Button */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    background: var(--color-accent-primary);
    border: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transition: transform 0.2s var(--ease-out-smooth), box-shadow 0.2s var(--ease-out-smooth);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s var(--ease-out-smooth);
}

.btn:hover {
    color: white;
    box-shadow: var(--shadow-neon);
}

.btn:hover::before {
    width: 100%;
}

/* Dark Glass Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-dark);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 700;
}

.logo-img {
    height: 140px;
    width: 140px;
    object-fit: contain;
    background: radial-gradient(circle, white 60%, transparent 0%);
    border-radius: 50%;
    padding: 0;

    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-weight: 600;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

nav a:hover,
nav a.active {
    color: var(--color-accent-primary);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Lang Dropdown */
.lang-dropdown {
    position: relative;
    margin-left: 2rem;
    z-index: 1000;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-subtle);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--color-text-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-primary);
}

.btn-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.5rem;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-dropdown-btn i {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-dropdown-btn i {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 180px;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-primary);
}

.lang-option .fi,
.current-lang .fi {
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive for lang dropdown */
@media (max-width: 768px) {
    .lang-dropdown {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-options {
        right: auto;
        left: 0;
    }
}

/* Dark Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background: transparent;
    /* Removido fondo azul */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Removido gradiente que tapaba el fondo */
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

/* Marca de Agua Gigante Fija */
body::before {
    content: '';
    position: fixed;
    bottom: -50px;
    right: -50px;
    width: 600px;
    height: 600px;
    background-image: url('/assets/logo/logo_mag_2026_bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    /* Detrás de todo el contenido */
    mix-blend-mode: screen;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.hero h1 {
    font-size: 1.25rem;
    color: var(--color-accent-primary);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 4.5rem;
    line-height: 1.05;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-subtitle span {
    display: block;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-line {
    width: 60px;
    height: 6px;
    background: var(--color-accent-primary);
    margin-bottom: 2rem;
    border-radius: 3px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.8;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1500px;
}

.tech-frame {
    position: relative;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(12px);
    transition: transform 0.6s var(--ease-out-smooth);
    cursor: pointer;
}

.tech-frame:hover {
    transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.2);
}

.hero-img {
    width: 100%;
    max-width: 550px;
    border-radius: 8px;
    /* Clean image, subtle shadow */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Corner Accents */
.frame-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-accent-primary);
    border-radius: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.c-tl {
    top: -2px;
    left: -2px;
    border-right: 0;
    border-bottom: 0;
}

.c-tr {
    top: -2px;
    right: -2px;
    border-left: 0;
    border-bottom: 0;
}

.c-bl {
    bottom: -2px;
    left: -2px;
    border-right: 0;
    border-top: 0;
}

.c-br {
    bottom: -2px;
    right: -2px;
    border-left: 0;
    border-top: 0;
}

.tech-frame:hover .frame-corner {
    box-shadow: 0 0 10px var(--color-accent-glow);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: transparent;
    /* Removido fondo azul */
}

/* Elevated Section (Slightly lighter) */
.section-dark {
    background: transparent;
    position: relative;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent-primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Feature Cards (High Contrast) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-left-color: var(--color-accent-bright);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    flex-grow: 1;
}

/* Technical Specification Sheet (Dark Mode Context) */
.specs-container {
    background: var(--color-bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 4px solid var(--color-accent-primary);
    border-radius: 8px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 4rem;
    box-shadow: var(--shadow-lg);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.spec-row:last-child,
.spec-row:nth-last-child(2) {
    border-bottom: none;
}

.spec-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.section-dark .spec-row {
    border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .spec-label {
    color: #94A3B8;
    /* Slate 400 */
}

.section-dark .spec-value {
    color: white;
    font-family: var(--font-heading);
    /* Technical font for numbers */
    letter-spacing: 0.05em;
    font-size: 1.2rem;
}

/* Gallery */
.gallery-section {
    padding: 4rem 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}

.gallery-section::before,
.gallery-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-section::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary), transparent);
}

.gallery-section::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary), transparent);
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    min-height: 220px;
    animation: marquee 45s linear infinite;
}

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

.gallery-item {
    position: relative;
    width: 320px;
    height: 220px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border-subtle);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--color-bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.contact-info {
    padding: 2rem;
    background: var(--color-bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    color: var(--color-text-primary);
}

.contact-item:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
    background: var(--color-bg-elevated);
}

.contact-social-box {
    padding: 2rem;
    background: var(--color-bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.social-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-accent-bright);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 1.75rem;
    transition: all 0.3s var(--ease-out-smooth);
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    color: white;
    transform: translateY(-8px) scale(1.1);
    border-color: var(--color-accent-primary);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.social-btn.facebook:hover {
    background: #1877F2;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.linkedin:hover {
    background: #0077B5;
}

.social-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover::after {
    opacity: 1;
}

/* Testimonials Section */
.testimonial-video {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-bg-elevated);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-left-color: var(--color-accent-bright);
}

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

.testimonial-subtitle {
    font-size: 0.95rem;
    color: var(--color-accent-bright);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-text {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.testimonial-link:hover {
    color: var(--color-accent-bright);
    transform: translateX(5px);
}

/* Testimonial Image Card */
.testimonial-card-image {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-image-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

.testimonial-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.testimonial-caption {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}

/* PDF Card Mini-Preview Styling */
.pdf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 10;
}

.card-close-btn:hover {
    color: var(--color-accent-bright);
}

.pdf-mini-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--color-border);
}

.pdf-mini-iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Interacción habilitada para scroll */
}


.download-btn-mini {
    width: fit-content;
    /* Achicado de 100% */
    padding: 0.5rem 1rem;
    align-self: center;
    margin-top: auto;
    font-size: 0.85rem;
}

/* PDF Expand Overlay on Mini Preview */
.pdf-expand-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pdf-expand-overlay i {
    font-size: 2rem;
    color: var(--color-accent-bright);
}

.pdf-mini-container:hover .pdf-expand-overlay {
    opacity: 1;
}

/* PDF Fullscreen Lightbox */
.pdf-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pdf-lightbox.active {
    display: flex;
}

.pdf-lightbox-content {
    width: 90vw;
    height: 80vh;
    max-width: 1100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: lightbox-zoom-in 0.3s var(--ease-out-smooth);
}

.pdf-lightbox-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.pdf-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 2001;
}

.pdf-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.pdf-lightbox-download {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    background: #0F172A;
    color: #94A3B8;
    text-align: center;
    font-size: 0.95rem;
}

/* ======================== */
/* Lightbox Fullscreen View */
/* ======================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: lightbox-zoom-in 0.3s var(--ease-out-smooth);
}

@keyframes lightbox-zoom-in {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: rotate(90deg) scale(1.1);
}

/* ===================== */
/* Hamburger Menu Button */
/* ===================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================== */
/* Tablet Breakpoint (≤ 1024px)   */
/* ============================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 110px;
    }

    .logo {
        font-size: 2rem;
    }

    .logo-img {
        height: 90px;
        width: 90px;
    }

    .hero-subtitle {
        font-size: 3.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .section-title {
        font-size: 2.4rem;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .specs-container {
        gap: 0 2rem;
    }

    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-grid {
        gap: 2rem;
        padding: 2rem;
    }

    body::before {
        width: 400px;
        height: 400px;
    }
}

/* ============================== */
/* Mobile Breakpoint (≤ 768px)    */
/* ============================== */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --spacing-xl: 4rem;
    }

    /* --- Header / Nav --- */
    .hamburger {
        display: flex;
    }

    header .container {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
        gap: 0.6rem;
    }

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

    .logo-text {
        font-size: 1.5rem;
    }

    nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--glass-dark);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem 0;
        z-index: 999;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
    }

    nav a::after {
        display: none;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    /* --- Container --- */
    .container {
        padding: 0 1rem;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .highlight-line {
        margin: 0 auto 1.5rem;
    }

    .hero p {
        margin: 0 auto 2rem;
        font-size: 1rem;
        max-width: 100%;
    }

    .btn {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }

    .tech-frame {
        padding: 0.75rem;
    }

    .hero-img {
        max-width: 100%;
    }

    /* --- Sections --- */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .section-title::after {
        width: 50px;
        height: 3px;
        margin-top: 1rem;
    }

    /* --- Innovation Cards --- */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 1.75rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    /* --- Specs --- */
    .specs-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1.25rem;
    }

    .spec-row {
        padding: 1rem 0;
    }

    .spec-label {
        font-size: 0.8rem;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    /* --- Gallery --- */
    .gallery-section {
        padding: 2.5rem 0;
    }

    .gallery-section::before,
    .gallery-section::after {
        width: 50px;
    }

    .gallery-item {
        width: 240px;
        height: 160px;
    }

    /* --- Testimonials --- */
    .testimonial-video {
        margin: 0 auto 2rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.75rem;
    }

    .testimonial-card h3 {
        font-size: 1.25rem;
    }

    .testimonial-subtitle {
        font-size: 0.85rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* --- PDF Card --- */
    .pdf-mini-container {
        height: 250px;
        margin: 1rem 0;
    }

    .download-btn-mini {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-item:hover {
        transform: none;
    }

    .contact-social-box {
        padding: 1.5rem;
    }

    .social-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .social-btn {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    /* --- Footer --- */
    footer {
        padding: 2rem 0;
        font-size: 0.85rem;
    }

    /* --- Watermark --- */
    body::before {
        width: 250px;
        height: 250px;
        bottom: -20px;
        right: -20px;
        opacity: 0.08;
    }

    /* --- Lightbox --- */
    .lightbox img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ============================== */
/* Small Mobile (≤ 480px)         */
/* ============================== */
@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .logo-img {
        height: 48px;
        width: 48px;
    }

    .gallery-item {
        width: 200px;
        height: 140px;
    }

    .contact-grid {
        padding: 1rem;
    }

    .social-btn {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .card {
        padding: 1.25rem;
    }

    .specs-container {
        padding: 1rem;
    }
}