/* ============================================
   SANTCOM - MAIN STYLESHEET
   Simple layouts with text overlays
   ============================================ */

/* CSS CUSTOM PROPERTIES */
:root {
    --color-navy: #043444;
    --color-navy-deep: #032A38;
    --color-navy-light: #064D5E;
    --color-coral: #FF6041;
    --color-coral-hover: #E5502F;
    --color-coral-glow: rgba(255, 96, 65, 0.15);
    --color-cyan: #00D3DE;
    --color-cyan-dim: rgba(0, 211, 222, 0.6);
    --color-cyan-glow: rgba(0, 211, 222, 0.1);
    --color-white: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.75);
    --color-border: rgba(0, 211, 222, 0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* CSS RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    background: linear-gradient(180deg, #032A38 0%, #043444 30%, #064D5E 70%, #043444 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/background_page.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER - STICKY POSITIONING */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 42, 56, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.logo-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
}

.logo-icon {
    height: 80px;
    width: auto;
    object-fit: contain;
}

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

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #FF6041;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.login-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.login-btn:hover {
    color: #FF6041;
}

.btn-get-started {
    background: #FF6041;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-get-started:hover {
    background: #E5502F;
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 40px;
    padding-top: 150px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin-left: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.btn-primary {
    background: #FF6041;
    color: #FFFFFF;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #E5502F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 96, 65, 0.35), 0 0 40px rgba(0, 211, 222, 0.1);
}

/* ============================================
   HERO BANNER - PARALLAX FLOATING
   ============================================ */
.hero-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    margin: -50px 0 0 0;
    z-index: 5;
    display: flex;
}

.hero-banner-left {
    width: 40%;
    height: 100%;
    background: #043444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.hero-banner-logo {
    width: 45%;
    max-width: 200px;
    height: auto;
}

.hero-banner-right {
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-banner-right img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    object-position: center 20%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-navy-deep) 0%, transparent 8%, transparent 92%, var(--color-navy-deep) 100%);
    z-index: 4;
    pointer-events: none;
}

/* ============================================
   MAIN FEATURE SECTION
   Left: Image with text overlay
   Right: 4 cards in 2x2 grid
   WITH BORDERS creating frame-like boxes
   ============================================ */
.section {
    padding: 0 40px;
    margin: 80px 0;
}

.feature-section-container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 705px 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.image-with-overlay {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 800px;
    border-right: 1px solid var(--color-border);
}

.image-with-overlay img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    left: 25%;
    max-width: 500px;
    z-index: 10;
}

.text-overlay-top {
    top: 8%;
}

.text-overlay-bottom {
    bottom: 22%;
}

.text-overlay h2 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.text-overlay p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #FFFFFF;
    text-align: justify;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.feature-cards-container {
    display: flex;
    align-items: start;
    padding: 40px;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.feature-card {
    padding: 40px 30px;
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.feature-card:last-child {
    border-bottom: none;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #00D3DE;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.feature-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-coral), var(--color-border) 50%, transparent);
    margin-top: 20px;
}

/* ============================================
   TRANSFORM SECTION - FRAMED WITH LEFT/RIGHT
   ============================================ */
.transform-stats-section {
    margin: 80px 0;
    padding: 0 40px;
}

.transform-section-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    min-height: 600px;
}

.transform-visual-left {
    position: relative;
    padding: 60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transform-visual-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.transform-text-overlay {
    position: relative;
    z-index: 10;
    max-width: 400px;
    text-align: center;
}

.transform-text-overlay h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.transform-section-wrapper > div:nth-child(2) {
    width: 1px;
    height: 100%;
    background: var(--color-border);
}

.transform-text-right {
    padding: 60px;
}

.transform-text-right p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* ============================================
   STATS SECTION - NO FRAME, ON BACKGROUND
   ============================================ */
.stats-section {
    margin: 80px 0;
    padding: 0;
    position: relative;
    background: transparent;
}

.stats-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 0;
    overflow: hidden;
}

.stats-parallax-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

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

.stats-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 80px 40px 120px;
}

.stats-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #FFFFFF;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FF6041;
    margin-bottom: 10px;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6041;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.stat-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-coral), var(--color-cyan));
    margin: 0 auto;
}

