/* HERO - VANGUARDIA & TECHNOLOGY */
.vanguard-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    overflow: hidden;
}

/* Background with Parallax Feel */
/* Background - Pure Dark Texture Masterpiece */
.vanguard-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    /* Deepest Black */
    background-image:
        radial-gradient(circle at 50% 50%, #111 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    opacity: 1;
    z-index: 0;
}

/* Texture Grain Overlay */
.vanguard-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes breatheBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.vanguard-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    /* Shift up slightly to avoid overlap with cards */
    transform: translateY(-30px);
    margin: 0 auto;
    /* Ensure centering */
}

/* 
   Unique Typography - "Modern Clean Impact" Style 
   Moving away from serif/decorative to Pure Modernism 
*/
.vanguard-title {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Extra Bold */
    font-style: normal;
    font-size: 5rem;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Tighter for a compact block feel */

    /* Clean Shadow */
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    opacity: 0;
    animation: revealText 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
    margin-bottom: 20px;
    padding: 0;
}

/* The Highlight Word "TECNOLOGIA" */
.vanguard-highlight {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;

    /* Gradient Text */
    background: var(--brand-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    position: relative;
    /* No weird animations, just clean impact */
}

/* Subtitle */
.vanguard-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-top: 30px;
    letter-spacing: 4px;
    /* Moderate spacing */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-transform: uppercase;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;

    border: none;
    padding-top: 0;
}

/* Responsive adjustments to guarantee visibility on smaller screens */
@media (max-width: 1200px) {
    .vanguard-title {
        font-size: 4rem;
    }

    .vanguard-highlight {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .vanguard-title {
        font-size: 2.5rem;
        letter-spacing: 0px;
    }

    .vanguard-highlight {
        font-size: 3rem;
    }

    .vanguard-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}

/* Animations */
@keyframes revealText {
    0% {
        /* Impact zoom out effect */
        opacity: 0;
        filter: blur(20px);
    }

    100% {
        font-size: 5vw;
        opacity: 1;
        filter: blur(0);
    }
}

/* --- INK DROP ANIMATIONS (CYAN) --- */
.ink-drops-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.ink-drop {
    position: absolute;
    background: radial-gradient(circle, rgba(86, 186, 231, 0.8) 0%, rgba(15, 30, 92, 0.2) 60%, transparent 80%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(10px);
}

.ink-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 15%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.8) 0%, rgba(15, 30, 92, 0.2) 60%, transparent 80%);
    /* Cyan */
    animation: inkDrop 6s infinite ease-out 0s;
}

.ink-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    background: radial-gradient(circle, rgba(255, 0, 230, 0.8) 0%, rgba(15, 30, 92, 0.2) 60%, transparent 80%);
    /* Magenta */
    animation: inkDrop 7s infinite ease-out 2s;
}

.ink-3 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 60%;
    background: radial-gradient(circle, rgba(255, 234, 0, 0.8) 0%, rgba(15, 30, 92, 0.2) 60%, transparent 80%);
    /* Yellow */
    animation: inkDrop 9s infinite ease-out 1s;
}

@keyframes inkDrop {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* --- SCROLL MOUSE INDICATOR --- */
.scroll-indicator {
    position: relative;
    margin-top: 50px;
    /* Directly below text with spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
    cursor: pointer;
    z-index: 50;
    width: 100%;
    justify-content: center;
}

.mouse {
    width: 46px;
    /* Larger visibility */
    height: 76px;
    /* Larger visibility */
    border: 3px solid #ffffff;
    /* Pure white as requested */
    border-radius: 40px;
    position: relative;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    /* White glow */
}

.wheel {
    width: 6px;
    height: 12px;
    background: #ffffff;
    border-radius: 3px;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 15px;
        opacity: 1;
    }

    100% {
        top: 50px;
        /* Longer travel for larger mouse */
        opacity: 0;
    }
}

.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    margin: -5px auto 0;
    animation: arrowScroll 2s infinite;
}

.arrow-scroll span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow-scroll span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes arrowScroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* HERO CANVAS - PARTICLES */
#fluid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Above bg image, below text */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.8;
}

/* Enhancing the Hero Atmosphere */
.vanguard-hero::after {
    /* Vignette for cinematic focus */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, #050510 100%);
    z-index: 6;
    pointer-events: none;
}

/* HERO CARDS - The "Never Seen Before" UX Element 
   TRANSFORMED INTO HORIZONTAL ACCORDION
*/
/* HERO CARDS - THE "GLASS & NEON" UX MASTERPIECE
   Features: Deep Glassmorphism, Dynamic Gradients, Shine Effects
*/
/* HERO SYMBOLS - Minimalist Circular Design */
.vanguard-cards-container {
    position: absolute;
    bottom: 50px;
    /* Lifted up slightly */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    /* More spacing for clean look */
    z-index: 20;
    width: auto;
    /* Shrink to fit content */
    max-width: 90%;
    height: auto;
    justify-content: center;
    padding-bottom: 20px;
}

