/* ============================================================
   servicios.css - Estilos para la página de servicios
   Loggix - Soluciones digitales a medida con IA
   ============================================================ */

/* ================= VARIABLES Y RESET ================= */
:root {
    --salmon: #1565C0;
    --salmon-dark: #1E88E5;
    --bg-black: #0a0a0f;
    --bg-black-secondary: #111118;
    --bg-card: #1a1a24;
    --border: #2a2a35;
    --text-light: #ffffff;
    --text-muted: #a0a0b0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-black);
    color: var(--text-light);
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(21, 101, 192, 0.12);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--salmon);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-header h2 span {
    color: var(--salmon);
}

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

/* ================= BOTONES ================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--salmon);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background: var(--salmon-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--salmon);
    color: var(--salmon);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* ================= ABOUT US SECTION ================= */
.about-us {
    padding: 8rem 0 6rem;
    background: var(--bg-black-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-light);
}

.about-content h2 span {
    color: var(--salmon);
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--salmon);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.about-image {
    position: relative;
    padding-top: 3rem;
}

.image-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
}

.image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.2), rgba(30, 136, 229, 0.2));
    border-radius: 20px;
}

.image-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.image-content i {
    font-size: 4rem;
    color: rgba(21, 101, 192, 0.7);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.image-content i:nth-child(1) { animation-delay: 0s; }
.image-content i:nth-child(2) { animation-delay: 0.5s; }
.image-content i:nth-child(3) { animation-delay: 1s; }
.image-content i:nth-child(4) { animation-delay: 1.5s; }

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

/* ================= SERVICES DETAILED SECTION - CARRUSEL STACKED ================= */
.services-detailed {
    padding: 6rem 0 1rem;
    background: var(--bg-black);
    position: relative;
    overflow: hidden;
}

.services-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.services-detailed .container {
    position: relative;
    z-index: 1;
}

.services-detailed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(21,101,192,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.services-carousel-wrapper {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.services-carousel-viewport {
    overflow: visible;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
    user-select: none;
}

.services-carousel-viewport:active {
    cursor: grabbing;
}

.services-carousel-track {
    position: relative;
    width: 420px;
    height: 100%;
}

/* ---- Estilo base de cada slide (POSICIÓN ABSOLUTA) ---- */
.carousel-slide.service-detailed-card {
    position: absolute !important;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transform-origin: center center;
    border-radius: 20px;
    padding: 2px;
    background: transparent;
    overflow: visible;
    cursor: pointer;
}

/* Puntos decorativos en las esquinas */
.carousel-slide::before,
.carousel-slide::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(21, 101, 192, 0.5);
    z-index: 20;
    transition: all 0.6s ease;
}

.carousel-slide::before {
    top: 10px;
    left: 10px;
    box-shadow: 0 0 8px rgba(21, 101, 192, 0.3);
}

.carousel-slide::after {
    bottom: 10px;
    right: 10px;
    box-shadow: 0 0 8px rgba(21, 101, 192, 0.3);
}

.carousel-slide .sdc-content::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(21, 101, 192, 0.5);
    box-shadow: 0 0 8px rgba(21, 101, 192, 0.3);
}

/* ---------- Tarjeta ACTIVA (FRENTE, CENTRO) ---------- */
.carousel-slide.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    filter: none;
}

/* ---------- Tarjeta ANTERIOR (detrás, izquierda) ---------- */
.carousel-slide.prev {
    transform: translateX(-100px) translateY(10px) scale(0.9);
    opacity: 0.5;
    filter: blur(1px) brightness(0.6);
    pointer-events: auto;
    z-index: 5;
}

/* ---------- Tarjeta SIGUIENTE (detrás, derecha) ---------- */
.carousel-slide.next {
    transform: translateX(100px) translateY(10px) scale(0.9);
    opacity: 0.5;
    filter: blur(1px) brightness(0.6);
    pointer-events: auto;
    z-index: 5;
}

/* ---------- Tarjeta OCULTA (no visible) ---------- */
.carousel-slide.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.8);
    z-index: 0;
    visibility: hidden;
}

