.model-container {
    width: 100%;
    height: 100%;
    display: block;
}

:root {
    --primary: #ff4a4a;
    --secondary: #0f34ff;
    --dark: #000000;
    --light: #ffffff;
    --gray: #f5f5f5;
    --light-gray: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body,
html {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden !important;
    max-width: 100%;
}

/* Header estático */
header {
    background-color: var(--light);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Ocultar botón en escritorio */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
}

.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 2400px;
    /*margin: 0 auto;*/
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.5s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/*.cta-button {
      background: linear-gradient(65deg, var(--dark), var(--primary));
      background-size: 200% 200%;
      color: var(--light);
      padding: 12px 30px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
      transition: all 0.3s ease;
      box-shadow: 0 5px 20px rgba(255, 74, 74, 0.4);
      border: none;
      cursor: pointer;
      animation: gradient 3s ease infinite;
    }*/

.cta-button {
    background: white;
    background-size: 200% 200%;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    /*transition: all 0.3s ease;
      box-shadow: 0 5px 20px rgba(255, 74, 74, 0.4);*/
    border: 1px solid var(--primary);
    cursor: pointer;
    animation: gradient 3s ease infinite;
}

.cta-button:hover {
    /*transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(255, 74, 74, 0.6);*/
    color: var(--light);
    background-color: var(--primary);
    border: none;
}

/* Animaciones personalizadas */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes wave {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }
}

/* Hero Section con efecto de partículas */
.hero {
    padding: 140px 5% 70px;
    display: flex;
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    background: #dcdcdc !important;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 3.7rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary);
    /*text-shadow: 0 5px 15px rgba(255, 74, 74, 0.3);*/
    display: inline-block;
    /*animation: float 3s ease-in-out infinite;*/
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-image-container {
    position: relative;
    /*transition: transform 0.5s ease;
            animation: pulse 4s ease-in-out infinite;*/
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    /*box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);*/
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /*background: linear-gradient(45deg, var(--primary), var(--secondary));*/
    /*filter: blur(20px);*/
    opacity: 0.7;
    /*animation: float 6s ease-in-out infinite;*/
    z-index: -1;
}

.floating-element:nth-child(1) {
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    /*animation-delay: 0s;*/
}

.floating-element:nth-child(2) {
    bottom: 20px;
    right: -20px;
    width: 120px;
    height: 120px;
    /*animation-delay: 2s;*/
}

.hero-stats {
    display: flex;
    margin-top: 25px;
}

.stat-item {
    margin-right: 40px;
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
    /*text-shadow: 0 3px 10px rgba(255, 15, 15, 0.144);*/
    display: block;
}

.stat-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Sección 1 - Qué hacemos */
.what-we-do {
    padding: 40px 5% 40px;
    background-color: white;
}

.what-we-do-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.what-we-do-text h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
}

/*.what-we-do h2 span {
    background-color: var(--primary);
    padding-right: 10px;
}*/

.what-we-do-text h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.what-we-do-text p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.kpis-method p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.8;
}

.kpis-method {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.kpis-method::before {
    content: "21 KPIs";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.148);
    z-index: 1;
}

.kpis-content {
    position: relative;
    z-index: 2;
}

.kpis-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.kpis-content p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.what-we-do-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /*box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);*/
    height: 420px;
}

.what-we-do-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carrusel de servicios continuo */
.services {
    padding: 40px 5% 40px;
    background-color: var(--dark);
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--primary);
    border-radius: 5px;
}

.section-title p {
    color: #bbb;
    max-width: 700px;
    margin: 30px auto 0;
    font-size: 1.2rem;
}

.services-swiper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 350px;
    height: 100%;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(255, 74, 74, 0.4);
    border-color: rgba(255, 74, 74, 0.3);
}

.service-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.service-icon i {
    position: relative;
    z-index: 2;
    /*text-shadow: 0 5px 15px rgba(255, 74, 74, 0.5);*/
}

.service-icon::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    /*background: rgba(255, 74, 74, 0.1);*/
    border-radius: 50%;
    filter: blur(30px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--light);
}

