@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0b0f19;
    --text-color: #f1f5f9;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(11, 15, 25, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.activo {
    color: var(--accent-color);
}

/* --- MENÚ DESPLEGABLE --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--header-bg);
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    margin-top: 10px;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px; 
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-content a {
    color: #94a3b8;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.arrow {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- BOTÓN ESPECIAL DE NAVEGACIÓN --- */
.btn-nav {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- MENÚ HAMBURGUESA --- */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- CONTENIDO PRINCIPAL --- */
main {
    flex: 1;
    margin-top: 80px;
    padding: 0; 
    width: 100%;
    max-width: 100%;
}

/* --- SECCIÓN HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.slide.activo {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.6) 0%, rgba(11, 15, 25, 0.9) 100%);
    z-index: 3;
}

.slide-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    padding: 0 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease-in-out 0.3s;
}

.slide.activo .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.3rem;
    color: #f1f5f9;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Controles del Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 3rem; }
.next-btn { right: 3rem; }

.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.activo, .dot:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

/* --- CARACTERÍSTICAS (HILERA DE ÍCONOS) --- */
.features-row {
    background-color: #070a11;
    border-bottom: 1px solid var(--card-border);
    padding: 5rem 0;
    width: 100vw;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem 2rem;
    text-align: center;
}

.feature-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.feature-item:hover .feature-icon {
    background: var(--accent-color);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.feature-item h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- SECCIÓN BLANCA (FONDO CLARO PARA SISTEMAS) --- */
.seccion-blanca {
    background-color: #ffffff;
    width: 100vw;
    padding: 6rem 0;
}

.contenedor-interno {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- TARJETAS DE SOLUCIONES --- */
.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-sistema {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.seccion-blanca .card-sistema {
    background-color: var(--bg-color); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-sistema:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(99, 102, 241, 0.3);
}

.seccion-blanca .card-sistema:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-sistema h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card-sistema p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
}

/* --- FORMULARIO DE REGISTRO --- */
.registro-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.registro-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

.registro-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.registro-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.registro-footer a:hover {
    text-decoration: underline;
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: #070a11;
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 1rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.4s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.2rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: inline-block;
    }

    .dropdown-content {
        position: static;
        display: none;
        background-color: transparent;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px;
        font-size: 1.1rem;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }

    .prev-btn, .next-btn {
        display: none; 
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}