/* ==========================================================================
   GIA Premium Stylesheet
   Design System: Midnight Cyber Dark / Glassmorphism / Dynamic Glows
   ========================================================================== */

/* Variables */
:root {
    --bg-base: #121315;       /* Matte Obsidian Charcoal Black */
    --bg-surface: #18191c;    /* Deep Matte Surface */
    --bg-card: rgba(255, 255, 255, 0.025);
    --border-color: rgba(255, 255, 255, 0.07);
    
    --primary: #a3f300;       /* Electric SOC Green */
    --primary-glow: rgba(163, 243, 0, 0.2);
    --secondary: #00ff88;     /* Neon Spring Green */
    --secondary-glow: rgba(0, 255, 136, 0.2);
    --accent: #bfff00;        /* Electric Lime Green */
    --accent-glow: rgba(191, 255, 0, 0.2);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
}

html, body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: #fff;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Custom Cursor Elements */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.custom-cursor-glow {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(163, 243, 0, 0.2) 0%, rgba(0, 255, 136, 0.08) 50%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    filter: blur(10px);
}

/* Background 3D Canvas style */
#three-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Grid & Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* Headers & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, #00ff88 0%, #a3f300 50%, #bfff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-md {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #70b800 100%);
    color: #0b1400;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(163, 243, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(163, 243, 0, 0.55);
    background: linear-gradient(135deg, #bfff00 0%, var(--primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header & Navigation Bar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(18, 19, 21, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1500px;
    width: 96%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Audio Mute Button Styles */
.mute-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.audio-bar {
    width: 2px;
    height: 14px;
    background-color: var(--secondary);
    border-radius: 1px;
    transition: var(--transition-fast);
    transform-origin: bottom;
}

/* Animation when unmuted */
.mute-btn.playing .bar1 { animation: soundWave 0.8s ease infinite alternate 0.1s; }
.mute-btn.playing .bar2 { animation: soundWave 0.5s ease infinite alternate 0.3s; }
.mute-btn.playing .bar3 { animation: soundWave 0.7s ease infinite alternate 0s; }
.mute-btn.playing .bar4 { animation: soundWave 0.6s ease infinite alternate 0.2s; }

@keyframes soundWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

/* Styles when muted */
.mute-btn.muted .audio-bar {
    height: 2px;
    background-color: var(--text-dark);
    transform: scaleY(1);
    animation: none;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.winsai-logo-header-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
    transition: var(--transition-smooth);
}

.winsai-logo-header-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.35));
}

.winsai-logo-footer-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: auto;
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav toggle button for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-fast);
}

