/* --- Variables Globales --- */
:root {
    --bg-color: #0a0a0a;      /* Negro profundo */
    --text-primary: #ffffff;  /* Blanco puro */
    --text-secondary: #a0a0a0; /* Gris claro para párrafos */
    --accent-red: #FF003C;    /* Rojo neón vibrante */
    --font-stack: 'Space Grotesk', sans-serif; /* Fuente moderna y tecnológica */
}

/* --- Reset Básico --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

/* --- Header Simple --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    /* Fondo semi-transparente para que se integre */
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: fixed; /* Fijo en la parte superior */
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 0, 60, 0.1);
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--accent-red); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-weight: 500; transition: 0.3s; }
.nav-links a:hover, .accent-link { color: var(--accent-red); }

/* --- SECCIÓN HERO DIVIDIDA (El núcleo del diseño) --- */
.hero-split {
    min-height: 100vh; /* Ocupa toda la pantalla */
    display: grid;
    /* Divide la pantalla: 45% izquierda, 55% derecha */
    grid-template-columns: 0.8fr 1fr; 
    align-items: center;
    padding: 0 5%;
    padding-top: 80px; /* Espacio para el header fijo */
}

/* Lado Izquierdo: Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El Avatar de Código */
.avatar-container {
    width: 350px;
    height: 350px;
    background: #111; /* Un poco más claro que el fondo */
    border-radius: 50%; /* Círculo perfecto */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--accent-red);
    /* EFECTO DE RESPLANDOR ROJO */
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3), inset 0 0 20px rgba(255, 0, 60, 0.2);
    position: relative;
}

.code-symbol {
    font-size: 5rem;
    font-weight: bold;
    color: var(--accent-red);
    /* Pequeña animación de pulso */
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 20px var(--accent-red); }
}

/* Lado Derecho: Contenido */
.hero-content {
    padding-left: 3rem;
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.dot { color: var(--accent-red); }

h2.typing-text {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    /* Aquí agregaremos la animación de tipeo con JS en el siguiente paso */
    border-right: 2px solid var(--accent-red); /* Cursor temporal */
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
}

/* --- Botones --- */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px; /* Rectángulos redondeados, más técnico */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Botón Principal (Rojo) */
.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(255, 0, 60, 0.3);
}
.btn-primary:hover {
    background-color: #d40032;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 60, 0.5);
}

/* Botones Secundarios (Borde) */
.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(255, 0, 60, 0.05);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Responsive Design (Para celulares) --- */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
        padding-top: 120px;
    }
    .hero-content { padding-left: 0; }
    .avatar-container {
        width: 250px; height: 250px; margin: 0 auto 3rem auto;
    }
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap; /* Botones se apilan si no caben */
    }
    h1 { font-size: 3.5rem; }
}
/* Estilo para el cursor parpadeante */
.cursor {
    color: var(--accent-red);
    font-weight: bold;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Suavizado para el movimiento del avatar */
.avatar-container {
    transition: box-shadow 0.1s ease-out;
}

/* --- SECCIÓN DE PRÁCTICAS --- */
.practicas-section {
    padding: 80px 5%;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--accent-red);
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- GRID DE TARJETAS --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- ESTILO DE LA CARD --- */
.practice-card {
    background: #111; /* Negro ligeramente más claro que el fondo */
    border-radius: 12px;
    overflow: hidden; /* Para que el zoom de la imagen no se salga */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

/* EFECTO ZOOM Y ELEVACIÓN AL PONER EL CURSOR */
.practice-card:hover {
    transform: translateY(-10px); /* Pequeña elevación */
    border-color: var(--accent-red);
    box-shadow: 0 15px 35px rgba(255, 0, 60, 0.2);
}

/* Contenedor de Imagen con Zoom */
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Transición del zoom */
}

/* ZOOM DE LA IMAGEN */
.practice-card:hover .card-image img {
    transform: scale(1.1); /* Efecto de zoom */
}

/* Overlay que aparece al hacer hover */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 60, 0.7); /* Rojo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.practice-card:hover .card-overlay {
    opacity: 1;
}

.view-more {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid white;
    padding: 8px 16px;
}

/* Información de la Card */
.card-info {
    padding: 20px;
}

.card-tag {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
/* Actualización para el Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: rgba(5, 5, 5, 0.95); /* Fondo casi negro sólido */
    backdrop-filter: blur(10px); /* Efecto de cristal esmerilado */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-red); /* Línea roja vibrante */
}

/* Ajuste para que el contenido no se pegue al techo */
main {
    padding-top: 70px; /* Suficiente espacio para que el header no tape nada */
}

.practicas-hero {
    text-align: center;
    margin-bottom: 4rem;
}

/* 1. Corregir el header "volador" */
.navbar {
    background-color: rgba(5, 5, 5, 0.98); /* Fondo sólido para que no sea transparente */
    border-bottom: 2px solid var(--accent-red);
    box-shadow: 0 4px 20px rgba(255, 0, 60, 0.3);
}

/* 2. Empujar el contenido hacia abajo para que el header no lo tape */
.main-content {
    padding-top: 140px; /* Ajusta este valor según el alto de tu header */
}

/* 3. Estilo para los títulos de categoría */
.category-title {
    font-size: 2.2rem;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    border-left: 5px solid var(--accent-red);
    padding-left: 15px;
}

.category-title span {
    color: var(--accent-red);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 4. Diferenciar visualmente la sección de AWOS */
.awos-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#map{
    margin: auto;
    display: block;
    border: 2px solid #7898db;
    border-radius: 15px;
    height: 50vh;
    width: 50%;
}