/* --- VARIABLES CORPORATIVAS --- */
:root {
    --bg-color: #0b1120; /* Azul marino muy oscuro y serio */
    --card-bg: #111827;
    --card-border: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    /* Colores de marca sutiles (no neón) */
    --primary: #0284c7; /* Azul corporativo */
    --secondary: #6366f1; /* Índigo elegante */
    --tertiary: #059669; /* Verde esmeralda oscuro */
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* --- CABECERA --- */
header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.header-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
    display: flex;
    justify-content: center;
    padding: 0 2rem 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

/* --- TARJETAS ELEGANTES --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Bordes de color en hover */
.card.aerial:hover { border-color: var(--primary); }
.card.g3d:hover { border-color: var(--secondary); }
.card.coresys:hover { border-color: var(--tertiary); }

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.card.aerial:hover .card-icon { color: var(--primary); }
.card.g3d:hover .card-icon { color: var(--secondary); }
.card.coresys:hover .card-icon { color: var(--tertiary); }

.card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

/* --- BOTONES MINIMALISTAS --- */
.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card.aerial .btn { background: #e0f2fe; color: #0369a1; }
.card.aerial .btn:hover { background: var(--primary); color: #fff; }

.card.g3d .btn { background: #e0e7ff; color: #4338ca; }
.card.g3d .btn:hover { background: var(--secondary); color: #fff; }

.card.coresys .btn { background: #d1fae5; color: #047857; }
.card.coresys .btn:hover { background: var(--tertiary); color: #fff; }

/* --- SECCIÓN SHOWCASE --- */
.showcase {
    max-width: 1200px;
    margin: 2rem auto 6rem;
    padding: 0 2rem;
    width: 100%;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
    border-top: 1px solid var(--card-border);
    padding-top: 4rem;
}

.showcase-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.showcase-header p {
    color: var(--text-muted);
}

/* Pestañas */
.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -1px;
}

.tab-btn:hover { color: #fff; }

.tab-btn.active[data-target="panel-aerial"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn.active[data-target="panel-g3d"] { color: var(--secondary); border-bottom-color: var(--secondary); }
.tab-btn.active[data-target="panel-coresys"] { color: var(--tertiary); border-bottom-color: var(--tertiary); }

/* Contenido de Pestañas */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active { display: block; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    padding: 1.5rem;
    border-left: 1px solid var(--card-border);
    transition: var(--transition);
}

.service-item:hover {
    border-left-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.service-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-item p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
}

/* Responsividad */
@media (max-width: 900px) {
    .grid, .service-grid { grid-template-columns: 1fr; }
    header h1 { font-size: 2.5rem; }
}

/* --- SECCIÓN ACADEMIA / CLASES PERSONALIZADAS --- */
.academy {
    background-color: #0f172a; /* Un tono ligeramente diferente para resaltar la sección */
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 6rem 2rem;
    width: 100%;
}

.academy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.academy-badge {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(99, 102, 241, 0.05);
}

.academy-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.academy-info p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.academy-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.academy-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.academy-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.academy-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.academy-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

.academy-modules {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--text-muted);
    transform: translateX(-5px);
}

.module-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsividad para la Academia */
@media (max-width: 900px) {
    .academy-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}