/* =============================================================
   1. VARIABLES Y ESTILOS BASE
   ============================================================= */
:root {
    --primary-blue: #3a86ff;
    --primary-blue-glow: rgba(58, 134, 255, 0.5);
    --dark-bg: #0a0f1e;
    --darker-bg: #050810;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* Fondo dinámico */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(58, 134, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(58, 134, 255, 0.08) 0%, transparent 40%);
    z-index: -1;
}

@keyframes moveMesh {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Transparencia sutil en secciones para ver el fondo */
.valor-entropy,
.services-section,
.value-proposition {
    background-color: var(--dark-bg) !important;
}

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

h1,
h2,
h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.2em;
    letter-spacing: -0.02em;
}

/* =============================================================
   2. COMPONENTES REUTILIZABLES (BOTONES Y ANIMACIONES)
   ============================================================= */
.primary-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.primary-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Animaciones de entrada */
.fade-in,
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================
   3. HEADER Y NAVEGACIÓN (CON ESTADO SCROLLED)
   ============================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.home-page .main-header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(10, 15, 30, 0.8);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}



.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.home-page .main-header:not(.scrolled) .main-nav ul li a {
    color: var(--white);
}

.main-header.scrolled .main-nav ul li a {
    color: var(--text-main);
}

.main-nav ul li a:hover {
    color: var(--primary-blue);
}

.cta-button {
    background-color: #ff6f61 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    text-shadow: none !important;
}

/* Idioma */
#lang-btn {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.home-page .main-header:not(.scrolled) #lang-btn {
    color: white;
    border-color: white;
}

/* =============================================================
   4. HERO SECTION (VIDEO)
   ============================================================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background-color: var(--darker-bg);
}

#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.4;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2 !important;
    background: radial-gradient(circle at center, transparent 0%, var(--darker-bg) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* =============================================================
   5. SECCIÓN NOSOTROS (VALOR ENTROPY)
   ============================================================= */
.valor-entropy {
    padding: 120px 0;
    background-color: var(--darker-bg);
    text-align: center;
}

.valor-intro strong {
    color: var(--primary-blue);
    font-size: 1.4rem;
    display: block;
    margin: 20px 0;
}

.valor-lista {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 50px auto;
    text-align: left;
}

.valor-lista li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.valor-lista li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    filter: drop-shadow(0 0 5px var(--primary-blue-glow));
}

.hero-image img,
.value-image img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img:hover,
.value-image img:hover {
    transform: scale(1.05) rotate(-40deg);
    /* Ajusta según el ángulo original */
}

/* =============================================================
   6. SERVICIOS Y PRODUCTOS (GRID)
   ============================================================= */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* =============================================================
   7. METODOLOGÍA (IZQUIERDA/DERECHA)
   ============================================================= */
.value-proposition {
    padding: 100px 0;
}

.value-proposition .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.value-content {
    flex: 1;
}

.value-image {
    flex: 1;
    text-align: center;
}

.value-image img {
    max-width: 80%;
}

/* =============================================================
   8. CONTACTO Y FOOTER
   ============================================================= */
.contact-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
    background: var(--dark-blue);
    overflow: hidden;
}

#contactVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.main-footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-icons {
    margin: 20px 0;
    font-size: 1.5rem;
}

.social-icons a {
    color: white;
    margin: 0 10px;
}

/* =============================================================
   9. RESPONSIVE (MÓVIL)
   ============================================================= */

/* Botón Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
    width: 30px;
    height: 30px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    /* Cambiado a blanco para visibilidad */
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        display: none;
    }

    .value-proposition .container {
        flex-direction: column;
        text-align: center;
    }

    .value-image img {
        max-width: 60%;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 30, 0.98);
        /* Fondo oscuro premium */
        backdrop-filter: blur(20px);
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1050;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
        text-align: center;
    }

    .main-nav ul li {
        margin: 20px 0;
    }

    .main-nav ul li a {
        color: white !important;
        /* Texto blanco en móvil */
        font-size: 1.5rem;
        font-weight: 600;
    }

    .main-nav ul li a:hover {
        color: var(--primary-blue) !important;
    }

    /* Animación X de hamburguesa */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--primary-blue);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--primary-blue);
    }
}

