:root {
    /* Variables duplicadas removidas (primary, accent, brand-gradient se toman del bloque de abajo) */

    /* Variables únicas de este bloque necesarias para componentes específicos */
    --accent-hover: #06966f;       /* Verde oscuro para hover */

    /* Fondo oscuro auxiliar (usado por marquee, etc.) */
    --primary-dark: #04132e;

    /* Textos */
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #f7fafc;
    --text-white: #ffffff;

    /* Gradientes */
    --brand-gradient-hover: linear-gradient(135deg, #041035 0%, #06966f 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-dark: rgba(6, 28, 107, 0.85);

    /* UI Elements */
    --border-radius: 12px;
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Navegación (Variables únicas para lógica de altura) */
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Body duplicado (removido) */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; }

/* Utilidades de Texto */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-gradient {
    background: #07ba86;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- 2. COMPONENTES UI (Botones) --- */
.btn-brand {
    background: #07ba86;
    color: white;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(7, 186, 134, 0.3);
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-brand::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--brand-gradient-hover);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-brand:hover::before {
    width: 100%;
}

.btn-brand:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 186, 134, 0.4);
    color: white;
}

/* .btn-outline-brand eliminado (no se usa en el HTML) */

.btn-outline-white {
    background: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 10px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
    padding-top: var(--nav-height);
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 5. TECH STACK MARQUEE --- */
.tech-marquee {
    overflow: hidden;
    background: var(--primary-dark, #04132e);
    padding: 3rem 0;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
    color: white;
    font-size: 2.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    opacity: 0.5;
    transition: var(--transition);
    cursor: default;
}

.tech-item i { margin-right: 10px; }

.tech-item:hover { opacity: 1; color: var(--accent-color); transform: scale(1.1); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 6. SECCIONES GENERALES --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(7, 186, 134, 0.1);
    color: var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* --- 8. SERVICIOS --- */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(6, 28, 107, 0.05);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--brand-gradient);
    color: white;
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.service-list li i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 4px;
}        /* --- 10. TESTIMONIOS --- */
.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    position: relative;
    margin-top: 30px;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-size: 5rem;
    color: rgba(7, 186, 134, 0.1);
    position: absolute;
    top: -30px; left: -10px;
    font-family: serif;
}

.client-info img {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 10px;
}

/* --- 11. CONTACTO --- */
.contact-section {
    background: linear-gradient(rgba(6, 28, 107, 0.9), rgba(6, 28, 107, 0.95)), url('https://picsum.photos/seed/alkes-tech/1920/600.jpg') center/cover fixed;
    color: white;
}

.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 50px;
    color: var(--text-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-floating > .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

.form-floating > .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(7, 186, 134, 0.25);
}

.form-floating label {
    color: var(--text-gray);
    padding: 1rem 1.2rem;
}

/* --- 12. TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 1060;
}

.custom-toast {
    background: white;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    animation: slideInRight 0.5s ease;
}

.icon-box.rounded-circle {
    width: 52px;
    height: 52px;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
}


















:root {
    /* Paleta de colores */
    --primary-color: #061c6b;
    --accent-color: #07ba86;
    --secondary-color: #4a5568;
    --light-color: #f8f9fa;
    --dark-color: #1a202c;
    --text-muted: #6c757d;
    --brand-gradient: linear-gradient(135deg, #061c6b 0%, #07ba86 100%);
    --nav-acrylic-bg: rgba(4, 19, 46, 0.72);
    --nav-acrylic-bg-scrolled: rgba(4, 19, 46, 0.90);
    --nav-border: rgba(255, 255, 255, 0.10);
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ----- NAVBAR (HEADER) ----- */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background-color: var(--nav-acrylic-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nav-border);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(6, 28, 107, 0.2);
    background-color: var(--nav-acrylic-bg-scrolled) !important;
}
.navbar-brand {
    color: #fff !important;
    font-weight: 700;
}
.logo-circle {
    width:40px; height:40px; background: var(--brand-gradient); display:flex; align-items:center; justify-content:center; border-radius:50%; margin-right:8px;
}
.nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

/* ----- FOOTER ----- */
.footer {
    background-color: #04132e;
    color: #adb5bd;
    padding: 60px 0 30px;
    border-top: 5px solid var(--accent-color);
}
.footer h5, .footer h6 {
    color: white;
}
.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: var(--accent-color);
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}
.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- 8.5. VALORES (NUEVA SECCIÓN) --- */
.values-section {
    background: #ffffff;
}

.values-grid {
    margin-top: 2.5rem;
}

.values-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.values-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.values-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: transparent;
}

.values-card:hover::before {
    transform: scaleX(1);
}

.values-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.values-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 28, 107, 0.06);
    color: var(--primary-color);
    font-size: 1.6rem;
    transition: var(--transition);
    flex: 0 0 54px;
}

.values-card:hover .values-icon {
    background: var(--brand-gradient);
    color: #fff;
    transform: rotateY(180deg);
}

.values-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.values-desc {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-gray);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.values-list li i {
    color: var(--accent-color);
    margin-top: 3px;
    flex: 0 0 auto;
}