/* ==========================================
   1. VARIABLES Y PALETA CORPORATIVA NOVASTRA
   ========================================== */
:root {
    --color-indigo: #1A5276;
    --color-steel: #2980B9;
    --color-maya: #85C1E9;
    --color-celadon: #8FCB9B;
    --color-beige: #DADCBB;

    /* Asignación de temas */
    --bg-dark: var(--color-indigo);
    --bg-card: rgba(41, 128, 185, 0.15); /* Traslúcido basado en azul medio */
    --text-main: var(--color-beige);
    --text-muted: var(--color-maya);
    --accent: var(--color-celadon); 
    --accent-hover: #DADCBB;
    --transition: all 0.3s ease;
}

/* ==========================================
   2. RESET Y ESTILOS GLOBALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

/* ==========================================
   3. NAVEGACIÓN Y CABECERA
   ========================================== */
header {
    background-color: rgba(26, 82, 118, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-steel);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--accent);
}

.btn-nav {
    background-color: var(--color-steel);
    color: var(--color-beige) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700 !important;
}

.btn-nav:hover {
    background-color: var(--color-maya);
    color: #111 !important;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: var(--transition);
}

/* ==========================================
   4. SECCIÓN HERO (INICIO)
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, var(--color-steel) 0%, var(--color-indigo) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-beige);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-maya);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: var(--color-celadon);
    color: #111;
}

.btn.primary:hover {
    background-color: var(--color-beige);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid var(--color-maya);
    color: var(--color-maya);
}

.btn.secondary:hover {
    border-color: var(--color-beige);
    color: var(--color-beige);
    transform: translateY(-2px);
}

/* ==========================================
   5. SECCIÓN SERVICIOS
   ========================================== */
.services {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-celadon);
    margin: 10px auto;
    border-radius: 2px;
}

.cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    flex: 1;
    min-width: 300px;
    border: 1px solid var(--color-steel);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-celadon);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--color-celadon);
    font-weight: 700;
}

/* ==========================================
   6. SECCIÓN TELEMETRÍA (GRÁFICA JS)
   ========================================== */
.telemetry-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(41, 128, 185, 0.05);
    border-radius: 12px;
    border: 1px solid var(--color-steel);
    margin-bottom: 4rem;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    background-color: rgba(26, 82, 118, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-steel);
}

/* ==========================================
   7. SECCIÓN DE SOPORTE (TICKETS JS)
   ========================================== */
.support-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.support-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.ticket-form, .tickets-panel {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-steel);
}

.ticket-form h3, .tickets-panel h3 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-steel);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--color-indigo);
    border: 1px solid var(--color-steel);
    color: var(--color-beige);
    border-radius: 6px;
    font-family: inherit;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

/* Lista de Tickets Dinámicos */
.tickets-list {
    list-style: none;
    max-height: 350px;
    overflow-y: auto;
}

.ticket-item {
    background-color: rgba(26, 82, 118, 0.3);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--color-celadon);
    margin-bottom: 1rem;
    position: relative;
}

.ticket-header {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: var(--color-maya);
}

.user-tag { color: var(--color-beige); font-style: italic; }
.date-tag { font-size: 0.8rem; opacity: 0.7; }
.ticket-desc { font-size: 0.95rem; margin-bottom: 0.8rem; }

.btn-delete-ticket {
    background-color: transparent;
    border: 1px solid var(--color-celadon);
    color: var(--color-celadon);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete-ticket:hover {
    background-color: var(--color-celadon);
    color: #111;
}

.no-tickets {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================
   8. DISEÑO MÓVIL (RESPONSIVE)
   ========================================== */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }
    .nav-links.nav-active {
        transform: translateX(0%);
    }
    .burger {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .support-container {
        flex-direction: column;
    }
}