/* =============================================================
   5. BENTO GRID (SERVICIOS)
   ============================================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 25px;
    margin-top: 50px;
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.bento-card.big {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-card.medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bento-flashlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(58, 134, 255, 0.15),
            transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.bento-card:hover .bento-flashlight {
    opacity: 1;
}

.bento-card i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    z-index: 2;
}

.bento-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
    z-index: 2;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    z-index: 2;
}

.bento-list {
    list-style: none;
    margin-bottom: 25px;
    z-index: 2;
}

.bento-list li {
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.bento-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.bento-card .learn-more {
    z-index: 2;
    align-self: flex-start;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 20px;
    }

    .bento-card.big,
    .bento-card.medium,
    .bento-card {
        grid-column: span 1 !important;
    }

    .bento-card {
        padding: 30px;
    }

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

.learn-more {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 0;
    transition: var(--transition);
}

.learn-more:hover {
    letter-spacing: 1.5px;
    color: var(--dark-blue);
}

.service-card {
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
}

.service-card:hover {
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-10px) scale(0.98);
}

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px;
    margin-bottom: 30px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-blue);
    animation: loading 2.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes loading {
    0% {
        width: 0%;
        left: -0%;
    }

    50% {
        width: 100%;
        left: 0%;
    }

    100% {
        width: 0%;
        left: 100%;
    }
}

/* ==========================================
   SUBPAGES GLOBAL STYLES
   ========================================== */
.inner-page-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--primary-blue-glow) 0%, transparent 70%);
    position: relative;
    z-index: 10;
}

.inner-page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.decor-blur {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.decor-1 {
    top: 10%;
    left: -5%;
}

.decor-2 {
    bottom: 20%;
    right: -5%;
}

/* ==========================================
   EQUIPO PAGE SPECIFIC
   ========================================== */
.team-section {
    background-color: var(--darker-bg) !important;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 0 30px var(--primary-blue-glow);
}

.member-image {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition);
}

.team-member:hover .member-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.member-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.member-role {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-desc {
    line-height: 1.8;
}

/* Why us and Values premium */
.why-us-section,
.valores-equipo-section {
    padding: 100px 0;
    background-color: var(--dark-bg) !important;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.why-card,
.why-list-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.why-list-card ul {
    list-style: none;
}

.why-list-card li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.why-list-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.why-footer {
    text-align: center;
    margin-top: 40px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.valores-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.valor-card-premium {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.valor-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
}

.valor-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    transition: var(--transition);
}

.valor-card-premium:hover .valor-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--primary-blue-glow);
}

@media (max-width: 992px) {
    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .member-image {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

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

}

/* ==========================================
   PRODUCTS SECTION (ASYMMETRIC GRID)
   ========================================== */
.products-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--darker-bg) !important;
}

.products-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-blue-glow);
}

.product-card.featured {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--primary-blue-glow);
}

.product-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.3;
}

.product-benefits {
    margin-bottom: 30px;
}

.product-benefits ul {
    list-style: none;
    margin-top: 10px;
}

.product-benefits li {
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.product-benefits li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.product-subs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.product-subs-grid .product-card h3 {
    font-size: 1.4rem;
}

.decor-3 {
    top: 40%;
    right: -10%;
    background: var(--primary-blue);
    width: 400px;
    height: 400px;
    opacity: 0.1;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   INTERACTIVE METHODOLOGY TIMELINE
   ========================================== */
.methodology-timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 40px;
}

.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    /* Updated by JS */
    background: linear-gradient(to bottom, var(--primary-blue), #5e60ce);
    box-shadow: 0 0 15px var(--primary-blue-glow);
    transition: height 0.3s ease-out;
}

.timeline-step {
    position: relative;
    margin-bottom: 50px;
    padding: 25px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    opacity: 0.6;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step.active {
    opacity: 1;
    background: var(--glass-bg);
    border-color: var(--glass-border);
    backdrop-filter: blur(10px);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-marker {
    position: absolute;
    left: -50px;
    top: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--darker-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 3;
}

.step-marker i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.timeline-step.active .step-marker {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px var(--primary-blue-glow);
    transform: scale(1.2);
}

.timeline-step.active .step-marker i {
    color: white;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.timeline-step.active .step-content h3 {
    color: var(--primary-blue);
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .methodology-timeline {
        padding-left: 30px;
    }

    .step-marker {
        left: -30px;
        width: 24px;
        height: 24px;
    }

    .timeline-line {
        left: 11px;
    }
}


/* ==========================================
   CONOCEMAS PAGE SPECIFIC
   ========================================== */
.history-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.history-text {
    flex: 1.2;
}

.history-visual {
    flex: 0.8;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.history-visual::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-blue);
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.valores-section {
    background-color: var(--dark-bg) !important;
    padding: 100px 0;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.valor {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.valor:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 30px rgba(58, 134, 255, 0.1);
}

.valor i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary-blue-glow));
}

.valor h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.valor p {
    color: var(--text-muted);
}

.decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(58, 134, 255, 0.05);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.circle-1 {
    top: -100px;
    right: -100px;
}

@media (max-width: 992px) {
    .history-grid {
        flex-direction: column;
        text-align: center;
    }
}