/* ============================================
   PARTNERSHIP SECTION
   ============================================ */
.partnership-section {
    margin: 80px 0;
    text-align: center;
    padding: 0 40px;
}

.partnership-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.partnership-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partnership-logos img {
    height: 227px;
    width: auto;
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 12px;
}

.partnership-logos img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ============================================
   VIDEO SECTION
   Video on left side, Text on right side
   WITH BORDER creating frame
   ============================================ */
.video-section-actual {
    margin: 80px 0;
    padding: 0 40px;
}

.video-section-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
}

.video-visual-left {
    position: relative;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy-deep);
    overflow: hidden;
    min-height: 450px;
}

.video-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-section-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.video-background-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Particles canvas - fills entire left frame */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Single video - fills entire left frame */
.video-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform: scale(1.30);
    opacity: 1;
}

.video-single::-webkit-media-controls {
    display: none !important;
}

.video-single::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-single::-webkit-media-controls-panel {
    display: none !important;
}

.video-single::--webkit-media-text-track-container {
    display: none !important;
}

.video-single::-webkit-media-text-track-display {
    display: none !important;
}

.video-background-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Red sphere overlay removed - video has built-in blending */

.video-section-wrapper > div:nth-child(2) {
    width: 1px;
    height: 100%;
    background: var(--color-border);
}

.video-text-content {
    padding: 60px;
}

.video-text-content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.video-text-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ============================================
   QUIENES SOMOS - BRAND BANNER
   ============================================ */
.qs-brand-banner {
    width: 100%;
    padding: 120px 40px 80px;
    background: #043444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-brand-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.qs-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 48px;
    color: #00D3DE;
    letter-spacing: 6px;
}

.qs-brand-icon {
    width: 120px;
    height: auto;
}

.qs-brand-tagline {
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: #00D3DE;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .qs-brand-banner {
        padding: 100px 20px 60px;
    }

    .qs-brand-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .qs-brand-name {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .qs-brand-icon {
        width: 80px;
    }

    .qs-brand-tagline {
        font-size: 15px;
        align-items: center;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 80px 40px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.cta-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    max-width: 800px;
    margin: 100px auto;
    padding: 60px 40px;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #FFFFFF;
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-form button {
    padding: 16px 40px;
    background: #FF6041;
    border: none;
    border-radius: 30px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #E5502F;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(3, 42, 56, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 1px solid var(--color-border);
}

.footer-container,
.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

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

.footer-col,
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-col h3,
.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p,
.footer-column p,
.footer-contact {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF6041;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.social-links a:hover {
    color: #FF6041;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   BRANDED SECTION DIVIDERS & ACCENTS
   ============================================ */
.section-divider {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-divider::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-coral) 20%, var(--color-cyan) 80%, transparent);
    opacity: 0.4;
}

/* Branded accent line (coral, like in PDF) */
.accent-line {
    width: 80px;
    height: 3px;
    background: var(--color-coral);
    margin-bottom: 30px;
}

.accent-line-cyan {
    width: 80px;
    height: 3px;
    background: var(--color-cyan);
    margin-bottom: 30px;
}

/* Enhanced feature section frame */
.feature-section-container {
    box-shadow: 0 0 40px rgba(0, 211, 222, 0.03), 0 0 80px rgba(255, 96, 65, 0.02);
}

/* Enhanced transform section frame */
.transform-section-wrapper {
    box-shadow: 0 0 40px rgba(0, 211, 222, 0.03), 0 0 80px rgba(255, 96, 65, 0.02);
}

/* Enhanced video section frame */
.video-section-wrapper {
    box-shadow: 0 0 40px rgba(0, 211, 222, 0.03), 0 0 80px rgba(255, 96, 65, 0.02);
}

/* Hero section branded accent */
.hero-content h1 {
    color: #FFFFFF;
}

/* Stats section enhanced overlay */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-navy-deep) 0%, transparent 40%, transparent 60%, var(--color-navy-deep) 100%);
    z-index: 1;
    pointer-events: none;
}

/* CTA section branded look */
.cta-section h2 {
    color: #FFFFFF;
}

