/* Variables de color - DARK THEME (Mantenidas) */
:root {
    --bg-main: #0f1115;       /* Fondo principal ultra oscuro */
    --bg-secondary: #161920;  /* Fondo secundario para contrastar secciones */
    --card-bg: #1e222b;       /* Fondo de las tarjetas */
    --primary-color: #00d2ff; /* Acento cian neón (estilo CAD) */
    --text-main: #e0e0e0;     /* Texto principal claro */
    --text-muted: #a0a5b1;    /* Texto secundario más apagado */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Utilidad para resaltar texto */
.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Navegación (Mantenida) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2f3a;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   NUEVO HERO SECTION CON FONDO DIFUMINADO
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative; /* Necesario para posicionar el fondo */
    overflow: hidden; /* Para que el desenfoque no se salga */
}

/* Pseudo-elemento para la imagen de fondo desenfocada */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ABAJO: Cambia esta URL por la imagen real de tu impresora/estudio */
    background-image: url('impresion.jpg'); 
    background-size: cover;
    background-position: center;
    
    /* Efecto de desenfoque (puedes subir el px para más borroso) */
    filter: blur(8px); 
    
    /* Escalar un poco para evitar bordes blancos por el desenfoque */
    transform: scale(1.1); 
    
    z-index: 1; /* Capa más baja */
}

/* Capa de superposición oscura para asegurar contraste del texto */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 17, 21, 0.7); /* Ajusta el 0.7 para más/menos oscuridad */
    z-index: 2; /* Capa media */
}

/* Contenido del texto (debe estar sobre el fondo) */
.hero-content {
    position: relative;
    z-index: 3; /* Capa más alta */
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra extra para legibilidad */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    font-weight: 300;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-main);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}
/* ========================================= */

/* Servicios (Mantenido) */
.services {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--bg-secondary);
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid #2a2f3a;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 255, 0.1);
    border-color: #3a4150;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Equipamiento (Mantenido) */
.equipment {
    padding: 5rem 5%;
    background-color: var(--bg-main);
}

.equipment h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.equipment-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.equipment-info {
    flex: 1;
    min-width: 300px;
}

.equipment-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.equipment-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.equipment-info ul {
    list-style: none;
    padding-left: 0;
}

.equipment-info li {
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.equipment-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.equipment-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid #2a2f3a;
}

/* Equipo (Mantenido) */
.team {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--bg-secondary);
}

.team h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.team-subtitle {
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.team-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2a2f3a;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.role {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer y WhatsApp (Mantenido) */
.footer {
    background-color: #0a0c0f;
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid #2a2f3a;
}

.footer h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-muted);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366; 
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-icon {
    font-size: 1.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid #1e222b;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

/* =========================================
   ESTILOS DEL MENÚ HAMBURGUESA
   ========================================= */
.hamburger {
    display: none; /* Oculto en computadoras */
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001; /* Asegura que esté por encima del menú desplegado */
}

.hamburger:hover {
    color: var(--primary-color);
}

/* =========================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 768px) {
    /* Mostrar el botón hamburguesa */
    .hamburger {
        display: block; 
    }

    /* Estilar el menú para que ocupe la pantalla y se esconda a la derecha */
    .nav-links {
        position: fixed; /* Cambiado a fixed para que siga al hacer scroll */
        top: 0;
        right: -100%; /* Oculto completamente a la derecha */
        width: 100%;
        height: 100vh; /* Ocupa toda la altura de la pantalla */
        background-color: rgba(15, 17, 21, 0.98); /* Fondo oscuro sólido */
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out; /* Animación de deslizamiento suave */
        z-index: 999;
    }

    /* Clase que se activará con JavaScript para mostrar el menú */
    .nav-links.active {
        right: 0; 
    }

    /* Ajustar los enlaces dentro del menú móvil */
    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.5rem; /* Letra más grande para tocar fácil en móvil */
        font-weight: 700;
    }

    /* Reducir el tamaño del título principal en móviles */
    .hero h1 {
        font-size: 2.5rem;
    }
}