/* Animaciones direccionales */
@keyframes slideFromRight {
    0% {
        transform: translateX(100px) scale(0.9);
        opacity: 0.3;
        filter: blur(3px);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100px) scale(0.9);
        opacity: 0.3;
        filter: blur(3px);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.carousel-slide.active.slide-from-right {
    animation: slideFromRight 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.carousel-slide.active.slide-from-left {
    animation: slideFromLeft 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Hover solo en la tarjeta activa */
.carousel-slide.active:hover {
    transform: translateY(-4px) scale(1);
}

/* Spotlight (luz que sigue al cursor) */
.sdc-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Borde animado que sigue al cursor */
.sdc-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}

/* Contenido de la tarjeta */
.sdc-content {
    position: relative;
    z-index: 3;
    background: rgba(18, 18, 26, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Número decorativo */
.sdc-content::before {
    content: none;
}

.carousel-slide.active:hover .sdc-content {
    border-color: rgba(21, 101, 192, 0.25);
    background: rgba(22, 22, 32, 0.97);
}

.carousel-slide.active:hover .sdc-content::before {
    color: rgba(21, 101, 192, 0.08);
}

/* Icono */
.service-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.service-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.15), rgba(21, 101, 192, 0.05));
    border: 1px solid rgba(21, 101, 192, 0.25);
    border-radius: 18px;
    transform: rotate(8deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-slide.active:hover .service-icon-bg {
    transform: rotate(0deg) scale(1.05);
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.25), rgba(21, 101, 192, 0.1));
    box-shadow: 0 0 20px rgba(21, 101, 192, 0.3);
}

.service-icon-wrapper i {
    position: relative;
    font-size: 2rem;
    color: var(--salmon);
    z-index: 1;
    display: block;
    line-height: 70px;
    text-align: center;
    transition: all 0.3s ease;
}

.carousel-slide.active:hover .service-icon-wrapper i {
    filter: drop-shadow(0 0 8px rgba(21, 101, 192, 0.6));
    transform: scale(1.1);
}

/* Textos */
.service-detailed-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(160, 160, 176, 0.9);
    transition: color 0.2s ease;
}

.service-features span:hover {
    color: var(--text-light);
}

.service-features i {
    color: var(--salmon);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.service-target {
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.15);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: rgba(160, 160, 176, 0.9);
    transition: all 0.3s ease;
    margin-top: auto;
}

.carousel-slide.active:hover .service-target {
    background: rgba(21, 101, 192, 0.12);
    border-color: rgba(21, 101, 192, 0.3);
}

.service-target i {
    color: var(--salmon);
    font-size: 0.9rem;
}

/* Controles del carrusel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    border-color: var(--salmon);
    color: var(--salmon);
    background: rgba(21, 101, 192, 0.12);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-dot.active {
    background: var(--salmon);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(21, 101, 192, 0.6);
}

/* ================= RESPONSIVE CARRUSEL STACKED ================= */
@media (max-width: 1000px) {
    .services-carousel-track {
        width: 380px;
        height: 500px;
    }
    .sdc-content {
        padding: 1.6rem;
    }
    .service-detailed-card h3 {
        font-size: 1.4rem;
    }
    .carousel-slide.prev {
        transform: translateX(-80px) translateY(8px) scale(0.9);
    }
    .carousel-slide.next {
        transform: translateX(80px) translateY(8px) scale(0.9);
    }
}

@media (max-width: 750px) {
    .services-carousel-viewport {
        height: 480px;
    }
    .services-carousel-track {
        width: 330px;
        height: 100%;
    }
    .carousel-slide.prev {
        transform: translateX(-55px) translateY(6px) scale(0.88);
    }
    .carousel-slide.next {
        transform: translateX(55px) translateY(6px) scale(0.88);
    }
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 550px) {
    .services-carousel-viewport {
        height: 460px;
    }
    .services-carousel-track {
        width: 290px;
        height: 100%;
    }
    .carousel-slide.prev {
        transform: translateX(-35px) translateY(5px) scale(0.85);
        opacity: 0.35;
    }
    .carousel-slide.next {
        transform: translateX(35px) translateY(5px) scale(0.85);
        opacity: 0.35;
    }
    .sdc-content {
        padding: 1.3rem;
    }
    .service-detailed-card h3 {
        font-size: 1.2rem;
    }
}

/* ================= IA ENTERPRISE SECTION ================= */
.ia-enterprise {
    padding: 6rem 0 6rem;
    background: var(--bg-black-secondary);
    position: relative;
    overflow: hidden;
}

.ia-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--salmon), transparent);
}

