/* Estilos globales para GPSolutions - Versión ultra-moderna y profesional */
/* Mejoras: Sombras profundas, gradientes refinados, animaciones elegantes */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navbar - Más profesional con sombras elegantes */
header {
    background: linear-gradient(90deg, #FFFFFF 0%, #F8F9FA 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #007BFF;
    transform: translateY(-2px);
}

/* Hero - Más profesional con gradientes refinados */
#hero {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 50%, #F8F9FA 100%);
    padding: 80px 0;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    padding: 20px;
    z-index: 1;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #F8F9FA;
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(1deg);
}

/* Secciones generales - Más elegantes */
section {
    padding: 80px 0;
    position: relative;
}

#alianza h2, #alianza h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #007BFF;
    text-shadow: 0 1px 5px rgba(0, 123, 255, 0.3);
}

#alianza p {
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.1rem;
}

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.column {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.column h4 {
    color: #007BFF;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.column h4::before {
    content: '\f0a1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007BFF;
}

.column ul {
    list-style: none;
}

.column ul li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.column ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #007BFF;
}

/* Páginas de navbar - Ultra-profesional con cards modernas */
.page-content {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    position: relative;
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,123,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23tech-pattern)"/></svg>');
    opacity: 0.05;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 50px;
    color: #007BFF;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
    animation: fadeInUp 1s ease-out;
}

.page-content p {
    text-align: center;
    margin-bottom: 50px;
    color: #555;
    font-size: 1.2rem;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007BFF, #0056b3);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    color: #007BFF;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card h3 {
    color: #007BFF;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: #333;
    line-height: 1.7;
    flex-grow: 1;
}

/* Formulario - Más profesional */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.5s ease-out;
}

#contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #007BFF;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 30px;
    border: 2px solid #F8F9FA;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#contact-form input:focus, #contact-form textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
    transform: scale(1.02);
}

#form-message {
    margin-top: 30px;
    text-align: center;
    font-weight: 600;
    color: #007BFF;
    animation: fadeIn 0.5s ease;
}

/* Botones - Más elegantes */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, #007BFF 0%, #0056b3 100%);
    color: #FFFFFF;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.btn:hover {
    background: linear-gradient(90deg, #0056b3 0%, #004085 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.5);
}

/* Footer - Más profesional */
footer {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 50px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007BFF, #0056b3);
}

footer p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

footer a {
    color: #007BFF;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #F8F9FA;
}

/* Responsive - Optimizado para profesionalismo */
@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }
    
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
        width: 200px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .columns, .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    #contact-form {
        padding: 30px;
    }
    
    .card {
        padding: 30px;
    }
    
    .page-content .container {
        flex-direction: column;
    }
}

/* Accesibilidad - Mejorada para profesionalismo */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid #007BFF;
    outline-offset: 3px;
}
/* Fondo azul claro para páginas del navbar */
.page-content {
    background: linear-gradient(135deg, #E3F2FD 0%, #F0F8FF 100%);
}
/* Estilos para el botón hamburguesa */
.hamburger {
    display: none; /* Oculto en desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101; /* Por encima del menú */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animación del hamburguesa al activarse */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mejoras en el menú móvil */
#nav-menu {
    display: flex; /* Visible en desktop */
}

/* Responsive actualizado */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Muestra el botón en móviles */
    }
    
    #nav-menu {
        position: absolute;
        top: 100%; /* Debajo del header */
        right: 0;
        width: 250px; /* Ancho del menú desplegable */
        background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        padding: 20px 0;
        transform: translateX(100%); /* Oculto inicialmente, desliza desde la derecha */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    #nav-menu.active {
        transform: translateX(0); /* Muestra al activarse */
        opacity: 1;
        visibility: visible;
    }
    
    #nav-menu li {
        text-align: center;
        margin: 10px 0;
    }
    
    #nav-menu a {
        padding: 10px 20px;
        display: block;
        color: #000000;
        transition: background 0.3s ease;
    }
    
    #nav-menu a:hover {
        background-color: #E3F2FD; /* Azul claro para hover */
    }
    
    /* Ajustes adicionales para móviles */
    header .container {
        padding: 10px 20px; /* Reduce padding en móviles */
    }
    
    .logo img {
        height: 40px; /* Logo más pequeño */
    }
}