.v-card {
    position: relative;
    flex: 0 0 auto;
    /* No flex grow/shrink */
    width: 140px;
    /* Fixed width for alignment */
    height: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.4s ease;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.v-card:hover {
    transform: translateY(-10px);
    background: transparent;
    box-shadow: none;
    border: none;
    flex: 0 0 auto;
}

/* Remove unused elements */
.v-card-bg,
.v-card-border,
.v-card::before {
    display: none;
}

.v-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Circular Icon Container - THE "REACTOR CORE" DESIGN */
.v-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    width: 100px;
    height: 100px;
    border-radius: 50%;

    /* Glass Base */
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    z-index: 10;

    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 1. The Spinning Energy Ring (Pseudo-element) */
.v-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--core-color);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--core-color);
    border-left-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    transition: all 0.5s ease;
    animation: idleSpin 10s linear infinite;
    z-index: -1;
}

@keyframes idleSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. The Inner Plasma Core (Pseudo-element) */
.v-icon::after {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--core-color) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(10px);
    transition: all 0.5s ease;
    z-index: -1;
    transform: scale(0.8);
}

/* 3. The Icon Itself */
.v-icon i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* --- HOVER STATES: ACTIVATION --- */

/* Expand and brighten the container */
.v-card:hover .v-icon {
    transform: translateY(-10px) scale(1.1);
    background: rgba(10, 15, 30, 0.8);
    border-color: var(--core-color);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 30px var(--core-glow),
        inset 0 0 20px var(--core-glow);
}

/* Accelerate and expand the ring */
.v-card:hover .v-icon::before {
    inset: -12px;
    border-width: 2px;
    border-color: var(--core-color);
    border-left-color: transparent;
    border-right-color: transparent;
    opacity: 1;
    animation: activeSpin 1.5s linear infinite;
    box-shadow: 0 0 15px var(--core-glow);
}

@keyframes activeSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Intensify the plasma core */
.v-card:hover .v-icon::after {
    opacity: 0.6;
    transform: scale(1.1);
    filter: blur(15px);
    background: radial-gradient(circle at center, var(--core-color) 0%, transparent 60%);
}

/* Pop the icon */
.v-card:hover .v-icon i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px #fff);
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

/* Title below the circle */
.v-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.v-card:hover .v-card-title {
    color: #fff;
    text-shadow: 0 0 15px var(--hover-glow-color, rgba(255, 255, 255, 0.5));
}

/* --- COLOR THEMES (Reactor Cores) --- */

/* 1. CYAN (Etiquetas) */
.v-card:nth-child(1) {
    --core-color: #00E5FF;
    --core-glow: rgba(0, 229, 255, 0.6);
}

/* 2. MAGENTA (Digital) */
.v-card:nth-child(2) {
    --core-color: #FF00E6;
    --core-glow: rgba(255, 0, 230, 0.6);
}

/* 3. YELLOW (Laser) */
.v-card:nth-child(3) {
    --core-color: #FFEA00;
    --core-glow: rgba(255, 234, 0, 0.6);
}

/* 4. OFFSET (White/Silver) */
.v-card:nth-child(4) {
    --core-color: #ffffff;
    --core-glow: rgba(255, 255, 255, 0.8);
}

/* TEXT HOVER SYNC */
.v-card:hover .v-card-title {
    color: var(--core-color);
    text-shadow: 0 0 15px var(--core-glow);
    transform: translateY(-5px);
}


/* RESPONSIVE */
@media (max-width: 900px) {

    /* HERO: SWITCH TO COLUMN STACK */
    .vanguard-hero {
        flex-direction: column;
        justify-content: center;
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        /* Clear header */
        padding-bottom: 50px;
    }

    .vanguard-content {
        transform: none;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    /* CARDS: FLOW NATURALLY BELOW CONTENT */
    .vanguard-cards-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        width: 100%;
        padding: 0 10px;
    }

    .v-card {
        min-width: 40%;
        width: 40%;
        height: auto;
        flex: 0 0 auto !important;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .v-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .v-card-title {
        opacity: 1;
        transform: none;
        font-size: 0.8rem;
        margin-top: 5px;
        position: relative;
    }
}

@media (max-width: 480px) {

    /* TYPOGRAPHY & CENTERING */
    .vanguard-title {
        font-size: 2.8rem !important;
        /* Adjusted to fit width without breaking */
        line-height: 1.1;
        text-align: center;
        width: 100%;
        margin: 0 auto 15px auto;
        display: block;
    }

    .vanguard-highlight {
        font-size: 3.2rem !important;
        display: block;
        /* Force own line */
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .vanguard-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-top: 10px;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* CENTER SCROLL MOUSE */
    .scroll-indicator {
        margin: 20px auto 30px auto;
        align-self: center;
        transform: scale(1.1);
    }

    /* CARDS VISIBILITY */
    .vanguard-cards-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-bottom: 80px;
        /* Ensure space at bottom */
    }
}