/* ========================================
   ESTILOS GENERALES Y VARIABLES
   ======================================== */

:root {
    --primary-color: #00d9ff;
    --secondary-color: #7c3aed;
    --dark-bg: #0a0e27;
    --darker-bg: #050810;
    --light-text: #ffffff;
    --light-gray: #b8bcc4;
    --card-bg: rgba(15, 19, 45, 0.8);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--light-text);
    line-height: 1.6;
}

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

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s;
}

.btn-cta {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.nav-cta {
    padding: 0.8rem 1.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
    padding: 4rem 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.gradient-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d9ff, #7c3aed);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.gradient-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #7c3aed, #ff006e);
    bottom: 100px;
    left: 50px;
    animation-delay: 2s;
}

.gradient-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #00d9ff, #ff006e);
    bottom: -50px;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-50px) translateX(30px);
    }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: scale(1.05);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */

section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SERVICIOS SECTION
   ======================================== */

.servicios {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--dark-bg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.service-card p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.feature-tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* ========================================
   CTA & CONTACTO SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    grid-column: 1 / -1;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    grid-column: 1 / -1;
}

.form-group.checkbox input {
    width: auto;
    padding: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    grid-column: 1 / -1;
}

.form-message {
    grid-column: 1 / -1;
    color: var(--primary-color);
    text-align: center;
    min-height: 1.5rem;
}

/* ========================================
   METODOLOGÍA SECTION
   ======================================== */

.metodologia {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.metodo-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s;
}

.metodo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.metodo-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.metodo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.metodo-card p {
    color: var(--light-gray);
    line-height: 1.8;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.portfolio-content p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* ========================================
   PRECIOS SECTION
   ======================================== */

.precios {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
    transform: scale(1.05);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--light-gray);
    font-size: 0.95rem;
}

.pricing-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
}

.period {
    color: var(--light-gray);
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pricing-features li {
    color: var(--light-gray);
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-pricing:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: rgba(5, 8, 16, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2rem;
    color: var(--light-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.social-link:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ========================================
   ANIMACIONES Y UTILITIES
   ======================================== */

.reveal-text,
.reveal-fade,
.reveal-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-text {
    animation-delay: 0.2s;
}

.reveal-fade {
    animation-delay: 0.4s;
}

.reveal-card {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        background: rgba(10, 14, 39, 0.95);
        padding: 1rem;
        border-radius: 8px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        margin-top: 100px;
        padding: 2rem 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .servicios-grid,
    .metodologia-grid,
    .portfolio-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group textarea,
    .form-group.checkbox,
    .btn-large {
        grid-column: 1;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .service-card h3 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }
}
