/* --- Variables de Color y Fuentes --- */
:root {
    --azul-electrico: #0091EA; /* Un azul más vibrante y moderno */
    --gris-oscuro: #050d17;
    --azul-secundario: #023E7D; /* Un azul oscuro más profundo para contraste */
    --blanco: #FFFFFF;
    --negro: #000000;

    --font-headings: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- Estilos Generales --- */
body {
    font-family: var(--font-body);
    background-color: var(--gris-oscuro);
    color: var(--blanco);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2 {
    font-family: var(--font-headings);
    color: var(--azul-electrico);
}

a {
    color: var(--azul-electrico);
    text-decoration: none;
}

/* --- Header y Hero Section --- */
header {
    background-color: var(--gris-oscuro);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    max-width: 800px;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--azul-electrico);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--azul-electrico);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Estilos para el botón de Agendar Demo */
.nav-cta {
    display: inline-block;
    background: var(--azul-electrico);
    color: var(--blanco) !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 20px;
    border: 2px solid var(--azul-electrico);
}

.nav-cta:hover {
    background: transparent;
    color: var(--azul-electrico) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 145, 234, 0.3);
}

.nav-cta::after {
    display: none !important;
}

/* Ajustes para móvil */
@media (max-width: 992px) {
    .nav-cta {
        margin: 15px 0 0 0;
        display: block;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(5, 13, 23, 0.9), rgba(2, 62, 125, 0.9)), url('https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    padding: 60px 20px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanco);
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    font-family: var(--font-headings);
    background-color: var(--azul-electrico);
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--azul-secundario);
}

/* --- Secciones Principales --- */
main {
    padding: 0 50px;
}

main section {
    padding: 60px 0;
    border-bottom: 1px solid var(--azul-secundario);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    background-color: #0a1a2a;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--azul-electrico);
    text-align: left;
}

/* --- Estilos de la Sección de Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.service-card {
    background-color: rgba(2, 62, 125, 0.2);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--azul-secundario);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 145, 234, 0.1);
}

.service-card h3 {
    font-family: var(--font-headings);
    color: var(--azul-electrico);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: var(--blanco);
}

#creacion-web {
    background-color: #0a1a2a;
    border-radius: 8px;
    padding: 40px 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#creacion-web p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

#creacion-web strong {
    color: var(--azul-electrico);
    font-weight: 700;
}

/* --- Contacto y Footer --- */
.contact-info p {
    font-size: 1.1em;
    margin: 10px 0;
}

/* --- Estilos del Footer --- */
footer {
    background-color: #0a1a2a; /* Fondo azul oscuro como en la página de Casos de Uso */
    color: var(--blanco);
    padding: 60px 0 0;
    margin-top: 80px;
    font-family: var(--font-body);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-electrico), var(--azul-secundario));
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 15px;
}

.footer-links h3, 
.footer-contact h3 {
    color: var(--azul-electrico);
    font-family: var(--font-headings);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--azul-electrico);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--azul-electrico);
    padding-left: 5px;
}

.footer-contact p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--azul-electrico);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
    padding: 0;
}

.social-links a {
    color: var(--blanco) !important;
    background-color: var(--azul-secundario);
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
    width: 42px;
    border: 2px solid transparent;
}

.social-links a:hover {
    color: var(--blanco);
    transform: translateY(-3px);
    border-color: var(--blanco);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Asegurar que los iconos de Font Awesome se muestren correctamente */
.social-links .fab,
.social-links .fas {
    line-height: 1;
    width: 1em;
    text-align: center;
}

.footer-bottom {
    background-color: #0a1a2a;
    padding: 20px 0;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo, 
    .footer-links, 
    .footer-contact {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li:hover {
        transform: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* --- Estilos para el Menú Hamburguesa --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 15px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--blanco);
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, -1px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, 1px);
}

/* --- Estilos de la Sección Por Qué Elegirnos --- */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    text-align: left;
}

.reason-card {
    background-color: #0a1a2a;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--azul-electrico);
}

.reason-card h4 {
    font-family: var(--font-headings);
    color: var(--azul-electrico);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

/* --- Estilo para la tarjeta de oferta especial --- */
.service-card.special-offer {
    background-color: var(--azul-secundario);
    border: 1px solid var(--azul-electrico);
}

.service-card.special-offer .cta-button {
    margin-top: 15px;
    background-color: var(--blanco);
    color: var(--azul-secundario);
}

.service-card.special-offer .cta-button:hover {
    background-color: #e0e0e0;
}


/* --- Animaciones de Scroll --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries para Diseño Responsivo --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--gris-oscuro);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
        padding: 0;
        margin: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: 0.5s;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-links a {
        font-size: 1.2em;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    main {
        padding: 0 20px;
    }

    section h2 {
        font-size: 2em;
    }
}
