/* --- Variables Globales y Reseteo --- */
:root {
    --primary-color: #1c5e92; /* Azul primario */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --text-color: #555;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Para el scroll suave al pulsar links */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #1c5e92;
}

/* --- Barra de Navegación --- */
.navbar {
    background: #fff;
    color: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
}

.navbar .nav-links li {
    margin-left: 1.5rem;
}

.navbar .nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
}

.logo img {
    width: 200px; /* Ajusta este valor según necesites */
    height: auto; /* Mantiene la proporción */
    display: block; /* Elimina espacio extra debajo de la imagen */
}

/* --- Sección Hero --- */
.hero {
   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* 100% del viewport height */

    background-color: #555;
    color: #fff;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero_main {
  background:
    linear-gradient(rgba(0,0,0,0.5),
                    rgba(0,0,0,0.5)),
url(Images/Backgound_oficial.mp4);
}



.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}


.hero_dev {
    background: 
    linear-gradient(rgba(0,0,0,0.75),
                    rgba(0,0,0,0.75)),
url(Images/Inicio_imagen.jpeg);
}

.hero_tele {
     background: 
    linear-gradient(rgba(0,0,0,0.5),
                    rgba(0,0,0,0.5)),
url(Images/Inicio-telecomm.jpeg);
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
}

.hero .subtitulo {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

/* --- Sección Servicios --- */
.services {
    background: var(--light-color);
}

.Nservices {
    width: 200px; /* Ajusta este valor según necesites */
    height: auto; /* Mantiene la proporción */
    display: block; /* Elimina espacio extra debajo de la imagen */
    justify-content: center;
}


.services h2 {
    text-align: center;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    transition: all 0.2s ease-in-out;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: scale(1.07);
    background: #c2c2c2;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card ul {
    list-style: '✓'; /* Viñeta personalizada */
    margin-left: 1.2rem;
    padding-left: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

/* --- Sección Portafolio --- */
.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas */
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item h4 {
    padding: 1rem 1.5rem 0.5rem;
}

.portfolio-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Sección Contacto --- */
.contact {
    background: var(--light-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
}

.contact p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* --- Footer --- */
.footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* --- Diseño Responsivo (para móviles) --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .navbar .nav-links {
        margin-top: 1rem;
    }
    
    .navbar .nav-links li {
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitulo {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}