.ia-enterprise::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(21, 101, 192, 0.03) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.ia-enterprise .section-tag {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.15), rgba(21, 101, 192, 0.05));
    border: 1px solid rgba(21, 101, 192, 0.25);
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.ia-enterprise .section-tag:hover {
    border-color: var(--salmon);
    background: rgba(21, 101, 192, 0.2);
    transform: translateY(-2px);
}

.ia-enterprise .section-header {
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.ia-enterprise .section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.ia-enterprise .section-header h2 span {
    position: relative;
    display: inline-block;
}

.ia-enterprise .section-header h2 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(21, 101, 192, 0.25);
    border-radius: 4px;
    z-index: -1;
}

.ia-enterprise .section-header > p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.ia-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.ia-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(10px);
}

.ia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--salmon), #1E88E5, var(--salmon));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.ia-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ia-card:hover {
    transform: translateY(-8px);
    border-color: var(--salmon);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(21, 101, 192, 0.1);
}

.ia-card:hover::before {
    transform: scaleX(1);
}

.ia-card:hover::after {
    opacity: 1;
}

.ia-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.12), rgba(21, 101, 192, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 101, 192, 0.2);
}

.ia-card:hover .ia-icon {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.25), rgba(21, 101, 192, 0.12));
    transform: scale(1.05) rotate(3deg);
    border-color: rgba(21, 101, 192, 0.4);
}

.ia-icon i {
    font-size: 2rem;
    color: var(--salmon);
    transition: transform 0.3s ease;
}

.ia-card:hover .ia-icon i {
    transform: scale(1.1);
}

.ia-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

.ia-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.ia-benefit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 1rem;
    margin-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.ia-benefit span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--salmon);
    background: rgba(21, 101, 192, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.ia-benefit span:hover {
    background: rgba(21, 101, 192, 0.18);
    transform: translateY(-2px);
    color: #1E88E5;
}

.ia-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08), rgba(21, 101, 192, 0.02));
    border-radius: 28px;
    border: 1px solid rgba(21, 101, 192, 0.15);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ia-cta:hover {
    border-color: rgba(21, 101, 192, 0.3);
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.12), rgba(21, 101, 192, 0.04));
    transform: translateY(-3px);
}

.ia-cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.ia-cta strong {
    color: var(--salmon);
    font-weight: 700;
    background: rgba(21, 101, 192, 0.15);
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
}

.ia-cta .btn-primary {
    background: linear-gradient(135deg, var(--salmon), #1E88E5);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.ia-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
}

/* ================= METHODOLOGY SECTION ================= */
.methodology {
    padding: 1rem 0 4rem !important;
    background: var(--bg-black);
    overflow: hidden;
    position: relative;
}

.methodology .container {
    position: relative;
    z-index: 1;
}

.methodology-track {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto 0;
    height: 960px;
    box-sizing: border-box;
}

.mz-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.mz-step {
    position: absolute;
    width: 250px;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    z-index: 1;
}

/* SVG is first child so steps are nth-child 2-6 */
.mz-step:nth-child(2) { left: 14%; top: 20px;  }
.mz-step:nth-child(3) { left: 64%; top: 185px; }
.mz-step:nth-child(4) { left: 14%; top: 350px; }
.mz-step:nth-child(5) { left: 64%; top: 515px; }
.mz-step:nth-child(6) { left: 14%; top: 680px; }

.mz-icon-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.mz-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.7));
    transition: transform 0.4s ease;
    display: block;
}

.mz-step:hover .mz-icon-wrap img {
    transform: translateY(-8px) scale(1.06);
}

.mz-num {
    display: none;
}

.mz-step h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.mz-step h3 span {
    color: var(--salmon);
}

.mz-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 240px;
    margin: 0;
}

/* ================= SUCCESS STORIES SECTION ================= */
.success-stories {
    padding: 6rem 0 6rem;
    background: var(--bg-black-secondary);
}

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

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.story-info {
    padding: 1.5rem;
}

.story-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.story-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.story-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-story {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--salmon);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.btn-story:hover {
    gap: 0.8rem;
}

.stories-cta {
    text-align: center;
}

/* ================= FAQ SECTION ================= */
.faq {
    padding: 6rem 0 6rem;
    background: var(--bg-black);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(21, 101, 192, 0.05);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-light);
}