/* Mobile Nav Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 19, 21, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--secondary);
}

.mobile-cta {
    margin-top: 1rem;
}

/* HERO SECTION */
.hero-section {
    padding-top: 11rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.tagline-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(163, 243, 0, 0.08);
    border: 1px solid rgba(163, 243, 0, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #bfff00;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(163, 243, 0, 0.15);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.3); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* 3D Visual container on Hero */
.hero-visual {
    position: relative;
    width: 100%;
    height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.three-hero-container {
    width: 820px;
    height: 700px;
    max-width: 95vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    pointer-events: none;
}

.three-hero-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    pointer-events: auto;
}

.three-hero-container:active {
    cursor: grabbing;
}

/* TICKER */
.ticker-wrap {
    width: 100%;
    background-color: rgba(18, 19, 21, 0.85);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.ticker {
    display: inline-flex;
    animation: tickerLoop 30s linear infinite;
}

.ticker-wrap.reverse .ticker {
    animation-direction: reverse;
}

.ticker-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.08);
    padding: 0 3rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.ticker-wrap:hover .ticker-item {
    color: rgba(163, 243, 0, 0.25);
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Scroll reveal helper classes */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Sections Structure Dual Column */
.card-grid-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.card-grid-dual.reverse-layout {
    direction: ltr;
}

.card-grid-dual.reverse-layout > *:first-child {
    order: 2;
}
.card-grid-dual.reverse-layout > *:last-child {
    order: 1;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0.15em;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.section-title {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Visual Showcase box (SVG fallback/styling) */
.styled-visual-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(100% 100% at 50% 50%, rgba(163, 243, 0, 0.04) 0%, rgba(18, 19, 21, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Winsai Cyber HUD Showcase Animations */
.hud-rotate-cw {
    transform-origin: 200px 200px;
    animation: hudRotateCw 25s linear infinite;
}

.hud-rotate-ccw {
    transform-origin: 200px 200px;
    animation: hudRotateCcw 18s linear infinite;
}

@keyframes hudRotateCw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hudRotateCcw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.hud-pulse-tag {
    animation: hudFloat 4s ease-in-out infinite;
}

.hud-pulse-tag-delay {
    animation: hudFloat 4s ease-in-out infinite 2s;
}

@keyframes hudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.visual-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.visual-glow.purple {
    background-color: var(--primary);
    top: 10%;
    left: 10%;
    opacity: 0.3;
}

.visual-glow.cyan {
    background-color: var(--secondary);
    bottom: 10%;
    right: 10%;
    opacity: 0.3;
}

.visual-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.05));
    animation: floatVisual 6s ease-in-out infinite;
}

@keyframes floatVisual {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Formula Box Component */
.formula-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    backdrop-filter: blur(10px);
}

.formula-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.formula-equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.formula-term {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #fff;
}

.formula-operator {
    color: var(--secondary);
    font-size: 1.25rem;
}

.formula-result {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.formula-result .equals {
    color: var(--accent);
    font-size: 1.5rem;
}

/* Domina Tu Mercado: Glass cards grid */
.card-grid-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    top: -40px;
    right: -40px;
}

.glass-card:hover .card-glow {
    opacity: 0.25;
}

.card-glow.purple { background-color: var(--primary); }
.card-glow.cyan { background-color: var(--secondary); }
.card-glow.magenta { background-color: var(--accent); }

.card-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #fff;
    transition: var(--transition-smooth);
}

.glass-card:hover .card-icon-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    transform: scale(1.05);
}

.card-icon {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card-body-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Call to Action Banner */
.cta-banner {
    background: radial-gradient(100% 100% at 0% 0%, rgba(163, 243, 0, 0.1) 0%, rgba(0, 255, 136, 0.02) 100%);
    border: 1px solid rgba(163, 243, 0, 0.2);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Profiles targets styling */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}

.profile-icon {
    width: 26px;
    height: 26px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-top: 0.2rem;
}

.profile-icon svg {
    width: 14px;
    height: 14px;
}

.profile-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-text strong {
    color: #fff;
    font-weight: 600;
}

/* Interactive target profile box */
.interactive-perfiles-box {
    padding: 4rem;
    position: relative;
}

.inner-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--secondary);
    filter: blur(80px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem 0.5rem;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calendly Section Container */
.calendly-card {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer styling */
.footer {
    background-color: rgba(18, 19, 21, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-section {
    max-width: 320px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links-group h5 {
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
}

.links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.links-group a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.socials {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: #fff;
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .card-grid-dual {
        gap: 3rem;
    }
    
    .card-grid-triple {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-banner {
        padding: 3rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 1150px) {
    .nav {
        display: none;
    }
    
    .nav-cta-wrapper {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 3rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 420px;
        order: -1;
    }
    
    .three-hero-container {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .card-grid-dual {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .card-grid-dual.reverse-layout > *:first-child {
        order: 1;
    }
    .card-grid-dual.reverse-layout > *:last-child {
        order: 2;
    }
    
    .card-grid-triple {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .styled-visual-box {
        aspect-ratio: 1.3;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
        word-break: break-word;
    }
    
    .section-tag {
        font-size: 1.25rem;
    }
    
    .interactive-perfiles-box {
        padding: 1.5rem !important;
    }

    .standard-mini-card {
        padding: 1.25rem 1rem !important;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .formula-equation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .formula-operator {
        text-align: center;
    }
}

/* ==========================================================================
   Added Portfolio Section Styles (Timeline, Tabs, Badges & Lists)
   ========================================================================== */

/* Lifecycle Timeline */
.lifecycle-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.timeline-step {
    padding: 2.5rem 2rem;
    position: relative;
    border-top: 3px solid rgba(255, 255, 255, 0.08);
}

.timeline-step:hover {
    border-top-color: var(--secondary);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Success Cases Tabs */
.cases-tabs-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.tabs-header::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #70b800 100%);
    border-color: transparent;
    color: #0b1400;
    box-shadow: 0 4px 15px rgba(163, 243, 0, 0.35);
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.case-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.case-block:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.case-badge {
    display: inline-flex;
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
}

.case-badge.problem {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.case-badge.solution {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #22d3ee;
}

.case-badge.results {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.case-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Standards cards */
.standards-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.standard-mini-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.75rem 2rem;
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.standard-mini-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.standard-mini-card h5 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.standard-mini-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Added Value items list */
.added-value-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.value-item strong {
    color: #fff;
}

.value-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.value-dot.cyan {
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

/* Contact information panel */
.contact-details-box {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-top: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-item h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}

a.contact-link:hover {
    color: var(--secondary);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .lifecycle-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lifecycle-timeline {
        grid-template-columns: 1fr;
    }
    
    .cases-tabs-container {
        padding: 2rem 1.5rem;
    }
    
    .tabs-header {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Certificaciones Section Styles
   ========================================================================== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.cert-card {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 3px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
}

.cert-card:hover {
    border-top-color: var(--secondary);
}

.cert-badge-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    background-color: var(--primary-glow);
    z-index: -1;
    opacity: 0;
    top: -50px;
    left: -50px;
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-badge-glow {
    opacity: 0.3;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cert-seal {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cert-seal svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.cert-titles {
    display: flex;
    flex-direction: column;
}

.cert-name {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.cert-type {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 0.25rem;
}

.cert-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Evocative Banner */
.evocative-banner {
    position: relative;
    padding: 4rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: radial-gradient(100% 100% at 0% 0%, rgba(163, 243, 0, 0.05) 0%, rgba(0, 255, 136, 0.01) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden;
    margin-top: 2rem;
}

.evocative-banner .inner-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: var(--primary);
    filter: blur(100px);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.evocative-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.7;
    color: #f1f5f9;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(to right, #fff, #a3f300, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

/* Responsive overrides for Certifications */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-card {
        padding: 2rem;
    }
    
    .evocative-banner {
        padding: 2.5rem 1.5rem;
    }
    
    .evocative-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Interactive 3D Gears Component Styles
   ========================================================================== */
.gears-card {
    transition: var(--transition-smooth);
}

.gears-container-wrapper {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments for 3D gears */
@media (max-width: 768px) {
    #three-gears-container {
        height: 240px !important;
        margin-top: 2rem !important;
    }
}
@media (max-width: 480px) {
    #three-gears-container {
        height: 180px !important;
        margin-top: 1.5rem !important;
    }
}
