/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    /* Fondo oscuro para resaltar los puntos */
    color: #ffffff;
    overflow-x: hidden;
    /* overflow-y: hidden; Removed to allow scrolling */
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    min-height: 100vh;
}

@font-face {
    font-family: 'GreycliffCF-Bold';
    src: url('../assets/Fonts/fonnts.com-Greycliff_CF_Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Estilos del contenedor Hero */
.hero-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    /* Ocupa toda la altura de la ventana */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

/* El canvas se superpone a todo */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenido opcional sobre el canvas (títulos, botones, etc.) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    /* Importante: deja pasar los eventos del mouse al canvas */
}

.hero-content h1 {
    display: none;
    /* Hide default generic h1 if present */
}

.welcome-text {
    text-align: center;
    pointer-events: none;
    z-index: 10;
    margin-bottom: 400px;
    /* Move up significantly */
}

.welcome-title {
    font-family: 'GreycliffCF-Bold', 'Arial', sans-serif;
    font-size: 5rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0px;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.welcome-subtitle {
    font-family: 'GreycliffCF-Bold', 'Arial', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: normal;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Light mode adjustments for text */
body.light-mode .welcome-title {
    color: #1e293b;
    text-shadow: none;
}

body.light-mode .welcome-subtitle {
    color: #64748b;
    text-shadow: none;
}

/* General Content Class for other pages */
.content {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Scroll Layout Styles */
.scroll-spacer {
    height: 150vh;
    /* Scrollable space for connection animation */
    width: 100%;
    pointer-events: none;
}

.banner-section {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Adjust height as needed */
    background-color: #000;
    /* Fallback */
    overflow: hidden;
    z-index: 10;
    /* Above fixed hero */
}

/* Debugging Style for First Banner - per user request */
/* First Banner Special Styling: Cutout & Positioning */
.scroll-spacer+.banner-section {
    /* Variables for the cutout circle */
    --mask-radius: 2050px;
    --mask-distance: -1815px;

    /* Apply the Concave Cutout */
    -webkit-mask-image: radial-gradient(circle at 50% var(--mask-distance), transparent var(--mask-radius), black calc(var(--mask-radius) + 1px));
    mask-image: radial-gradient(circle at 50% var(--mask-distance), transparent var(--mask-radius), black calc(var(--mask-radius) + 1px));
}

/* Adjust content for the first banner to avoid the cutout */
.scroll-spacer+.banner-section .banner-content-wrapper {
    top: 65%;
    /* Move down */
    max-width: 1400px;
    /* More horizontal space */
    width: 95%;
}

.banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-img-blur {
    filter: blur(0px);
    transform: scale(1.2) translateX(250px);
    /* Prevent blurred edges and move content right */
    object-position: center;
}

body.light-mode .banner-section {
    background-color: #fff;
}

/* Banner Layout */
.banner-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    z-index: 5;

    /* Side by side layout */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.banner-card {
    /* Background removed as requested */
    padding: 0;
    flex: 2;
    /* Bigger than button */
    text-align: left;
}

/* Light mode overrides removed for banner-card */

.banner-text {
    font-size: 2.5rem;
    /* Increased size */
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: bold;
    /* Bold for better visibility */
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    /* Shadow for contrast */
}

/* Reusing style for semantically correct h2 title */
.banner-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.banner-description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.banner-description-text p {
    margin-bottom: 10px;
}

body.light-mode .banner-text,
body.light-mode .banner-title,
body.light-mode .banner-description-text {
    color: #fff;
    /* Keep white even in light mode for image overlay */
}

.btn-primary {
    display: inline-block;
    background-color: #0d47a1;
    /* Azul oscuro */
    color: #ffffff;
    font-weight: bold;
    padding: 25px 30px;
    /* Increased vertical padding to make it taller */
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    /* Button container space */
    text-align: center;
    white-space: nowrap;

    /* Ensure it looks good standalone */
    height: fit-content;

    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 71, 161, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 71, 161, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 71, 161, 0);
    }
}

.btn-primary:hover {
    background-color: #1565c0;
    /* Lighter blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .banner-content-wrapper {
        flex-direction: column;
        /* Stack vertically on mobile */
        width: 90%;
        gap: 20px;
    }

    .banner-card {
        text-align: center;
        width: 100%;
    }

    .banner-text {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .banner-img-blur {
        filter: blur(3px);
        mask-image: linear-gradient(to bottom, black, transparent);
        -webkit-mask-image: linear-gradient(to bottom, black, transparent);
        transform: scale(1.1) translateY(0);
    }
}

/* Logo Styles */
.logo-container {
    position: fixed;
    top: 5px;
    left: 20px;
    z-index: 400;
    display: block;
    width: 300px;

    /* Background style similar to navbar */
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    /* Adjust as needed */
    border-radius: 12px;
    border: 1px solid rgba(66, 135, 245, 0.1);
    transition: all 0.3s ease;
}

.logo-container:hover {
    background: rgba(5, 5, 5, 0.8);
    border-color: rgba(66, 135, 245, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Light mode logo container */
body.light-mode .logo-container {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .logo-container:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-container img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo-blue {
    display: none;
    /* Hidden by default in dark mode */
}

/* Light mode handling */
body.light-mode {
    background: #ffffff;
    color: #000000;
}

body.light-mode .hero-container {
    background: #ffffff;
}

body.light-mode .logo-white {
    display: none;
}

body.light-mode .logo-blue {
    display: block;
}

/* Scroll Arrow Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    /* Ensure high enough */
    pointer-events: auto;
    /* Allow clicks */
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-indicator i {
    font-size: 3rem;
    /* Calibre importante */
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
    /* Neon White */
    transition: all 0.3s ease;
    display: block;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    /* Extra thickness visual trick if needed */
}

.scroll-indicator:hover i {
    color: #4287f5;
    text-shadow: 0 0 10px #4287f5, 0 0 20px #4287f5, 0 0 30px #4287f5;
    /* Neon Blue */
    transform: scale(1.1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Light Mode Scroll Indicator */
body.light-mode .scroll-indicator i {
    color: #1e293b;
    /* Dark text for contrast */
    text-shadow: 0 0 10px rgba(30, 41, 59, 0.3), 0 0 20px rgba(30, 41, 59, 0.1);
    /* Subtle dark glow */
    -webkit-text-stroke: 1px rgba(30, 41, 59, 0.8);
}

body.light-mode .scroll-indicator:hover i {
    color: #2563eb;
    /* Bright Blue */
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .logo-container {
        left: 80px;
        /* Space for hamburger menu */
        width: 180px;
        /* Smaller logo */
        top: 16px;
        /* Adjust vertical alignment */
    }

    .welcome-text {
        margin-bottom: 350px;
        /* Move up significantly on mobile */
        padding: 0 20px;
    }

    .welcome-title {
        font-size: 2.5rem;
        /* Smaller title */
    }

    .welcome-subtitle {
        font-size: 0.8rem;
        /* Smaller subtitle */
        letter-spacing: 2px;
    }
}

/* Infinite Slider Carousel */
.infinite-slider-container {
    width: 100%;
    overflow: hidden;
    /* Darker, richer blue gradient for "Premium" look */
    background: linear-gradient(90deg, #020a1a, #051e42, #020a1a);
    padding: 30px 0;
    display: flex;
    position: relative;
    z-index: 20;
    /* Subtle borders */
    border-top: 1px solid rgba(66, 135, 245, 0.2);
    border-bottom: 1px solid rgba(66, 135, 245, 0.2);
    /* Depth shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider-track {
    display: flex;
    align-items: center;
    animation: scroll 100s linear infinite;
    white-space: nowrap;
}

.slide-item {
    font-family: 'GreycliffCF-Bold', 'Arial', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 40px;
    /* Space out items a bit more */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    /* Glow text effect */
    text-shadow: 0 0 15px rgba(66, 135, 245, 0.4);
}

.slide-icon {
    width: 20px;
    /* Adjusted size slightly */
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 40px;
    /* Match padding */
    background-image: url('../assets/img/icon_white.webp');
    display: inline-block;
    opacity: 0.8;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Slider Light Mode */
body.light-mode .infinite-slider-container {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .slide-item {
    color: #0d47a1;
    text-shadow: none;
}

body.light-mode .slide-icon {
    background-image: url('../assets/img/icon_blue.webp');
}

/* Animation Pause Rules - Pause animations when not visible */
.paused .slider-track {
    animation-play-state: paused !important;
}

.paused.scroll-indicator {
    animation-play-state: paused !important;
}

.paused.btn-primary {
    animation-play-state: paused !important;
}