body { font-family: Arial, sans-serif; margin:0; background:#f9f9f9; }
header { background:#004080; color:white; padding:20px; text-align:center; }
nav ul { list-style:none; background:#eaeaea; padding:10px; text-align:center; margin:0; }
nav ul li { display:inline-block; margin:0 15px; }
nav ul li a { text-decoration:none; color:#004080; font-weight:bold; }
.dashboard { padding:40px; }
.card { background:white; padding:20px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.2); margin:10px; display:inline-block; }
.numeros { display:flex; justify-content:space-around; margin:40px 0; }
.stat { font-size:18px; font-weight:bold; color:#004080; }


/* Encabezado */
header {
    background-color: #004080; /* Azul corporativo */
    color: white;
    padding: 12px 0; /* Reducido de 25px a 12px */
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Menor separación entre logo y texto */
}

.logo {
    height: 60px; /* Reducido de 90px a 60px */
}

.company-info h1 {
    margin: 0;
    font-size: 22px; /* Más pequeño que 28px */
}

.slogan {
    margin: 0;
    font-style: italic;
    font-size: 12px; /* Más discreto */
}
/* Footer con colores tipo videojuegos */
footer {
    background: linear-gradient(100deg, #FFD700, #004080, #FF0000);
    background-size: 400% 400%;
    animation: footerGradient 10s ease infinite;
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: bold;
}

/* Animación del gradiente */
@keyframes footerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.video-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-top: 20px;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFD700; /* dorado estilo videojuegos */
    text-shadow: 2px 2px 5px #000;
    background: rgba(0,0,0,0.3); /* ligera capa oscura para contraste */
}

.video-overlay h2 {
    font-size: 28px;
    margin: 0;
}

.video-overlay p {
    font-size: 16px;
    margin: 5px 0 0;
}


.ambitos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 16px;
}
.ambitos .card { margin: 0; }
.dashboard > section + section { margin-top: 32px; }
.logo-container, .numeros { flex-wrap: wrap; }
.numeros { gap: 16px; }
nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
nav ul li { margin: 0; }
.video-overlay {
    pointer-events: none;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5), transparent);
}
#contacto a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
    header { padding: 12px; }
    .dashboard { padding: 20px; }
    .video-section { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    footer { animation: none; background: #004080; }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    overflow-wrap: anywhere;
}

.product-card h3 { margin: 0; }
.product-card a {
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 6px;
    background: #004080;
    color: white;
    font-weight: bold;
}
