/* --- Hero Section --- */

.hero-section {
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

.hero-content {
   
}

.hero-content h1 {
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-sub {
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 600px;
}

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

.glow-text {
    color: var(--glow);
    text-shadow: 0 0 15px rgba(var(--glow-rgb), 0.4);
}

/* --- Ajuste Mobile --- */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

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

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

/* --- Bloque: About (Contraste Limpio) --- */

.about-section {
    padding: 100px 0;
    background-color: #ffffff; /* Fondo limpio para romper con el Hero negro */
    color: #1a1a1a;
}

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

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); /* Sombra sutil y elegante */
}

.label-marketing {
    display: block;
    color: var(--glow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-text h2 {
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    color: #4a4a4a; /* Gris oscuro para lectura cómoda en fondo blanco */
    margin-bottom: 20px;
    line-height: 1.7;
}

/* --- Ajuste Mobile --- */
@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Estilos para el enlace/botón en el bloque About --- */

.about-text .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    border: 2px solid var(--glow);
    color: var(--glow);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.about-text .btn-secondary:hover {
    background-color: var(--glow);
    color: #ffffff;
}

/* --- Ajuste Mobile --- */
@media (max-width: 768px) {
    .about-text .btn-secondary {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* --- Bloque: Stats Section (Negro de Impacto) --- */

.stats-section {
    background-color: #050505; /* El mismo negro del Hero */
    color: #ffffff;
    padding: 100px 0;
    border-top: 1px solid #1a1a1a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    border-left: 1px solid #1a1a1a; /* Línea divisoria sutil */
}

.stat-item:first-child {
    border-left: none;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--glow); /* El neón resalta increíble sobre el negro */
    margin-bottom: 10px;
}

.stat-item p {
    color: #a0a0a0; /* Un gris neutro para acompañar */
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* --- Ajuste Mobile --- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stat-item {
        border-left: none;
        border-bottom: 1px solid #1a1a1a;
        padding-bottom: 40px;
    }
}


/* --- Bloque: Methodology Section --- */

.methodology-section {
    padding: 100px 0;
    background-color: #ffffff; /* Fondo blanco limpio */
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

/* Aplicamos el color de marca al encabezado */
.methodology-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #000000;
}

/* El elemento clave con tu color de marca */
.methodology-text h2 span {
    color: #00f2ff; /* El azul neón de tu marca */
}

.methodology-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a; /* Un gris profesional, no negro puro */
    margin-bottom: 20px;
}

.methodology-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Bloque: Trust Bar (Bordes Neón de Alto Impacto) --- */

.trust-bar {
    padding: 80px 0;
    background-color: #050505;
    position: relative;
    
    /* Efecto de borde brillante con sombra de luz */
    border-top: 3px solid var(--glow);
    border-bottom: 3px solid var(--glow);
    
    /* El truco del "Glow": box-shadow con color neón */
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3), 
                inset 0 0 10px rgba(0, 242, 255, 0.1);
}

.trust-content {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.trust-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.trust-description {
    color: #d1d1d1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-grid img {
    max-width: 100%;
    height: 55px;
    object-fit: contain;
    /* Filtro para que los logos se vean blancos y brillantes */
    filter: brightness(0) invert(1) opacity(0.6);
    transition: all 0.4s ease;
}

.logo-grid img:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.15);
    /* Pequeño brillo al pasar el mouse sobre el logo */
    drop-shadow(0 0 10px var(--glow));
}

/* --- Ajuste Mobile --- */
@media (max-width: 768px) {
    .trust-bar {
        padding: 50px 20px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

.break-section {
    height: 300px; /* Un respiro de altura */
    background-color: #050505;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animation-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s infinite ease-in-out;
}

/* Retrasos para que no se muevan todos al mismo tiempo */
.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.5s; }
.dot:nth-child(3) { animation-delay: 1s; }
.dot:nth-child(4) { animation-delay: 1.5s; }
.dot:nth-child(5) { animation-delay: 2s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; box-shadow: 0 0 10px var(--glow); }
    50% { transform: scale(2); opacity: 0.8; box-shadow: 0 0 30px var(--glow); }
}

.services-direct-section {
    padding: 100px 0;
    background-color: #ffffff;
    color: #000000;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--glow); /* Tu acento neón en el título */
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    padding: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--glow);
    transform: translateY(-10px);
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

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

