/* --- Variables y Reset --- */
:root {
    --bg-dark: #0a0a0a;
    --text-main: #e0e0e0;
    --tech-yellow: #ffca28; /* El amarillo de tu logo */
    --tech-yellow-glow: rgba(255, 202, 40, 0.3);
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-tech: 'Fira Code', monospace;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-shadow: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden; /* Evita scrollbars si no son necesarios */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Fondo de Partículas --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Detrás de todo */
}

/* --- Panel de Vidrio (Glassmorphism) --- */
.glass-panel {
    position: relative;
    z-index: 10; /* Delante de las partículas */
    /*background: var(--glass-bg);*/
    backdrop-filter: blur(12px); /* El efecto de desenfoque */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.03);
    text-align: center;
}

/* --- Header y Logo (Tu diseño) --- */
.logo-container {
    display: flex;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
    gap: 5px;
    height: auto;
    padding: 10px 0;
    font-family: 'Open Sans', sans-serif;
}

.logo-chip {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

.logo-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1.5px; 
    color: #ffffff;
    display: flex;
    line-height: 2.5;
}

.typewriter-text {
    font-family: 'Raleway', sans-serif;
    color: var(--tech-yellow);
    font-weight: 300;
}

.blinking-bracket {
    color: white;
    animation: blink 1s steps(2, start) infinite;
}

.subtitle {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* --- Grid de Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.service-card {
    /* Fondo con transparencia baja para que el blur trabaje */
    background: rgba(255, 255, 255, 0.03); 
    
    /* El toque secreto: Desenfoque de fondo */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Borde sutil que parece el canto de un vidrio */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Efecto cuando pasas el mouse (Hover) */
.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--tech-yellow); /* El amarillo de tu logo ilumina el borde */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 15px var(--tech-yellow-glow);
}

.service-card .icon {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-family: var(--font-tech);
    color: var(--tech-yellow);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
    font-weight: 300;
}

/* --- Botón Cyber --- */
.btn-cyber {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--tech-yellow);
    color: var(--tech-yellow);
    font-family: var(--font-tech);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-cyber:hover {
    background: var(--tech-yellow);
    color: #000;
    box-shadow: 0 0 30px var(--tech-yellow-glow);
}

/* --- Animaciones --- */
@keyframes blink {
    to { visibility: hidden; }
}

/* Responsive simple */
@media (max-width: 600px) {
    .logo-text { font-size: 2rem; }
    .glass-panel { padding: 30px; }
}
/* Media Query para celulares (pantallas de menos de 768px) */
@media (max-width: 768px) {
    .logo-text {
        font-size: 4.5rem; /* Lo subimos de 3.5 a 4.5 solo en móviles */
        letter-spacing: -1px; /* Ajustamos un poco el espaciado para que no se amontone */
    }
    
    .logo-chip {
        width: 80px; /* Opcional: si el texto crece mucho, podrías achicar un poco el chip */
    }

    .logo-container {
        flex-direction: column; /* Opcional: si ves que el chip y el texto no caben juntos, esto los pone uno arriba del otro */
        gap: 10px;
    }
}