/* Estilos base consistentes */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header - estilo consistente */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 60px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
}

/* Navegación - estilo consistente */
nav {
    background-color: #333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #555;
    transform: translateY(-2px);
}

nav .active {
    background-color: #4CAF50;
    font-weight: bold;
    position: relative;
}

nav .active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
}

/* Contenido principal - estilo futurista */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

main h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
    background: linear-gradient(90deg, #4CAF50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

main h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #3498db);
}

/* Estilos para secciones tecnológicas */
section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    padding: 0;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

section h3 {
    font-size: 1.8rem;
    margin: 0;
    padding: 1.5rem;
    color: white;
    position: relative;
}

section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

section img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

section:hover img {
    transform: scale(1.03);
}

/* Estilos específicos para cada sección */
.tecnologia h3 {
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.seguridad h3 {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.futuro h3 {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

/* Efecto de tarjeta tecnológica */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

section:hover::before {
    opacity: 1;
}

/* Diseño de columnas para pantallas grandes */
@media (min-width: 992px) {
    main {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    section {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    section p {
        flex-grow: 1;
    }
    
    section img {
        height: 200px;
    }
}

/* Footer - estilo consistente con efecto futurista */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #3498db);
}

/* Responsive para móviles */
@media (max-width: 767px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    main h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    section h3 {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    section p {
        padding: 1rem;
        font-size: 1rem;
    }
    
    section img {
        height: 200px;
    }
}