/* --- Estilo del botón Ver Más --- */
.btn-more {
    display: inline-block;
    margin-top: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--glow); /* Color principal neón */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

/* Efecto visual: Subrayado que se expande */
.btn-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--glow);
    transition: width 0.3s ease;
}

/* Efecto al pasar el mouse */
.btn-more:hover {
    color: #000000; /* Se vuelve negro al pasar el mouse */
    cursor: pointer;
}

.btn-more:hover::after {
    width: 100%; /* El subrayado llena todo el ancho */
}


.why-us-section {
    padding: 120px 0;
    background-color: #050505;
    color: #ffffff;
    overflow: hidden;
}

.protocol-header {
    text-align: center;
    margin-bottom: 80px;
}

.protocol-header .sub-tag {
    color: var(--glow);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.protocol-header h2 {
    font-size: 3rem;
    margin-top: 15px;
    font-weight: 800;
}

.protocol-header h2 span {
    color: var(--glow);
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Línea central neón */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--glow), var(--glow), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 15px var(--glow);
}

.timeline-item {
    padding: 20px 60px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--glow);
    top: 50%;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--glow);
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item.left .timeline-dot { right: -7px; }
.timeline-item.right .timeline-dot { left: -7px; }

/* Tarjetas */
.timeline-content {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 15px;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--glow);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.timeline-content p {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 1rem;
}

.step-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 242, 255, 0.05);
    position: absolute;
    top: 20px;
    z-index: -1;
}

.timeline-item.left .step-number { left: 40px; }
.timeline-item.right .step-number { right: 40px; }

/* Mobile */
@media (max-width: 768px) {
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; text-align: left !important; }
    .timeline-item.right { left: 0; }
    .timeline-dot { left: 13px !important; }
    .timeline-item.left .step-number { right: 20px; left: auto; }
}


/* --- Bloque: Testimoniales --- */

.testimonials-section {
    padding: 100px 0;
    background-color: #ffffff; /* Fondo blanco para contraste */
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 60px;
    font-weight: 800;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    text-align: left;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* El toque de distinción al pasar el mouse */
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.1);
}

/* Comillas decorativas */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--glow);
    opacity: 0.1;
    font-family: serif;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Info del Autor */
.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glow);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #000;
}

.author-info span {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 30px;
    }
}


/* Estado inicial: invisible y un poco abajo */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Clase que inyectaremos con jQuery para disparar la animación */
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estado inicial para los elementos del About */
.about-image, .about-text {
    opacity: 0;
    transition: all 1s ease-out;
}

/* Dirección del movimiento */
.about-image { transform: translateX(-50px); }
.about-text { transform: translateX(50px); }

/* Clase que activa el movimiento (INYECTADA POR JQUERY) */
.about-wrapper.is-visible .about-image,
.about-wrapper.is-visible .about-text {
    opacity: 1;
    transform: translateX(0);
}

.stat-item {
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Empieza un poco más abajo y contraído */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1); /* Se expande a tamaño real al aparecer */
}

.methodology-visual, .methodology-text {
    opacity: 0;
    position: relative;
}

.trust-title, .trust-description {
    opacity: 0;
    transform: translateY(20px);
}

.logo-grid img {
    opacity: 0;
    transform: scale(0.5);
    filter: grayscale(100%) brightness(0.5);
    transition: all 0.5s ease;
}

.break-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
}

.animation-container {
    display: flex;
    gap: 20px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: #00ffcc; /* Color técnico */
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
}

.service-item {
    opacity: 0;
    /* La perspectiva hace que el giro parezca real */
    transform: perspective(800px) rotateX(-20deg) translateY(50px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-item.is-visible {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* Ocultamos los bloques */
.timeline-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Slide desde los lados según su posición */
.timeline-item.right { transform: translateX(50px); }
.timeline-item.left { transform: translateX(-50px); }

/* Clase que inyectaremos */
.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* La línea central se dibuja */
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #00ffcc; /* Color técnico */
    height: 0; /* Empieza en 0 */
    transition: height 1.5s ease-out;
}

.timeline.is-visible::before {
    height: 100%;
}

.testimonial-card {
    opacity: 0;
    /* Perspectiva para el efecto 3D */
    transform: perspective(1000px) rotateX(10deg) translateY(50px);
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-card.is-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}
.cta-card {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-card.is-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
