:root {
    --primary-color: #0f2b46; /* Azul marino corporativo */
    --secondary-color: #ecf0f1; /* Gris claro */
    --accent-color: #e67e22; /* Naranja construcción para CTAs */
    --text-dark: #333;
    --text-light: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --nav-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section-padding { padding: 100px 0; }

/* BOTONES */
.btn-primary, .btn-block {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-block:hover { background: #d35400; }

.btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover { background: #fff; color: var(--primary-color); }

.btn-block { width: 100%; text-align: center; margin-top: 10px; font-size: 1rem;}

/* HEADER STICKY */
header {
    position: fixed;
    top: 10;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    transition: background 0.4s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo span { color: var(--accent-color); }

.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: #fff; font-weight: 500; font-size: 0.9rem; transition: color 0.3s;}
.nav-links a:hover { color: var(--accent-color); }

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent-color) !important;
}
.btn-nav:hover { background: var(--accent-color); color: #fff !important; }

/* HERO CAROUSEL */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active { opacity: 1; }

.hero-content {
    color: #fff;
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.5); }
.prev { left: 10px; }
.next { right: 10px; }

/* SOCIAL PROOF */
.social-proof {
    background: #f9f9f9;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.social-proof p { font-size: 0.9rem; color: #777; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;}
.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: #aaa;
    font-weight: 700;
    font-size: 1.2rem;
}

/* SECCIONES GENERALES */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--primary-color); margin-bottom: 10px;}

/* BENEFICIOS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* FICHA TECNICA */
.tech-specs { background: #f4f4f4; }
.specs-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.specs-text, .specs-image { flex: 1; min-width: 300px; }

.specs-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}
.specs-text td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.specs-text tr:first-child { border-top: 2px solid var(--primary-color); }

.specs-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* APLICACIONES */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.app-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.app-card:hover img { transform: scale(1.1); }

.app-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 43, 70, 0.9);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.app-card:hover .app-info { transform: translateY(0); }

/* PROYECTOS */
.projects-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.project-item {
    background: #fff;
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    flex: 1;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.project-metric { display: flex; flex-direction: column; margin-bottom: 15px; }
.project-metric .number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.project-metric .label { font-size: 0.8rem; text-transform: uppercase; color: #888; }

/* FAQ ACCORDION */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { margin-bottom: 10px; border-bottom: 1px solid #eee; }
.accordion-header {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--primary-color); }
.accordion-header.active::after { content: '-'; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    color: #555;
}

/* CONTACTO */
.contact { background: var(--primary-color); color: #fff; }
.contact-container { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 15px; }
.info-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }

.contact-form form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    color: var(--text-dark);
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

footer {
    background: #0a1e31;
    color: #777;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links {
        display: none; /* Aquí iría la lógica de menú móvil real, simplificado para este ejemplo */
    }
    .burger { display: block; cursor: pointer;} /* Icono hamburguesa */
    .burger div { width: 25px; height: 3px; background: #fff; margin: 5px; }
}
/* --- BOTÓN SCROLL UP --- */
#scrollUpBtn {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999; /* Asegura que esté sobre todo */
    border: none;
    outline: none;
    background-color: var(--accent-color); /* Naranja corporativo */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Forma circular */
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s, opacity 0.4s;
    opacity: 0; /* Para el efecto de desvanecimiento */
}

#scrollUpBtn:hover {
    background-color: #d35400; /* Naranja más oscuro al pasar el mouse */
    transform: translateY(-5px); /* Pequeño salto al hacer hover */
}

/* Clase para mostrar el botón (controlada por JS) */
#scrollUpBtn.show {
    display: block;
    opacity: 1;
}