/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --bg-dark: #0F172A;
    --primary-cyan: #22D3EE;
    --white: #FFFFFF;
    --gray-soft: #94A3B8;
    --cta-green: #10B981;
    --cta-orange: #F97316;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan), #06B6D4);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark), #1E293B);

    /* Tipografía */
    --font-primary: 'Space Grotesk', sans-serif;

    /* Espaciado */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --border-radius: 12px;

    /* Sombras */
    --shadow-soft: 0 4px 20px rgba(34, 211, 238, 0.1);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-logo span {
    color: var(--white);
}

.logo-svg {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .nav-logo {
        font-size: 22px;
        letter-spacing: 0.15em;
    }

    .logo-svg {
        height: 35px;
    }

    .logo-svg text {
        font-size: 14px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 18px;
        letter-spacing: 0.1em;
    }

    .logo-svg {
        height: 30px;
    }

    .logo-svg text {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-cyan);
}

.cta-nav {
    background: var(--gradient-primary);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white) !important;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--primary-cyan);
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-soft);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* AI Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-animation {
    width: 400px;
    height: 400px;
    position: relative;
}

.neural-network {
    width: 100%;
    height: 100%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.node {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.node:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.node:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.node:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.node:nth-child(4) {
    bottom: 30%;
    right: 30%;
    animation-delay: 1.5s;
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: flow 3s ease-in-out infinite;
}

.connection:nth-child(5) {
    top: 25%;
    left: 25%;
    width: 50%;
    transform: rotate(15deg);
}

.connection:nth-child(6) {
    top: 50%;
    left: 20%;
    width: 60%;
    transform: rotate(-30deg);
}

.connection:nth-child(7) {
    bottom: 35%;
    left: 30%;
    width: 40%;
    transform: rotate(45deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes flow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Sect
ion Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-soft);
    max-width: 500px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 150px 0 100px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--gray-soft);
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: var(--shadow-strong);
}

.service-card.featured {
    border-color: var(--primary-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card>p {
    color: var(--gray-soft);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-soft);
}

.service-features i {
    color: var(--cta-green);
    font-size: 14px;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-cta:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Cases Section */
.cases {
    padding: var(--section-padding);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.case-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.case-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.case-info span {
    color: var(--gray-soft);
    font-size: 0.9rem;
}

.case-card blockquote {
    font-style: italic;
    color: var(--gray-soft);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.case-card blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-cyan);
    opacity: 0.3;
}

.case-metrics {
    display: flex;
    gap: 30px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray-soft);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--gray-soft);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-feature i {
    color: var(--primary-cyan);
    font-size: 20px;
    margin-top: 5px;
}

.contact-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-feature p {
    color: var(--gray-soft);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-soft);
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.footer-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray-soft);
    margin-bottom: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--gray-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-soft);
}

/* R
esponsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .ai-animation {
        width: 300px;
        height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 40px 0;
        gap: 25px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(34, 211, 238, 0.1);
    }

    .cta-nav {
        margin-top: 10px;
        padding: 15px 30px !important;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 90px 0 20px;
        min-height: auto;
    }

    .hero-container {
        gap: 20px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about {
        padding: 60px 0 60px;
        margin-top: 0px;
        clear: both;
    }

    .about-grid,
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 25px;
        font-size: 15px;
    }

    .case-metrics {
        justify-content: center;
    }

    .ai-animation {
        width: 250px;
        height: 250px;
    }

    .node {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-card,
    .service-card,
    .case-card,
    .contact-form {
        padding: 25px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .ai-animation {
        width: 200px;
        height: 200px;
    }

    .node {
        width: 30px;
        height: 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.fade-in-scale {
    animation: fadeInScale 0.8s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06B6D4;
}

/* Selection */
::selection {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .hero-visual,
    .ai-animation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}