/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centrado preciso */
}

.logo {
    height: 100px; /* Ajusta según tu logo */
    width: auto;
    margin: 0;
    padding: 0;
    height: 150px;
    padding: 0 20px; /* Espacio horizontal */
    opacity: 0; /* Inicia transparente */
    animation: 
        fadeIn 1.5s ease-in forwards, /* Aparece */
        pulse 2s 1.5s infinite alternate; /* Brillo (inicia después) */
}

.logo-text h1, .logo-text p {
    margin: 0;
}

.logo-img {
    height: 100px; /* Ajusta según necesidad */
    width: auto; /* Mantiene proporciones */
}

/* Estilos generales */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #2c3e50;
    position: relative;
}

.logo-header {
    height: 50px;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Estilos móviles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #2c3e50;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Botón WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn img {
    width: 60px;
    transition: transform 0.3s;
}

.whatsapp-btn img:hover {
    transform: scale(1.1);
}

.hero {
    font-family: 'Montserrat', sans-serif; /* Negrita y legible */
    font-weight: 700;
    background: url('/img/fondo-tecnologia.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh; /* Ocupa el 100% del alto de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative; /* Necesario para efectos overlay */ 
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem; /* 40px aprox */
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para contraste */
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem; /* 20px aprox */
    font-weight: 300;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeIn 1.5s ease-out;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
}

.servicios {
    padding: 50px 20px;
    text-align: center;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .logo-container {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 1rem;
    }
    header {
        flex-direction: column;
    }
    nav {
        margin-left: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    from { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
    to { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)); }
}