/* ==========================================================================
   CSS DESIGN SYSTEM & GLOBAL VARIABLES
   ========================================================================== */
:root {
    --bg-color-1: #060417;
    --bg-color-2: #0b072c;
    --bg-gradient: radial-gradient(circle at 50% 50%, #150e4b 0%, var(--bg-color-1) 70%, #03020c 100%);
    
    /* Glow Colors */
    --cyan-glow: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.3);
    --blue-glow: #1a75ff;
    --blue-dim: rgba(26, 117, 255, 0.3);
    --gold-glow: #e5a93b;
    --gold-dim: rgba(229, 169, 59, 0.3);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b5b1db;
    --text-gold: #ffd700;
    --text-gold-light: #f3c267;
    --text-cyan: #5ef1ff;
    
    /* Cards */
    --card-bg: rgba(13, 9, 39, 0.7);
    --card-border: 1px solid rgba(0, 229, 255, 0.15);
    --card-border-gold: 1px solid rgba(229, 169, 59, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --card-radius: 16px;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   SANDBOXED BASE STYLES & RESETS
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #060417; /* Same as --bg-color-1 to prevent white flash/gaps */
    overflow-x: hidden;
}

.itgem-landing-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.itgem-landing-wrapper {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-gradient);
    background-color: var(--bg-color-1);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.itgem-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   UTILITIES & DECORATIONS
   ========================================================================== */
.glow-text {
    color: var(--text-cyan);
    text-shadow: 0 0 15px var(--cyan-dim), 0 0 30px rgba(0, 229, 255, 0.1);
}

.gold-text {
    color: var(--text-gold-light);
    text-shadow: 0 0 15px var(--gold-dim);
}

/* Custom scrollbar scoped to the landing page */
.itgem-landing-wrapper ::-webkit-scrollbar {
    width: 8px;
}

.itgem-landing-wrapper ::-webkit-scrollbar-track {
    background: var(--bg-color-1);
}

.itgem-landing-wrapper ::-webkit-scrollbar-thumb {
    background: #1e164d;
    border-radius: 4px;
}

.itgem-landing-wrapper ::-webkit-scrollbar-thumb:hover {
    background: var(--blue-glow);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.itgem-header {
    width: 100%;
    padding: 40px 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.header-logo {
    max-width: 90px !important;
    height: 52px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.15)) !important;
    transition: all 0.3s ease !important;
}

.header-logo:hover {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 0 12px var(--cyan-glow)) !important;
}

.header-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.logo-main-text {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 0.95;
    margin-bottom: 2px;
}

.gradient-m {
    background: linear-gradient(135deg, #a833ff, #3a86ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo-sub-text {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.25;
    opacity: 0.95;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 30px 0 50px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Neon brain as floating background graphic on the right */
.brain-bg-watermark {
    position: absolute;
    right: -80px;
    top: 20px;
    width: 440px !important;
    height: auto !important;
    opacity: 0.28 !important;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.15));
    animation: float-brain 6s ease-in-out infinite;
}

.hero-pill {
    border: 1px solid var(--text-gold);
    color: var(--text-gold);
    background: rgba(255, 215, 0, 0.05);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.hero-h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    max-width: 900px;
    margin-bottom: 12px;
}

.glow-gradient-text {
    background: linear-gradient(90deg, #5ef1ff 0%, #3a86ff 50%, #a833ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 850px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 780px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ==========================================================================
   FOUR CARDS GRID
   ========================================================================== */
.cards-section {
    margin-bottom: 40px;
}

.cards-grid-four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.glass-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 12px 40px 0 rgba(0, 229, 255, 0.08), var(--card-shadow);
}

/* Glowing overlay behind icons */
.glass-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(229, 169, 59, 0.08) 0%, rgba(229, 169, 59, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--text-gold-light);
    margin-bottom: 18px;
    filter: drop-shadow(0 0 8px rgba(243, 194, 103, 0.25));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.glass-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-gold-light);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   MIDDLE TWO-COLUMN SECTION
   ========================================================================== */
.middle-section {
    margin-bottom: 40px;
}

.middle-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 25px;
}

/* Left Side: ¿Qué incluye? */
.inclusions-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inclusions-card .middle-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.inclusions-card .middle-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--text-cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}

.inclusions-list {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.inclusion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none !important;
    list-style-type: none !important;
}

.inclusion-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Badges Specific Coloring */
.badge-purple {
    background: rgba(168, 51, 255, 0.15);
    border: 1px solid #a833ff;
    color: #d499ff;
    box-shadow: 0 0 10px rgba(168, 51, 255, 0.15);
}

