/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --max-width: 1000px;
    --bg-void: #000000;
    --bg-app: #1a1a1a;
    --bg-card: #2d2d2d;
    --bg-input: #262626;
    --border: #404040;
    --text-main: #ececec;
    --text-muted: #9b9b9b;
    --accent: #5b9aff;
    --accent-hover: #4a80d4;
    --success: #6bb16b;
    --danger: #ff6b6b;
    --gold: #f4d858;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto Condensed', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    font-family: var(--font-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-app);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. NAVEGACIÓN Y HEADER
   ========================================= */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(26, 26, 26, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-links { display: flex; gap: 20px; }
.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--accent); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(to top, var(--bg-app), transparent);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   4. GRID SYSTEM
   ========================================= */
.services-section { padding: 40px 20px; flex: 1; }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .nav-links { display: none; }
}
/* Forzar el ocultamiento y la posición del modal */
.tm-overlay {
    display: none !important; /* Oculto por defecto */
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.tm-overlay.active {
    display: flex !important;
}

.tm-content {
    background: #2d2d2d;
    padding: 0;
    border: 1px solid #444;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}
/* Estilos Estratégicos Nuevos */
.pilar-card {
    border-top: 5px solid var(--accent);
    padding: 30px;
    background: var(--bg-card);
    border-radius: 8px;
}
.rebel-section {
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 100%);
    border: 2px dashed var(--accent);
    padding: 40px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}
.badge-tech {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}
