:root {
    --primary-color: #00f7ff;
    --secondary-color: #f800ff;
    --background-color: #0c001f;
    --text-color: #e0e0e0;
    --card-bg-color: rgba(20, 1, 48, 0.6);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Fondos Animados --- */
@keyframes move-stars {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}
@keyframes move-twinkling {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}
.stars {
    background: #000 url(https://www.script-tutorials.com/demos/360/images/stars.png) repeat top center;
    animation: move-stars 200s linear infinite;
}
.twinkling {
    background: transparent url(https://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
    animation: move-twinkling 200s linear infinite;
    z-index: -1;
}


/* --- Encabezado y Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

/* --- Efecto Glitch --- */
.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    color: var(--primary-color);
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}
.glitch:before, .glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}
.glitch:before {
    left: -2px;
    text-shadow: 1px 0 blue;
    animation: glitch-before 2s infinite linear alternate-reverse;
}
.glitch:after {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: glitch-after 3s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--text-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    display: inline-block;
    background: rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- Contenido Principal y Secciones --- */
main {
    padding: 50px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
}
.section-title h2 span {
    color: var(--secondary-color);
    margin-right: 15px;
}

#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Tarjetas de Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg-color);
    border: 1px solid var(--primary-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--primary-color), 0 0 10px var(--secondary-color) inset;
}

.service-icon {
    margin-bottom: 20px;
}
.service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.service-card:hover .service-icon svg {
    color: var(--secondary-color);
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}


/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--primary-color);
    background: rgba(0,0,0,0.3);
}

/* --- Animaciones y Responsividad --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch { 0%, 100% { transform: translate(0); } 20% { transform: translate(-3px, 3px); } 40% { transform: translate(-3px, -3px); } 60% { transform: translate(3px, 3px); } 80% { transform: translate(3px, -3px); } }
@keyframes glitch-before { 0% { clip: rect(44px, 450px, 56px, 0); } 25% { clip: rect(0, 450px, 0, 0); } 50% { clip: rect(60px, 450px, 80px, 0); } 75% { clip: rect(30px, 450px, 50px, 0); } 100% { clip: rect(90px, 450px, 120px, 0); } }
@keyframes glitch-after { 0% { clip: rect(100px, 450px, 120px, 0); } 25% { clip: rect(30px, 450px, 50px, 0); } 50% { clip: rect(80px, 450px, 100px, 0); } 75% { clip: rect(0, 450px, 0, 0); } 100% { clip: rect(60px, 450px, 80px, 0); } }

@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}
