/* -------------------------------------------------------------
 * NewIT - Estilos Principales
 * Diseño Moderno, Premium, Glassmorphism y Tema Oscuro
 * ------------------------------------------------------------- */

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

:root {
    /* Color Palette */
    --bg-dark-deep: #070a13;
    --bg-dark-card: #0f1524;
    --bg-dark-nav: rgba(7, 10, 19, 0.75);
    --color-primary: #00f2fe;
    --color-secondary: #4facfe;
    --color-text-main: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-text-dark: #4b5563;
    
    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
    --gradient-card-hover: linear-gradient(180deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(7, 10, 19, 0) 70%);

    /* Fonts */
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    
    /* Layout */
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Background Ambient Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.35) 0%, rgba(79, 172, 254, 0.1) 70%);
    top: -100px;
    right: -100px;
    animation: pulseGlow 10s infinite alternate;
}
.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, rgba(0, 242, 254, 0.05) 70%);
    top: 50%;
    left: -200px;
    animation: pulseGlow 14s infinite alternate-reverse;
}
.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(79, 172, 254, 0) 70%);
    bottom: -100px;
    right: -50px;
}

@keyframes pulseGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* Button Component Styles */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    background: var(--gradient-accent);
    color: #070a19;
    font-family: var(--font-headings);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-main);
    font-family: var(--font-headings);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * Header Navigation
 * ------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    transition: var(--transition-smooth);
    z-index: 100;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: var(--bg-dark-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 32px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
}

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

.btn-nav {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(0, 242, 254, 0.25);
    transition: var(--transition-smooth);
}

.btn-nav:hover {
    background: var(--gradient-accent);
    color: #070a19;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* -------------------------------------------------------------
 * Hero Section
 * ------------------------------------------------------------- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tagline {
    font-family: var(--font-headings);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

/* Tech Card Visual style */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.tech-image-wrapper {
    background: rgba(15, 21, 36, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 12px;
    width: 100%;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-tech-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: calc(var(--border-radius-lg) - 8px);
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.tech-image-wrapper:hover .hero-tech-img {
    transform: scale(1.02);
}

/* Stats badges styling */
.stat-badge {
    position: absolute;
    background: rgba(15, 21, 36, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.stat-badge .stat-num {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-badge .stat-txt {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.stats-1 {
    top: -20px;
    left: -30px;
    animation: float 5s ease-in-out infinite alternate;
}

.stats-2 {
    bottom: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

/* -------------------------------------------------------------
 * Services Section
 * ------------------------------------------------------------- */
.services-section {
    padding: 100px 0;
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 64px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-tag {
    font-family: var(--font-headings);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card-hover);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.08);
}

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

.card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    top: -40px;
    right: -40px;
    transition: var(--transition-smooth);
}

.service-card:hover .card-glow {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: rgba(0, 242, 254, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--color-primary);
    transition: var(--transition-smooth);
    z-index: 2;
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-accent);
    color: #070a19;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: #ffffff;
    z-index: 2;
}

.service-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    z-index: 2;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bullet-check {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1rem;
}

/* -------------------------------------------------------------
 * Contact Section
 * ------------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-card {
    background: radial-gradient(ellipse at top right, rgba(15, 21, 36, 0.8), var(--bg-dark-card));
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

.contact-tag {
    font-family: var(--font-headings);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: block;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px auto;
}

.contact-action {
    display: flex;
    justify-content: center;
}

.btn-email-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: var(--border-radius-md);
    background: var(--gradient-accent);
    color: #070a19;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.35);
    transition: var(--transition-smooth);
    border: none;
}

.btn-email-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.5), var(--shadow-glow);
}

.email-icon {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

.btn-email-cta:hover .email-icon {
    transform: rotate(10deg) scale(1.1);
}

/* -------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.main-footer {
    background-color: #04060d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 0 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom .disclaimer {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.footer-bottom .copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------
 * Scroll Reveal Animations (JS triggers)
 * ------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential transition delays for grid */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.4s; }

/* -------------------------------------------------------------
 * Responsive Layouts
 * ------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        max-width: 600px;
    }

    .hero-visual {
        margin-top: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .main-header {
        background-color: var(--bg-dark-nav);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(7, 10, 19, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 30px 24px;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
        text-align: center;
    }

    .nav-link {
        display: block;
        font-size: 1.1rem;
    }
    
    .nav-link::after {
        display: none; /* Hide under-line indicators on mobile */
    }

    .btn-nav {
        display: block;
        padding: 14px;
        font-size: 1rem;
    }

    /* Mobile hamburger animation */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-card {
        padding: 40px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .visual-container {
        max-width: 100%;
    }
    
    .stats-1 {
        left: -10px;
        top: -15px;
    }
    
    .stats-2 {
        right: -10px;
        bottom: -15px;
    }
}