.faq-question i {
    color: var(--salmon);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.2rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ================= FINAL CTA SECTION ================= */
.cta-final {
    padding: 6rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-black), #1a1a2e);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-content h2 span {
    color: var(--salmon);
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.ia-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.ia-card:nth-child(1) { animation-delay: 0.1s; }
.ia-card:nth-child(2) { animation-delay: 0.2s; }
.ia-card:nth-child(3) { animation-delay: 0.3s; }
.ia-card:nth-child(4) { animation-delay: 0.4s; }
.ia-card:nth-child(5) { animation-delay: 0.5s; }
.ia-card:nth-child(6) { animation-delay: 0.6s; }

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .ia-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .ia-enterprise .section-header h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-content i {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header {
        margin: 0 auto 3rem;
    }
    
    .methodology-track { height: 820px; }
    .mz-step { width: 210px; }
    .mz-step:nth-child(2) { left: 15%; top: 20px;  }
    .mz-step:nth-child(3) { left: 64%; top: 165px; }
    .mz-step:nth-child(4) { left: 15%; top: 310px; }
    .mz-step:nth-child(5) { left: 64%; top: 455px; }
    .mz-step:nth-child(6) { left: 15%; top: 600px; }
    .mz-icon-wrap { width: 140px; height: 140px; }
    .mz-step h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .about-us {
        padding: 6rem 0 4rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin: 0 auto 2.5rem;
    }
    
    .services-detailed {
        padding: 4rem 0;
    }
    
    .ia-enterprise {
        padding: 4rem 0;
    }
    
    .ia-enterprise .section-header {
        margin: 0 auto 2.5rem;
    }
    
    .ia-enterprise .section-header h2 {
        font-size: 1.8rem;
    }
    
    .ia-enterprise .section-header h2 span::after {
        height: 6px;
        bottom: 4px;
    }
    
    .ia-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .ia-card {
        padding: 1.5rem;
    }
    
    .ia-card p {
        font-size: 0.85rem;
    }
    
    .ia-benefit {
        gap: 0.5rem;
    }
    
    .ia-benefit span {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }
    
    .ia-cta {
        margin-top: 2.5rem;
        padding: 2rem;
    }
    
    .ia-cta p {
        font-size: 1rem;
    }
    
    .methodology {
        padding: 4rem 0 5rem;
    }

    .methodology-track { height: 700px; }
    .mz-step { width: 180px; }
    .mz-step:nth-child(2) { left: 13%; top: 10px;  }
    .mz-step:nth-child(3) { left: 62%; top: 140px; }
    .mz-step:nth-child(4) { left: 13%; top: 270px; }
    .mz-step:nth-child(5) { left: 62%; top: 400px; }
    .mz-step:nth-child(6) { left: 13%; top: 530px; }
    .mz-icon-wrap { width: 120px; height: 120px; }
    .mz-step h3 { font-size: 1.2rem; }
    .mz-step p  { font-size: 0.8rem; max-width: 175px; }
    
    .success-stories {
        padding: 4rem 0;
    }
    
    .stories-grid {
        margin-bottom: 2.5rem;
    }
    
    .faq {
        padding: 4rem 0;
    }
    
    .cta-final {
        padding: 4rem 0;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .about-us {
        padding: 5rem 0 3rem;
    }
    
    .service-detailed-card {
        padding: 1.5rem;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-wrapper i {
        font-size: 2rem;
        line-height: 60px;
    }
    
    .ia-enterprise {
        padding: 3rem 0;
    }
    
    .ia-enterprise .section-header h2 {
        font-size: 1.6rem;
    }
    
    .ia-card {
        padding: 1.2rem;
    }
    
    .ia-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .ia-icon i {
        font-size: 1.5rem;
    }
    
    .ia-card h3 {
        font-size: 1.1rem;
    }
    
    .ia-card p {
        font-size: 0.8rem;
    }
    
    .ia-benefit span {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    
    .ia-cta {
        padding: 1.5rem;
    }
    
    .ia-cta p {
        font-size: 0.9rem;
    }
    
    .story-info {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .services-detailed {
        padding: 3rem 0;
    }
    
    .methodology {
        padding: 3rem 0 4rem !important;
    }

    .methodology-track {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .mz-line-svg { display: none; }

    .mz-step {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 280px;
    }

    .mz-icon-wrap { width: 110px !important; height: 110px !important; }
    .mz-step h3 { font-size: 1.1rem; }
    .mz-step p  { font-size: 0.82rem; max-width: 220px; }
    
    .success-stories {
        padding: 3rem 0;
    }
    
    .faq {
        padding: 3rem 0;
    }
    
    .cta-final {
        padding: 3rem 0;
    }
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: var(--salmon);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--salmon-dark);
}