/* Scroll suave */
html { scroll-behavior: smooth; }

/* Hero - dark gradient by default (dark mode): Tech Forward gradient */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(0, 162, 255, 0.10) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero background es idéntico en ambos temas — sin overlays de aclarado en light mode */

/* Hero text - always white in dark mode */
.hero-section .mud-typography {
    color: #ffffff !important;
}

/* Light mode: hero text stays white for contrast over gradient */
[data-theme="light"] .hero-section .mud-typography {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Hero subtitle slightly muted in dark mode */
.hero-section .mud-typography-h5 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Light mode: hero subtitle stays white */
[data-theme="light"] .hero-section .mud-typography-h5 {
    color: rgba(255, 255, 255, 0.90) !important;
}

/* Secciones alternadas - por defecto heredan fondo del tema */
.section-padding {
    padding: 80px 0;
}

/* En modo claro, las secciones usan fondo claro */
[data-theme="light"] .section-padding {
    background: transparent !important;
}

/* Navbar glassmorphism - Alhena dark blue base */
.alhena-navbar {
    backdrop-filter: blur(10px);
    background: rgba(15,23,42,0.85) !important;
}

.alhena-navbar .mud-appbar {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(15,23,42,0.85) !important;
}

[data-theme="light"] .alhena-navbar,
[data-theme="light"] .alhena-navbar .mud-appbar {
    background: rgba(255,255,255,0.9) !important;
    border-bottom: 1px solid rgba(30,58,138,0.1);
}

/* Logo color según tema */
.alhena-logo {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="light"] .alhena-logo {
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Logo imagen: circular badge con transparencia nativa del PNG */
.alhena-logo-img {
    height: 46px;
    width: auto;
    border-radius: 50%;
    padding: 1px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Responsive nav */
.nav-desktop { display: flex !important; }
.nav-mobile  { display: none !important; }

@media (max-width: 960px) {
    .nav-desktop { display: none !important; }
    .nav-mobile  { display: flex !important; }
}

/* Nav links */
.nav-link {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #00a2ff !important;
}

.nav-link.active {
    color: #00a2ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #00a2ff;
    border-radius: 1px;
}

[data-theme="light"] .nav-link {
    color: #475569 !important;
}

[data-theme="light"] .nav-link:hover {
    color: #00a2ff !important;
}

/* Drawer mobile */
.alhena-drawer {
    background: #0f172a !important;
}

[data-theme="light"] .alhena-drawer {
    background: #ffffff !important;
}

[data-theme="light"] .alhena-drawer .mud-link {
    color: #475569 !important;
}

.drawer-link {
    color: #94a3b8;
}

[data-theme="light"] .drawer-link {
    color: #475569;
}

/* Service card hover - Alhena Azul Cielo with gradient accent */
.service-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #00a2ff;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.20), 0 8px 32px rgba(147, 51, 234, 0.15);
}

[data-theme="light"] .service-card:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.12), 0 8px 32px rgba(147, 51, 234, 0.08);
}

/* Contact info card hover - same technique as service cards */
.contact-info-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

.contact-info-card:hover {
    border-color: #00a2ff;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.20), 0 8px 32px rgba(147, 51, 234, 0.15);
}

[data-theme="light"] .contact-section .contact-info-card:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.12), 0 8px 32px rgba(147, 51, 234, 0.08);
}


/* Contact CTA card hover - same technique as service cards and contact cards */
.contact-cta-paper {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

.contact-cta-paper:hover {
    border-color: #00a2ff;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.20), 0 8px 32px rgba(147, 51, 234, 0.15);
}

[data-theme="light"] .contact-section .contact-cta-paper:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.12), 0 8px 32px rgba(147, 51, 234, 0.08);
}


/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* Contact section - theme-aware styling (like AboutSection) */
.contact-section {
    position: relative;
    z-index: 0;
    padding: 80px 0;
}




/* Stats band - Tech Forward gradient */
.stats-band {
    position: relative;
    z-index: 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    z-index: -2;
}

[data-theme="light"] .stats-band {
    border-top: 1px solid rgba(30, 58, 138, 0.15);
    border-bottom: 1px solid rgba(147, 51, 234, 0.15);
}

/* Stats band keeps full Tech Forward gradient visible in light mode */

/* Value card */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .value-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Gradient top border accent for value cards */
.gradient-top-border {
    position: relative;
    overflow: hidden;
}

.gradient-top-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00a2ff 0%, #9333ea 100%);
}

/* Accent border for methodology cards - Tech Forward gradient */
.accent-border {
    position: relative;
    overflow: hidden;
}

.accent-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e3a8a 0%, #9333ea 100%);
    border-radius: 0 2px 2px 0;
}

[data-theme="light"] .accent-border::before {
    width: 6px;
}

/* Methodology section subtle gradient background */
#metodologia {
    position: relative;
    z-index: 0;
    background: transparent;
}

#metodologia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06) 0%, rgba(147, 51, 234, 0.06) 100%);
    z-index: -1;
}

