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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

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

/* Header - Mejorado con más espacio */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px; /* Aumentado de 70px a 85px */
}

.nav-brand {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 10px 0; /* Añadido padding vertical */
}

.nav-brand h1 {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Logo sizing - Mejorado */
.brand-logo {
    max-height: 65px; /* Aumentado de tamaño */
    height: auto;
    width: auto;
    max-width: 180px; /* Aumentado el ancho máximo */
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap; /* Evita que el texto se corte en el botón largo */
}

.nav-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.register-btn {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff !important;
    border-radius: 25px;
    padding: 12px 24px; /* Aumentado el padding para el texto más largo */
    font-size: 0.9rem; /* Ligeramente más pequeño para que quepa mejor */
    font-weight: 600;
}

.register-btn:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    transform: translateY(-2px);
}

.logout-btn {
    background: rgba(255, 99, 99, 0.2);
    color: #ff6363 !important;
}

.logout-btn:hover {
    background: rgba(255, 99, 99, 0.3);
}

.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    color: #aaa;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 135px 0 80px; /* Aumentado padding-top para compensar el header más alto */
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.cta-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.cta-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

/* Neural Network Animation */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-network {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00d4ff;
    animation: pulse 2s infinite;
}

.node:nth-child(1) { top: 50px; left: 50px; animation-delay: 0s; }
.node:nth-child(2) { top: 50px; right: 50px; animation-delay: 0.5s; }
.node:nth-child(3) { bottom: 100px; left: 100px; animation-delay: 1s; }
.node:nth-child(4) { bottom: 100px; right: 100px; animation-delay: 1.5s; }
.node:nth-child(5) { bottom: 50px; left: 50%; transform: translateX(-50%); animation-delay: 2s; }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: flow 3s infinite;
}

.connection:nth-child(6) {
    top: 60px;
    left: 70px;
    width: 160px;
    transform: rotate(0deg);
}

.connection:nth-child(7) {
    top: 130px;
    left: 60px;
    width: 120px;
    transform: rotate(45deg);
}

.connection:nth-child(8) {
    top: 130px;
    right: 60px;
    width: 120px;
    transform: rotate(-45deg);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
}

.btn-secondary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Nueva Sección: Use Cases */
.use-cases {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.use-cases .section-title {
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.use-case-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.use-case-card:hover::before {
    transform: translateX(0);
}

.use-case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.2);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.use-case-sector {
    font-size: 0.9rem;
    color: #00d4ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.use-case-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.use-case-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.use-cases-cta {
    text-align: center;
}

/* Nueva Sección: Success Cases */
.success-cases {
    padding: 80px 0;
    background: #fff;
}

.success-cases .section-title {
    color: #333;
    margin-bottom: 20px;
}

.success-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.success-case-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f5f5f5;
    position: relative;
}

.success-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.2);
}

.case-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.case-client {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.client-info {
    flex: 1;
}

.client-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.client-position {
    font-size: 1rem;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 3px;
}

.client-company {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.case-content {
    padding: 35px 30px;
}

.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-challenge, .case-solution {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.case-challenge strong, .case-solution strong {
    color: #333;
    font-weight: 600;
}

.case-results {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
}

.result-metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-testimonial {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
    margin-top: 25px;
}

.success-cases-cta {
    text-align: center;
}

.confidentiality-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
}

.team .section-title {
    color: #fff;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 4px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.member-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 10px;
}

.member-title {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
    font-weight: 500;
}

.member-description {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 25px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #0f0f23;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 65px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-brand h4 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h5 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: #f0f4f8;
}

.video-container {
    text-align: center;
    margin-top: 30px;
}

.video-container video {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px; /* Ajustado para el header más alto */
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    /* Header responsive */
    .nav-container {
        height: 75px;
        padding: 0 20px;
    }

    .brand-logo {
        max-height: 55px;
        max-width: 140px;
    }

    .register-btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .hero {
        padding: 115px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Use cases responsive */
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .use-case-card {
        padding: 30px 25px;
    }

    /* Success cases responsive */
    .success-cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .success-case-card {
        margin-bottom: 20px;
    }

    .case-results {
        flex-direction: column;
        gap: 15px;
    }

    .result-metric {
        padding: 15px 0;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-member {
        padding: 30px 25px;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
        padding: 2px;
    }

    .member-name {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat {
        padding: 20px;
        flex: 1;
        margin: 0 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-container video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Header extra responsive */
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .brand-logo {
        max-height: 50px;
        max-width: 120px;
    }

    .register-btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .hero {
        padding: 105px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Use cases mobile */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .use-case-card {
        padding: 25px 20px;
    }

    .use-case-title {
        font-size: 1.2rem;
    }

    /* Success cases mobile */
    .success-cases-grid {
        grid-template-columns: 1fr;
    }

    .success-case-card {
        margin-bottom: 20px;
    }

    .case-header {
        padding: 25px 20px;
    }

    .case-content {
        padding: 25px 20px;
    }

    .case-client {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .client-avatar {
        width: 70px;
        height: 70px;
    }

    .client-name {
        font-size: 1.2rem;
    }

    .case-title {
        font-size: 1.1rem;
    }

    .case-results {
        padding: 20px 15px;
        gap: 10px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        padding: 25px 20px;
    }

    .member-avatar {
        width: 90px;
        height: 90px;
        padding: 1px;
    }

    .member-skills {
        gap: 8px;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat {
        margin: 0;
    }

    .footer-logo {
        height: 45px;
        max-width: 120px;
    }

    .video-container video {
        max-width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
    }
}