.service-description {
    color: #bbb;
    line-height: 1.8;
    text-align: left;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.service-description.collapsed {
    max-height: 175px;
    /* Aproximadamente 7 líneas */
}

.service-description.expanded {
    max-height: none;
}

.service-description.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.05));
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 15px;
    cursor: pointer;
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(10px);
}

.service-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100%;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #bbb;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Carrusel de clientes continuo */
.clients {
    padding: 40px 5%;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.clients-swiper {
    max-width: 1400px;
    margin: 0px auto;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: var(--light);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.5s ease;
    /*border: 1px solid rgba(0, 0, 0, 0.05);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);*/
    margin: 0 15px;
}

.client-logo:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(15, 52, 255, 0.1);
    background: var(--light);
}

.client-logo img {
    max-width: 100%;
    max-height: 100px;
    /*filter: grayscale(100%);*/
    opacity: 1;
    transition: all 0.5s ease;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Sección de proceso */
.process {
    padding: 40px 5%;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--primary);
    z-index: 0;
}

.step {
    text-align: center;
    width: 20%;
    position: relative;
    z-index: 1;
    padding-left: 20px;
    padding-right: 20px;
}

.step-number {
    width: 100px;
    height: 100px;
    background: white;
    /*border: 3px solid var(--primary);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 30px;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6e9ff 100%);
    color: var(--light);
    transform: scale(1.1);
    /*box-shadow: 0 10px 25px rgba(15, 52, 255, 0.3);*/
}

.step h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.step p {
    color: #555;
    line-height: 1.8;
}

/* Sección 4 - Dashboard en acción */
.dashboard {
    padding: 40px 5%;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.dashboard-text {
    padding: 30px;
    padding-top: 10px;
}

.dashboard-text h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
}

.dashboard-text p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.dashboard-preview {
    background: var(--dark);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    text-align: center;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-mockup {
    width: 50%;
    border-radius: 10px;
    /*display: block;*/
}

.btn-dashboard {
    background: white;
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Sección 5 - Testimonios o resultados */
.results {
    padding: 40px 5% 60px;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    position: relative;
    /*overflow: hidden;*/
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 86, 219, 0.15);
}

.result-value {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-description {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

/* Contacto con efecto de onda */
.contact {
    padding: 150px 5% 100px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.contact-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%230F34FF" opacity="0.05"/></svg>');
    background-size: 1200px 100px;
    animation: wave 12s linear infinite;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    position: relative;
    z-index: 2;
}

.contact-info {
    padding: 40px;
    background: var(--light);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 52, 255, 0.1);
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    color: var(--primary);
}

.contact-info h3:after,
.contact-form h3:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.contact-detail {
    display: flex;
    margin-bottom: 25px;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 52, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p,
.contact-text a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 52, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: rgba(15, 52, 255, 0.03);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(15, 52, 255, 0.1);
    background: rgba(15, 52, 255, 0.05);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, var(--dark), var(--primary));
    background-size: 200% 200%;
    color: var(--light);
    border: none;
    padding: 16px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 74, 74, 0.4);
    width: 100%;
    animation: gradient 3s ease infinite;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 74, 74, 0.6);
}

/* Footer con efecto de partículas */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 40px 5% 30px;
    position: relative;
    overflow: hidden;
}

#footer-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-about {
    transform: translateZ(30px);
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    /*filter: brightness(0) invert(1);*/
}

.footer-about p {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    color: var(--light);
}

.footer-links h4:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        width: 45%;
        margin-bottom: 50px;
    }
}

@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero,
    .services,
    .clients,
    .process,
    .contact {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .hero-content {
        /*flex-direction: column;*/
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .stat-item {
        margin: 0 15px;
    }

    .step {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        /*flex-direction: column;*/
    }

    .stat-item {
        margin: 0 0 20px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    padding-top: 70%;
    /* Proporción del contenedor */
}

.hero-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(45deg, #ef4444, #dc2626);*/
    z-index: 1;
    /* Forma abstracta con 4 bordes desiguales */
    /*border-radius: 50% 20% 30% 70% / 60% 30% 70% 40%;*/
    /* Animación sutil de la forma */
    /*animation: morph 12s ease-in-out infinite;*/
}

.hero-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Aplicamos la misma máscara que el pseudo-elemento */
    /*border-radius: 50% 20% 30% 70% / 60% 30% 70% 40%;*/
    /* Borde sutil */
    /*border: 4px solid rgba(255, 255, 255, 0.1);*/
    /* Efecto de profundidad */
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);*/
    /* Aseguramos que esté sobre el gradiente */
    z-index: 2;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 3;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite 2s;
}