/* Newsletter section subtle border */
.newsletter-section {
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

/* Enhanced form elements */
.newsletter-form input[type="email"]:focus {
    border-color: var(--color-cyan);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 211, 222, 0.1);
}

/* Feature icon subtle glow */
.feature-icon svg {
    filter: drop-shadow(0 0 8px rgba(255, 96, 65, 0.2));
}

/* Transform section title accent */
.transform-text-overlay h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-coral);
    margin: 15px auto 0;
}

/* Video section title accent */
.video-text-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-cyan);
    margin-top: 15px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile Menu Button (hamburger) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 42, 56, 0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #FF6041;
}

@media (max-width: 1400px) {
    .feature-section-container {
        grid-template-columns: 700px 1fr;
        gap: 60px;
    }

    .image-with-overlay {
        width: 700px;
        height: auto;
    }

    .tall-image-with-overlays {
        width: 700px;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .feature-section-container {
        grid-template-columns: 1fr;
        gap: 40px;
        border: none;
    }

    .image-with-overlay {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        min-height: 500px;
        border-right: none;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .tall-image-with-overlays {
        width: 100%;
        max-width: 700px;
    }

    .video-section-wrapper {
        grid-template-columns: 1fr;
    }

    .video-section-wrapper > div:nth-child(2) {
        display: none;
    }

    .transform-section-wrapper {
        grid-template-columns: 1fr;
    }

    .transform-section-wrapper > div:nth-child(2) {
        display: none;
    }

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

    .header-container {
        padding: 0 20px;
    }

    .section {
        padding: 0 20px;
        margin: 60px 0;
    }
}

@media (max-width: 768px) {
    /* CRITICAL: Disable fixed background on mobile - causes severe jank on iOS/Android */
    body {
        background-attachment: scroll;
    }

    body::before {
        background-attachment: scroll;
        position: absolute;
        height: 100vh;
    }

    /* Show mobile menu button, hide desktop nav */
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
    }

    .login-btn {
        display: none;
    }

    /* Header adjustments */
    .header {
        padding: 12px 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-icon {
        height: 45px;
    }

    .btn-get-started {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Language switcher - fixed bottom-right */
    .language-switcher {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 1001;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* ---- HERO SECTION ---- */
    .hero {
        min-height: auto;
        height: auto !important;
        padding: 90px 20px 50px 20px !important;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 25px;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

    /* Override ALL inline hero heights/font sizes on subpages */
    .hero[style*="height"] {
        height: auto !important;
        min-height: auto !important;
    }

    .hero h1[style*="font-size"] {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .hero p[style*="font-size"] {
        font-size: 0.95rem !important;
        margin-top: 10px !important;
    }

    /* ---- HERO BANNER (split AI face) ---- */
    .hero-banner {
        height: 220px;
        margin: 10px 0 0 0;
        flex-direction: row;
    }

    .hero-banner-left {
        width: 35%;
    }

    .hero-banner-logo {
        width: 55%;
        max-width: 100px;
    }

    .hero-banner-right {
        width: 65%;
    }

    .hero-banner-right img {
        height: 120%;
        object-position: center 25%;
    }

    /* ---- GLOBAL INLINE STYLE OVERRIDES ---- */

    /* Force ALL inline font sizes to mobile-friendly values */
    h1[style*="font-size: 56px"],
    h1[style*="font-size: 48px"] {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    h2[style*="font-size: 56px"],
    h2[style*="font-size: 48px"] {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h2[style*="font-size: 42px"] {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    p[style*="font-size: 24px"] {
        font-size: 1rem !important;
    }

    p[style*="font-size: 22px"] {
        font-size: 1rem !important;
    }

    p[style*="font-size: 20px"] {
        font-size: 0.95rem !important;
    }

    p[style*="font-size: 18px"],
    p[style*="font-size: 17px"] {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    /* Force ALL inline grids to single column */
    div[style*="grid-template-columns: repeat(2"],
    div[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    /* Add spacing between stacked grid children */
    div[style*="grid-template-columns: repeat(2"] > *,
    div[style*="grid-template-columns: repeat(auto-fit"] > *,
    div[style*="grid-template-columns: 1fr 1fr"] > * {
        margin-bottom: 25px !important;
    }

    /* Force ALL inline grids with minmax to single column */
    div[style*="minmax(350px"],
    div[style*="minmax(300px"],
    div[style*="minmax(280px"],
    div[style*="minmax(250px"] {
        display: block !important;
    }

    div[style*="minmax(350px"] > *,
    div[style*="minmax(300px"] > *,
    div[style*="minmax(280px"] > *,
    div[style*="minmax(250px"] > * {
        margin-bottom: 25px !important;
    }

    /* Force ALL inline large paddings down */
    div[style*="padding: 0 40px"] {
        padding: 0 15px !important;
    }

    div[style*="padding: 80px 40px"] {
        padding: 30px 15px !important;
    }

    div[style*="padding: 60px"] {
        padding: 25px 15px !important;
    }

    /* Force inline max-width containers to fit mobile */
    div[style*="max-width: 1400px"],
    div[style*="max-width: 1200px"],
    div[style*="max-width: 900px"],
    div[style*="max-width: 800px"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Force large inline margins down */
    div[style*="margin-bottom: 60px"] {
        margin-bottom: 30px !important;
    }

    div[style*="margin-bottom: 80px"] {
        margin-bottom: 40px !important;
    }

    /* Inline gap override */
    div[style*="gap: 60px"] {
        gap: 25px !important;
    }

    div[style*="gap: 50px"] {
        gap: 20px !important;
    }

    div[style*="gap: 40px"] {
        gap: 20px !important;
    }

    /* ---- SECTION SPACING ---- */
    .section {
        padding: 35px 15px 50px 15px;
    }

    /* ---- FEATURE SECTION (image + cards grid) ---- */
    .feature-section-container {
        grid-template-columns: 1fr;
        border: none;
        gap: 20px;
    }

    .image-with-overlay {
        min-height: 420px;
        border-right: none;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .image-with-overlay img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .text-overlay {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        max-width: none;
        padding: 20px 15px;
        z-index: 10;
    }

    .text-overlay-top {
        padding-top: 25px;
    }

    .text-overlay-bottom {
        margin-top: auto;
        padding-bottom: 25px;
    }

    .text-overlay h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .text-overlay p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .feature-cards-container {
        padding: 15px;
    }

    .feature-card {
        padding: 20px 15px !important;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* ---- TRANSFORM SECTION ---- */
    .transform-stats-section {
        margin: 40px 0;
        padding: 0 15px;
    }

    .transform-section-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .transform-visual-left {
        min-height: 280px;
        padding: 30px 20px;
    }

    .transform-text-overlay h2 {
        font-size: 1.3rem;
    }

    .transform-text-right {
        padding: 25px 20px;
    }

    .transform-text-right p {
        font-size: 0.9rem;
    }

    /* ---- STATS SECTION ---- */
    .stats-section {
        margin: 40px 0;
    }

    .stats-content {
        padding: 40px 15px 60px;
    }

    .stats-content h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .stats-grid {
        gap: 30px;
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* ---- PARTNERSHIP SECTION ---- */
    .partnership-section {
        margin: 40px 0;
        padding: 0 15px;
    }

    .partnership-section h2 {
        font-size: 1rem;
    }

    .partnership-logos {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .partnership-logos img {
        height: auto;
        max-width: 80%;
        max-height: 150px;
    }

    /* ---- VIDEO / PARTICLES SECTION ---- */
    .video-section-actual {
        margin: 40px 0;
        padding: 0 15px;
    }

    .video-section-wrapper {
        grid-template-columns: 1fr;
    }

    .video-section-wrapper > div:nth-child(2) {
        display: none;
    }

    .video-visual-left {
        padding: 20px;
        min-height: 250px;
    }

    .video-text-content {
        padding: 25px 20px;
    }

    .video-text-content h2 {
        font-size: 1.3rem;
    }

    .video-text-content p {
        font-size: 0.9rem;
    }

    /* ---- QUIENES SOMOS BRAND BANNER ---- */
    .qs-brand-banner {
        padding: 80px 15px 50px;
    }

    .qs-brand-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .qs-brand-name {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .qs-brand-icon {
        width: 70px;
    }

    .qs-brand-tagline {
        font-size: 14px;
        align-items: center;
    }

    /* ---- CTA SECTION ---- */
    .cta-section {
        margin: 40px auto;
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    /* ---- NEWSLETTER SECTION ---- */
    .newsletter-section {
        margin: 40px auto;
        padding: 30px 20px;
    }

    .newsletter-section h2 {
        font-size: 1.3rem;
    }

    .newsletter-section p {
        font-size: 0.9rem;
    }

    /* ---- FOOTER ---- */
    .footer {
        padding: 30px 0 20px;
        margin-top: 40px;
    }

    .footer-container,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
    }

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

    .footer-logo img {
        height: 40px;
    }

    .footer-col h3,
    .footer-col h4,
    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* ---- GET STARTED FORM FIXES ---- */
    form div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    form div[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 15px;
    }

    .feature-card[style*="padding: 50px"] {
        padding: 20px !important;
    }

    button[style*="font-size: 18px"] {
        font-size: 1rem !important;
    }

    /* ---- BLOG CARDS ---- */
    article.feature-card {
        margin-bottom: 30px;
    }

    /* Blog card image placeholders */
    .feature-card div[style*="height: 200px"] {
        height: 150px !important;
    }

    /* ---- RESULT BARS (vision page) ---- */
    span[style*="font-size: 24px"] {
        font-size: 1.1rem !important;
    }

    /* ---- QUIENES SOMOS CONTENT FIXES ---- */
    .qs-title {
        font-size: 1.5rem !important;
    }

    .qs-local-title {
        font-size: 1.5rem !important;
    }

    .qs-local-subtitle {
        font-size: 1rem !important;
    }

    .qs-diff-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 45px 15px !important;
    }

    .hero-content h1 {
        font-size: 1.4rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    /* Hero banner - smaller on tiny screens */
    .hero-banner {
        height: 180px;
    }

    .hero-banner-logo {
        width: 55%;
        max-width: 80px;
    }

    /* Text overlays */
    .text-overlay {
        padding: 15px 12px;
    }

    .text-overlay-top {
        padding-top: 20px;
    }

    .text-overlay-bottom {
        padding-bottom: 20px;
    }

    .text-overlay h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .text-overlay p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .image-with-overlay {
        min-height: 360px;
    }

    .transform-visual-left {
        min-height: 250px;
    }

    .transform-text-overlay h2 {
        font-size: 1.15rem;
    }

    /* Stats */
    .stats-grid {
        flex-direction: column;
        gap: 25px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stats-content h2 {
        font-size: 1.3rem;
    }

    /* Partnership */
    .partnership-logos img {
        max-height: 120px;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.3rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    /* Newsletter */
    .newsletter-section h2 {
        font-size: 1.15rem;
    }

    /* Header */
    .btn-get-started {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .logo-icon {
        height: 38px;
    }

    /* Language switcher */
    .language-switcher {
        position: fixed !important;
        top: auto !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    /* Footer */
    .footer .newsletter-form input[type="email"] {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    /* Video / particles section */
    .video-visual-left {
        min-height: 200px;
        padding: 15px;
    }

    .video-text-content {
        padding: 20px 15px;
    }

    .video-text-content h2 {
        font-size: 1.15rem;
    }

    /* Quienes Somos */
    .qs-brand-banner {
        padding: 70px 12px 40px;
    }

    .qs-brand-name {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .qs-brand-icon {
        width: 55px;
    }

    .qs-brand-tagline {
        font-size: 12px;
    }

    /* All inline font sizes - extra small */
    h1[style*="font-size: 56px"],
    h1[style*="font-size: 48px"] {
        font-size: 1.4rem !important;
    }

    h2[style*="font-size: 56px"],
    h2[style*="font-size: 48px"] {
        font-size: 1.3rem !important;
    }

    h2[style*="font-size: 42px"] {
        font-size: 1.2rem !important;
    }

    .qs-title,
    .qs-local-title,
    .qs-diff-title {
        font-size: 1.3rem !important;
    }

    .qs-local-subtitle {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   LANGUAGE SWITCHER STYLES
   ============================================ */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(3, 42, 56, 0.9);
    padding: 5px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: #FF6041;
    color: #fff;
}
