/* =========================================
   RESET Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.nombre-empresa {
    font-size: 1.2rem;
    color: #0056b3;
    font-weight: 700;
}

/* Menú de Escritorio */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: 600;
    padding: 10px 15px;
    display: block;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0056b3;
}

/* Submenús Desplegables */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    flex-direction: column;
    gap: 0;
    border-radius: 0 0 5px 5px;
}

nav ul li:hover .submenu {
    display: flex;
}

.submenu li a {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background: #f1f5f9;
    color: #0056b3;
}

/* Ícono Hamburguesa (Oculto en PC) */
.menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: relative;
}

.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.menu-toggle::before {
    top: 0;
    box-shadow: 0 9px 0 #333;
}

.menu-toggle::after {
    bottom: 0;
}

/* =========================================
   SECCIÓN HERO (INICIO)
   ========================================= */
.contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    gap: 40px;
}

.figura1 {
    flex: 1;
}

.figura1 h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.2;
}

.creative {
    color: #0056b3;
}

.figura1 p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #444;
}

.btn, .boton {
    display: inline-block;
    padding: 12px 28px;
    background: #0056b3;
    color: #ffffff;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: none;
}

.btn:hover, .boton:hover {
    background: #003d82;
    transform: translateY(-2px);
}

.figura2 {
    flex: 1;
    text-align: center;
}

.figura2 img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* =========================================
   PRODUCTOS Y SERVICIOS
   ========================================= */
#products-services {
    padding: 80px 5%;
    text-align: center;
    background: #ffffff;
}

.titulo-contenidos h1 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #0056b3;
}

.contenidos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servicio {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.servicio img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.servicio h3 {
    margin-bottom: 15px;
    color: #222;
    font-size: 1.3rem;
}

.servicio p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* =========================================
   SECCIÓN 2 (ARE YOU READY...)
   ========================================= */
#contenido2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
    background: #eef2f5;
    gap: 40px;
    text-align: center;
}

#contenido2 img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.titutec h1 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #222;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 5% 20px;
}

.contenido-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.box-footer h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.box-footer p {
    font-size: 0.9rem;
    margin-top: 15px;
}

.box-footer a {
    display: block;
    margin-bottom: 10px;
    color: #aaa;
    transition: color 0.3s;
}

.box-footer a:hover {
    color: #0056b3;
}

.box-footer .logotipo img {
    width: 80px;
    border-radius: 5px;
}

.box-footer i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #aaa;
    transition: color 0.3s;
}

.box-footer i:hover {
    color: #0056b3;
}

.copy-rigth {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
}

.copy-rigth hr {
    border-color: #333;
    margin-bottom: 15px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE CELULARES)
   ========================================= */
@media (max-width: 768px) {
    /* Activar ícono hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Ocultar y estilizar el menú para móviles */
    nav {
        position: absolute;
        top: 100%;
        left: -100%; /* Oculto fuera de la pantalla */
        width: 100%;
        background: #ffffff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
    }

    /* Clase active (se activa con el onclick de tu HTML) */
    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    nav ul li {
        border-bottom: 1px solid #eee;
    }

    /* Submenús estáticos en móviles */
    .submenu {
        position: static;
        box-shadow: none;
        display: none;
        background: #f8f9fa;
    }
    
    /* Mostrar submenú al pasar el dedo en móviles (o hacer clic) */
    nav ul li:hover .submenu {
        display: flex;
    }

    /* Ajustes de Secciones para móviles */
    .contenedor {
        flex-direction: column;
        text-align: center;
        padding: 50px 5%;
    }

    .figura1 h1 {
        font-size: 2.2rem;
    }

    #contenido2 {
        flex-direction: column;
    }
    
    .fototec img, .foto img {
        width: 100%;
    }
}