.badge-blue {
    background: rgba(58, 134, 255, 0.15);
    border: 1px solid #3a86ff;
    color: #a2c4ff;
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.15);
}

.badge-pink {
    background: rgba(255, 0, 110, 0.15);
    border: 1px solid #ff006e;
    color: #ff99c8;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.15);
}

.badge-gold {
    background: rgba(229, 169, 59, 0.15);
    border: 1px solid #e5a93b;
    color: #f5d393;
    box-shadow: 0 0 10px rgba(229, 169, 59, 0.15);
}

.inclusion-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

/* Right Side: Ideal Para */
.ideal-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.ideal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-cyan);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ideal-illustration {
    width: 140px;
    height: auto;
    color: var(--text-cyan);
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.25));
    margin-bottom: 30px;
    animation: pulse-illustration 4s ease-in-out infinite;
}

.ideal-pill {
    border: 1px solid var(--text-gold);
    color: var(--text-gold);
    background: rgba(255, 215, 0, 0.03);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    max-width: 320px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.05);
}

/* ==========================================================================
   CTA FOOTER BAR
   ========================================================================== */
.cta-section {
    margin-bottom: 50px;
    width: 100%;
}

.cta-bar-card {
    background: linear-gradient(135deg, rgba(16, 12, 48, 0.85) 0%, rgba(26, 17, 78, 0.85) 100%);
    border: 1px solid rgba(229, 169, 59, 0.35);
    border-radius: var(--card-radius);
    box-shadow: 0 0 30px rgba(229, 169, 59, 0.06), var(--card-shadow);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Top glowing line on CTA card */
.cta-bar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-gold), transparent);
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.rocket-icon-outer {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(168, 51, 255, 0.1);
    border: 1px solid rgba(168, 51, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d499ff;
    box-shadow: 0 0 20px rgba(168, 51, 255, 0.2);
    animation: pulse-glow-purple 5s ease-in-out infinite;
}

.rocket-icon {
    width: 26px;
    height: 26px;
}

.cta-text-group {
    display: flex;
    flex-direction: column;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Premium Golden Button as requested */
.btn-more-info {
    background: linear-gradient(135deg, #ffd700 0%, #e5a93b 100%) !important;
    color: #060417 !important;
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    padding: 15px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(229, 169, 59, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
}

.btn-more-info:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(229, 169, 59, 0.5) !important;
    background: linear-gradient(135deg, #ffe033 0%, #f7b731 100%) !important;
}

.btn-more-info:active {
    transform: translateY(0) !important;
}

/* Cupos limitados subtext with gold lines */
.cupos-text {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gold-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.cupos-text::before,
.cupos-text::after {
    content: '';
    height: 1px;
    width: 25px;
    background: rgba(243, 194, 103, 0.35);
}

/* ==========================================================================
   BOTTOM FOOTER
   ========================================================================== */
.itgem-footer {
    width: 100%;
    padding: 30px 0 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.1)) !important;
    opacity: 0.95 !important;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon-link {
    color: #706b9b;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link:hover {
    color: var(--text-cyan);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.website-link {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.website-link:hover {
    color: var(--text-cyan);
    text-shadow: 0 0 10px var(--cyan-dim);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float-brain {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-illustration {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.2));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.35));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.2));
    }
}

@keyframes pulse-glow-purple {
    0% {
        box-shadow: 0 0 15px rgba(168, 51, 255, 0.15);
        border-color: rgba(168, 51, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 51, 255, 0.35);
        border-color: rgba(168, 51, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 15px rgba(168, 51, 255, 0.15);
        border-color: rgba(168, 51, 255, 0.3);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile and Tablet Optimization)
   ========================================================================== */
@media (max-width: 1080px) {
    .brain-bg-watermark {
        width: 320px !important;
        right: -40px;
        top: 80px;
        opacity: 0.15 !important;
    }

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

    .hero-h2 {
        font-size: 1.45rem;
    }

    .middle-grid-two {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-bar-card {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px;
    }

    .cta-left {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .itgem-header {
        padding: 30px 0 15px 0;
    }

    .header-logo {
        max-width: 200px !important;
    }

    .brain-bg-watermark {
        display: none !important; /* Hide on mobile to keep layout clean */
    }

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

    .hero-h2 {
        font-size: 1.15rem;
    }

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

    .glass-card {
        padding: 24px 20px;
    }

    .inclusions-card, .ideal-card {
        padding: 30px 20px;
    }

    .inclusions-card .middle-title {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .inclusion-text {
        font-size: 0.95rem;
    }

    .btn-more-info {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
    }

    .itgem-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 40px;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
}
