/* Paleta de Colores y Variables */
:root {
    --color-dark-navy: #101f61; 
    --color-royal-blue: #2638ba;
    --color-medium-blue: #376dbc;
    --color-light-blue: #91a0c4;
    --color-white: #ffffff;
    --color-bg-light: #f4f6f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--color-white);
    color: var(--color-dark-navy);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 5%;
    
    position: sticky;
    top: 0;
    background: var(--color-white);
    z-index: 1000;
}


.logo-img {
    height: 50px; /* Mantén esto igual para que la barra no se expanda */
    width: auto;
    display: block;
    
    /* Agrega estas dos líneas: */
    transform: scale(1.6); /* 1.0 es el tamaño normal. 1.8 lo hace 80% más grande */
    transform-origin: left center; /* Obliga a que la imagen crezca hacia la derecha y no se pegue al borde de la pantalla */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark-navy);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-medium-blue);
}

/* Botones */
.btn-primary {
    background-color: var(--color-royal-blue);
    color: var(--color-white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--color-dark-navy);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-royal-blue);
    border: 2px solid var(--color-royal-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--color-light-blue);
    color: var(--color-white);
    border-color: var(--color-light-blue);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-white) 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-dark-navy);
}

.hero-content h1 span {
    color: var(--color-medium-blue);
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(16, 31, 97, 0.1);
}

/* =========================================
   ANIMACIONES DEL HERO
   ========================================= */

/* 1. Animación de entrada (de abajo hacia arriba) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicamos la animación en cascada a los textos */
.hero-content h1 {
    opacity: 0; /* Inicia oculto */
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards; /* El 0.2s es un retraso para que entre después del título */
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards; /* Entra al final */
}

/* 2. Animación Flotante para el Dashboard */
@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); } /* Sube 15 píxeles */
    100% { transform: translateY(0px); }
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(16, 31, 97, 0.15); /* Sombra elegante */
    animation: flotar 4s ease-in-out infinite; /* Animación infinita */
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 5%;
    background-color: var(--color-white);
}

.feature-box {
    background: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--color-light-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(38, 56, 186, 0.1);
    border-color: var(--color-royal-blue);
}

.feature-box h3 {
    margin-bottom: 1rem;
    color: var(--color-dark-navy);
}

/* Footer */
footer {
    background-color: var(--color-dark-navy);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 5% 2rem;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 2rem;
    color: var(--color-light-blue);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--color-light-blue);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* =========================================
   ESTILOS DE LOS ÍCONOS DE SOLUCIONES
   ========================================= */

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto; 
    background-color: rgba(38, 56, 186, 0.1); 
    color: var(--color-royal-blue); 
    border-radius: 50%; 
    transition: all 0.3s ease-in-out; 
}

/* Controla el tamaño del ícono FontAwesome */
.feature-icon i {
    font-size: 32px; /* Usamos font-size en lugar de width/height */
}

/* Efecto al pasar el mouse sobre toda la caja */
.feature-box:hover .feature-icon {
    background-color: var(--color-royal-blue); 
    color: var(--color-white); 
    transform: scale(1.1) rotate(5deg); 
    box-shadow: 0 8px 15px rgba(38, 56, 186, 0.25); 
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    
    /* Ocultamos todos los <li> de la navegación, EXCEPTO el último (el botón) */
    .nav-links li:not(:last-child) {
        display: none;
    }

    

    /* Ajustes del Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column; /* Apila los botones para que se vean bien en móvil */
        gap: 1rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
}