/* Animaciones */
@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    33% {
        border-radius: 50% 60% 70% 40% / 50% 60% 30% 60%;
    }

    66% {
        border-radius: 60% 40% 50% 60% / 70% 50% 60% 40%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Efecto de brillo en el borde al pasar el mouse */
.hero-image-container:hover::before {
    /*filter: blur(2px);*/
    opacity: 0.8;
    /*transition: all 0.3s ease;*/
}

.map-section {
    padding: 40px;
    background: var(--light);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 52, 255, 0.1);
}

.map-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    color: var(--primary);
}

.map-section h3:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.map-tabs {
    display: flex;
    background: rgba(15, 52, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.map-tab {
    padding: 12px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.map-tab.active {
    background: var(--primary);
    color: white;
}

.map-tab:hover:not(.active) {
    background: rgba(15, 52, 255, 0.1);
}

.map-content {
    display: none;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-content.active {
    display: block;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-tabs {
        flex-direction: column;
    }

    .map-content {
        height: 300px;
    }
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgb(255, 255, 255);
    color: #000000;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    margin-left: 10px;
    margin-top: 0px;
    font-size: 10px !important;
    font-weight: normal !important;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    /*top: 50%;
        right: 100%; /* To the left of the tooltip */
    /*margin-top: -5px;*/
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgb(255, 255, 255) transparent transparent;
}

.tooltip .tooltiptext-black {
    background-color: rgb(0, 0, 0) !important;
    color: #ffffff !important;
}

.tooltip .tooltiptext-black::after {
    border-color: transparent rgb(0, 0, 0) transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip .tooltiptextbottom::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    /* At the top of the tooltip */
    left: 80%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.tooltip .tooltiptextright::after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgb(255, 255, 255) transparent transparent;
}

.tooltip .tooltiptextrightdark::after {
    margin-top: -15px !important;
    border-color: transparent rgb(0, 0, 0) transparent transparent !important;
}

@media (max-width: 1400px) {
    /*.navbar,
            .hero-content,
            .what-we-do-content,
            .dashboard-content,
            .footer-content {
                max-width: 95%;
            }*/
}

@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3.3rem;
    }

    .what-we-do-text h2,
    .dashboard-text h2 {
        font-size: 2.3rem;
    }

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        width: 45%;
        margin-bottom: 40px;
    }
}

@media (max-width: 992px) {

    /* Header responsivo */
    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light);
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    /* Botón menú móvil */
    .mobile-menu-btn {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
        color: var(--dark);
    }

    /* Hero section */
    .hero {
        padding: 150px 5% 80px;
        text-align: center;
        /*background-image: url(https://base10.mx/images/Banner_web_01.jpg);*/
        background: #dcdcdc !important;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 25px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 0 auto 30px;
    }

    .hero-stats {
        justify-content: center;
        /*flex-wrap: wrap;*/
    }

    .stat-item {
        margin: 0 20px 20px;
    }

    /* Secciones generales */
    .services,
    .clients,
    .process,
    .contact,
    .dashboard {
        padding: 30px 5% 0px;
    }

    .contact-form {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 2.3rem;
    }

    /* Qué hacemos */
    .what-we-do-content,
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .what-we-do-text h2,
    .dashboard-text h2 {
        font-size: 2rem;
    }

    .kpis-method::before {
        font-size: 3.8rem;
    }

    /* Servicios - ajuste de tarjetas */
    .service-card,
    canvas {
        width: 320px !important;
    }

    /* Proceso */
    .step {
        width: 100%;
        max-width: 300px;
    }

    /* Dashboard */
    .dashboard-preview {
        transform: none;
        border-radius: 20px;
        margin: -60px;
        margin-top: -35px;
        margin-bottom: 30px;
        padding: 0;
    }

    .dashboard-preview:hover {
        transform: translateY(-10px);
    }

    /* Contacto */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-content {
        height: 350px;
    }

    .what-we-do {
        text-align: center;
    }

    .what-we-do-text h2:after {
        left: 50%;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .what-we-do-text h2,
    .dashboard-text h2 {
        font-size: 1.8rem;
    }

    .what-we-do {
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .service-card,
    canvas {
        width: 300px !important;
        margin: 0 10px;
    }

    .client-logo {
        height: 150px;
        padding: 20px;
    }

    .client-logo img {
        max-height: 100px;
    }

    .step-number {
        width: 80px;
        height: 80px;
        font-size: 1.3rem;
    }

    .stat-text {
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 2.3rem;
    }

    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    .map-content {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 5% 60px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.8rem;
    }

    .hero-stats {
        /*flex-direction: column;*/
        align-items: center;
    }

    .stat-item {
        margin: 0 0 25px 0;
        width: 100%;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-text {
        font-size: 0.8rem;
        color: #666;
        font-weight: 500;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 0.8rem;
    }

    .what-we-do-text h2,
    .dashboard-text h2 {
        font-size: 1.6rem;
    }

    .what-we-do-text p,
    .dashboard-text p {
        font-size: 0.8rem;
    }

    .kpis-method {
        padding: 20px;
    }

    .kpis-method::before {
        font-size: 2.8rem;
        top: 10px;
        right: 10px;
    }

    .kpis-content h3 {
        font-size: 1.3rem;
    }

    .service-card,
    canvas {
        width: 280px !important;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .process {
        padding: 30px 5% 0px;
    }

    .step h4 {
        font-size: 1.1rem;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 30px 20px;
    }

    .result-value {
        font-size: 2rem;
    }

    .contact {
        padding: 80px 5% 60px;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 12px;
    }

    .service-card,
    canvas {
        width: 260px !important;
    }

    .client-logo {
        height: 100px;
        padding: 15px;
    }

    .client-logo img {
        max-height: 80px;
    }
}

/* Mejoras específicas para orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 5% 60px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .hero-text {
        margin-bottom: 0;
        text-align: left;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }
}

/* Mejoras de accesibilidad en modo de alto contraste */
@media (prefers-contrast: high) {

    .nav-links a,
    .service-link,
    .footer-links a {
        text-decoration: underline;
    }

    .service-card,
    .result-card,
    .contact-info,
    .contact-form {
        border: 2px solid var(--dark);
    }
}

/* Mejoras para reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos para el botón de menú móvil (añadir al HTML) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Mejoras de tipografía responsive */
html {
    font-size: 14px;
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
}

/* Mejoras de imágenes responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Contenedor principal mejorado */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

/* Mostrar botón en móvil */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .dashboard-text {
        /*display: none;*/
        /* Ocultar menú normal en móvil */
        text-align: center;
    }

    .what-we-do {
        text-align: center;
    }

    .what-we-do-text h2:after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 5px;
        background: var(--primary);
        border-radius: 5px;
    }

    /* (Opcional) Estilos cuando el menú está abierto */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
    }

    header {
        position: absolute !important;

        margin: 0 auto !important;
    }

    .navbar {
        width: 100% !important;
    }
}

/* Nueva Sección - Frameworks */
.frameworks {
    padding: 60px 5% 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.frameworks-content {
    max-width: 1200px;
    margin: 0 auto;
}

.frameworks-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.frameworks-header h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

/*.frameworks h2 span {
    background-color: var(--primary);
    padding-right: 10px;
    padding-left: 10px;
}*/

.frameworks-header h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.frameworks-header p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.frameworks-subtitle {
    font-size: 1rem !important;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.frameworks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.framework-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.framework-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.framework-item h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin: 0;
}

.framework-tag {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.framework-description p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.framework-benefits h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 20px 0 10px;
    position: relative;
    padding-left: 15px;
}

.framework-benefits h4:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.framework-benefits ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.framework-benefits li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
    position: relative;
}

.framework-benefits li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Responsive */
@media (max-width: 768px) {
    .frameworks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .framework-header {
        flex-direction: column;
        gap: 10px;
    }

    .frameworks-header h2 {
        font-size: 2rem;
    }
}