[data-theme="light"] #metodologia::before {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04) 0%, rgba(147, 51, 234, 0.04) 100%);
}

/* Services section gradient top accent */
#servicios {
    position: relative;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #9333ea 100%);
}

/* Footer - gradient top strip */
.alhena-footer {
    position: relative;
    padding: 60px 0 20px;
}

.alhena-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3a8a 0%, #9333ea 100%);
}

[data-theme="light"] .alhena-footer {
    border-top: none;
}

/* Global Alhena gradient utilities */
.alhena-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%) !important;
}

.alhena-gradient-light {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%) !important;
}


[data-theme="light"] .stats-band .mud-typography {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}


/* Light mode: section headings use gradient text */
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Gradient button override */
.gradient-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Outlined button gradient hover */
.gradient-hover {
    transition: all 0.3s ease;
}

.gradient-hover:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

[data-theme="light"] .gradient-hover {
    border-color: #1e3a8a !important;
    color: #1e3a8a !important;
}

/* Hero outlined button: forced white style in both themes */
.hero-section .gradient-hover {
    border-color: rgba(255,255,255,0.7) !important;
    color: #ffffff !important;
}

.hero-section .gradient-hover:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.9) !important;
}

/* Service card icon container */
.service-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact icon container — mirrors .service-icon-container */
.contact-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Value card icon container */
.value-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}


/* Footer brand gradient in light mode */
[data-theme="light"] .alhena-footer .alhena-brand {
    background: linear-gradient(135deg, #1e3a8a 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Stats band number emphasis */
.stats-band .mud-typography-h3 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Section alternating gradient background */
.section-gradient-bg {
    background: linear-gradient(135deg, rgba(30,58,138,0.04) 0%, rgba(147,51,234,0.04) 100%) !important;
}

/* Tech Banner Marquee */
.tech-banner-section {
    padding: 48px 0;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

[data-theme="light"] .tech-banner-section {
    background: rgba(30, 58, 138, 0.04);
    border-top: 1px solid rgba(30,58,138,0.08);
    border-bottom: 1px solid rgba(147,51,234,0.08);
}

.tech-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    padding: 6px 0; /* room for hover lift without clipping */
}

.tech-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: rgba(0, 162, 255, 0.15);
    border-color: rgba(0, 162, 255, 0.3);
    transform: translateY(-2px);
}

[data-theme="light"] .tech-pill {
    background: rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.12);
}

[data-theme="light"] .tech-pill:hover {
    background: rgba(0, 162, 255, 0.1);
    border-color: rgba(0, 162, 255, 0.25);
}

.tech-pill-icon {
    color: #00a2ff;
    font-size: 18px;
}

.tech-pill-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

[data-theme="light"] .tech-pill-text {
    color: #1e3a8a;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Prevent horizontal scroll from marquee or any overflow */
html, body {
    overflow-x: hidden;
}

/* Mobile: up to 600px */
@media (max-width: 600px) {
    /* Section padding reduction */
    .section-padding {
        padding: 48px 0 !important;
    }

    .contact-section {
        padding: 48px 0 !important;
    }

    .alhena-footer {
        padding: 40px 0 24px !important;
    }

    /* Hero adjustments */
    .hero-section {
        min-height: 85vh;
        padding: 80px 16px 48px;
    }

    .hero-section .mud-typography-h2 {
        font-size: 2rem !important;
        line-height: 1.15 !important;
    }

    .hero-section .mud-typography-h5 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }

    /* Hero buttons stack vertically */
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-buttons .mud-button {
        width: 100% !important;
    }

    /* Stats scaling */
    .stats-band {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .stats-band .mud-typography-h3 {
        font-size: 2.5rem !important;
    }

    /* Services & About cards full width spacing */
    .service-card,
    .value-card {
        margin-bottom: 16px;
    }

    /* Tech banner */
    .tech-banner-section {
        padding: 32px 0 !important;
    }

    .tech-pill {
        padding: 6px 12px !important;
    }

    .tech-pill-text {
        font-size: 0.8rem !important;
    }

    /* Methodology text spacing */
    #metodologia .mud-typography-h3 {
        font-size: 1.75rem !important;
    }

    /* Methodology stack wraps if needed */
    .methodology-stack {
        flex-wrap: wrap !important;
    }

    .methodology-stack .mud-icon-button {
        flex-shrink: 0;
    }

    /* Contact form */
    .contact-paper {
        padding: 24px 16px !important;
    }

    /* Footer brand */
    .alhena-footer .alhena-brand {
        font-size: 1.5rem !important;
    }

    /* Navbar on mobile */
    .nav-mobile .mud-icon-button {
        padding: 6px !important;
    }
}

/* Tablet: 601px - 960px */
@media (min-width: 601px) and (max-width: 960px) {
    .section-padding {
        padding: 64px 0 !important;
    }

    .hero-section .mud-typography-h2 {
        font-size: 2.75rem !important;
    }

    .stats-band .mud-typography-h3 {
        font-size: 3rem !important;
    }

    .contact-section {
        padding: 64px 0 !important;
    }
}