/* ================ BASE STYLES ================ */
:root {
    --color-bg: #0e0e0e;
    --color-text: #dcdcdc;
    --color-text-light: #ffffff;
    --color-accent: #ff4d4d;
    --color-accent-dark: #cc3d3d;
    --color-hover: #b3b3b3;
    --color-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Orbitron', sans-serif;
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    text-align: center;
    overflow-x: hidden;
}

/* ================ TYPOGRAPHY ================ */
h1, h2, h3 {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-light);
}

.headline {
    font-size: 2.625rem;
    font-weight: bold;
}

.sub-headline {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-light);
}

/* ================ LAYOUT COMPONENTS ================ */
.header {
    padding: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    padding: 10px 20px;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.3125rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    margin: 0 0.9375rem;
}

/* ================ PAGE SECTIONS ================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    color: var(--color-text-light);
    position: relative;
    z-index: 10;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formation-container {
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.service-label {
    max-width: 56.25rem;
    margin: 0 auto 1.25rem;
    background: rgb(44, 44, 44);
    padding: 1.25rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
    border-left: 0.3125rem solid var(--color-accent);
}

/* ================ INTERACTIVE ELEMENTS ================ */
.cyber-btn {
    padding: 0.75rem 1.75rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    letter-spacing: 0.1875rem;
    color: var(--color-text-light);
    text-decoration: none;
    background: transparent;
    border: 0.0625rem solid var(--color-accent);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition-base);
}

.cyber-btn:hover {
    color: #000;
    background: var(--color-accent);
    box-shadow: 0 0 0.625rem var(--color-accent),
                0 0 2.5rem var(--color-accent);
}

/* ================ TYPING EFFECT ================ */
#typing-text {
    color: var(--color-accent-dark);
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-weight: normal;
    min-height: 4.5vw;
    display: inline-block;
}

/* ================ SOCIAL LINKS ================ */
.social-links {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: 0.9375rem;
}

.social-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition-base);
}

/* ================ UTILITY CLASSES ================ */
hr {
    width: 30%;
    border: 0.0625rem solid var(--color-border);
    margin: 0.3125rem auto;
}

/* ================ MEDIA QUERIES ================ */
@media (max-width: 48rem) {
    .nav-links {
        gap: 0.625rem;
    }
    
    .header {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .nav-links {
        margin-top: 0.9375rem;
    }
    
    .headline {
        font-size: 2rem;
    }
}

@media (max-width: 30rem) {
    .service-label {
        padding: 1rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .sub-headline {
        font-size: 1rem;
    }
}

/* ================ CONTACT label ================ */
form {
    max-width: 500px;
    margin: auto;
    font-family: Arial, sans-serif;
}
table {
    width: 100%;
    border-spacing: 10px;
}
input, textarea {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button:hover {
    background-color: #0056b3;
}



/* ================ Side Panel ================ */

          /* Botón para abrir la barra */
          .open-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            background: #222;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 18px;
            border-radius: 5px;
            z-index: 1001;
        }

        .open-btn:hover {
            background: #444;
        }

        /* Barra lateral */
        .sidebar {
            width: 250px;
            height: 100vh;
            background: #222;
            color: white;
            position: fixed;
            top: 0;
            left: -250px;
            /* Oculta la barra inicialmente */
            transition: left 0.3s ease-in-out;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
            z-index: 10;
        }

        /* Botón de cerrar */
        .close-btn {
            background: none;
            color: white;
            border: none;
            font-size: 20px;
            cursor: pointer;
            align-self: flex-end;
            margin-bottom: 10px;
        }

        .close-btn:hover {
            color: red;
        }

        /* Imagen dentro de la barra */
        .sidebar img {
            width: 100px;
            height: auto;
            border-radius: 50%;
            margin-bottom: 15px;
        }

        /* Enlaces de contacto */
        .sidebar a {
            color: white;
            text-decoration: none;
            margin: 5px 0;
            font-weight: bold;
        }

        .sidebar a:hover {
            color: #1db954;
        }


            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }


/* Animation for form submission */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.contact-form.submitting {
    animation: pulse 1.5s infinite;
}