/* ============================================================
   INDEX REDESIGN — Estilos premium para index.php (2024)
   Seguí la Huella - Rediseño completo
   ============================================================ */

/* ===== HERO SECTION ===== */
.idx-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #141e30 50%, #1a2a4a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* navbar height */
}

/* Partículas animadas */
#particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.idx-particle {
    position: absolute;
    animation: idx-float-particle infinite ease-in-out;
    user-select: none;
}

@keyframes idx-float-particle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }

    25% {
        transform: translateY(-25px) rotate(10deg);
        opacity: 0.12;
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.06;
    }

    75% {
        transform: translateY(-35px) rotate(15deg);
        opacity: 0.1;
    }
}

/* Luz ambiental decorativa */
.idx-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.idx-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    bottom: 100px;
    left: -50px;
    pointer-events: none;
    z-index: 0;
}

.idx-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2rem, 4vh, 3rem) clamp(1rem, 3vw, 2rem) clamp(4rem, 8vh, 6rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .idx-hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Badge "plataforma #1" */
.idx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ff9f9f;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
    width: fit-content;
    backdrop-filter: blur(10px);
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 107, 107, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
    }
}

.idx-hero-badge i {
    animation: paw-bounce 1.5s ease-in-out infinite;
}

@keyframes paw-bounce {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

/* Título hero */
.idx-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.idx-hero-highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.idx-hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border-radius: 2px;
    opacity: 0.6;
}

.idx-hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Botones hero */
.idx-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.idx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white !important;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.idx-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.idx-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255, 107, 107, 0.6);
}

.idx-btn-primary:hover::before {
    left: 200%;
}

.idx-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white !important;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.idx-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Pills de acceso rápido */
.idx-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.idx-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.idx-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(78, 205, 196, 0.5);
    color: #4ecdc4 !important;
    transform: translateY(-2px);
}

.idx-pill i {
    font-size: 0.75rem;
    color: #4ecdc4;
}

/* ---- Lado visual del hero ---- */
.idx-hero-visual {
    position: relative;
}

.idx-carousel {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.idx-carousel .carousel-item img {
    height: clamp(300px, 45vh, 480px);
    object-fit: cover;
    width: 100%;
}

.idx-hero-img-fallback img {
    width: 100%;
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Floating badges */
.idx-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2d3436;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: float-wobble 4s ease-in-out infinite;
    z-index: 10;
}

.idx-float-badge i {
    color: #ff6b6b;
}

.idx-float-badge:nth-child(2) i {
    color: #4ecdc4;
}

.idx-float-top {
    top: -15px;
    right: -10px;
    animation-delay: 0s;
}

.idx-float-bottom {
    bottom: -15px;
    left: -10px;
    animation-delay: 2s;
}

@keyframes float-wobble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Wave */
.idx-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

.idx-hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== STATS ===== */
.idx-stats {
    padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem;
    position: relative;
    z-index: 10;
    margin-top: -1px;
    background: #F8F9FA;
}

.idx-stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.idx-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 18px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.idx-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.idx-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.idx-stat-red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.35);
}

.idx-stat-green {
    background: linear-gradient(135deg, #00b894, #00cec9);
    box-shadow: 0 6px 15px rgba(0, 184, 148, 0.35);
}

.idx-stat-blue {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.35);
}

.idx-stat-purple {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.35);
}

.idx-stat-body {
    display: flex;
    flex-direction: column;
}

.idx-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3436;
    line-height: 1;
}

.idx-stat-label {
    font-size: 0.78rem;
    color: #636e72;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ===== ECOSYSTEM GRID ===== */
.idx-ecosystem {
    padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 3vw, 2rem);
    background: white;
}

.idx-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(2.5rem, 5vh, 4rem);
}

.idx-section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 142, 83, 0.12));
    color: #ee5a52;
    border: 1px solid rgba(255, 107, 107, 0.25);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.idx-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #2d3436;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.idx-section-header p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #636e72;
    line-height: 1.7;
}

.idx-ecosystem-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.4rem;
}

.idx-eco-card {
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 240px;
}

.idx-eco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Colores de las tarjetas */
.idx-eco-primary {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0ef 100%);
    border: 1.5px solid rgba(255, 107, 107, 0.2);
}

.idx-eco-teal {
    background: linear-gradient(135deg, #f0fffe 0%, #e5faf9 100%);
    border: 1.5px solid rgba(78, 205, 196, 0.2);
}

.idx-eco-indigo {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede8ff 100%);
    border: 1.5px solid rgba(108, 92, 231, 0.2);
}

.idx-eco-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7d6 100%);
    border: 1.5px solid rgba(255, 206, 84, 0.35);
}

.idx-eco-pink {
    background: linear-gradient(135deg, #fff0f6 0%, #ffe4f0 100%);
    border: 1.5px solid rgba(253, 121, 168, 0.25);
}

.idx-eco-green {
    background: linear-gradient(135deg, #f0fff8 0%, #e3ffef 100%);
    border: 1.5px solid rgba(0, 184, 148, 0.2);
}

.idx-eco-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.idx-eco-primary .idx-eco-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.35);
}

.idx-eco-teal .idx-eco-icon {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.35);
}

.idx-eco-indigo .idx-eco-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.35);
}

.idx-eco-amber .idx-eco-icon {
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    box-shadow: 0 6px 15px rgba(249, 202, 36, 0.4);
}

.idx-eco-pink .idx-eco-icon {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    box-shadow: 0 6px 15px rgba(253, 121, 168, 0.4);
}

.idx-eco-green .idx-eco-icon {
    background: linear-gradient(135deg, #00b894, #00cec9);
    box-shadow: 0 6px 15px rgba(0, 184, 148, 0.35);
}

.idx-eco-content {
    flex: 1;
}

.idx-eco-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.idx-eco-content p {
    font-size: 0.88rem;
    color: #636e72;
    line-height: 1.65;
    margin-bottom: 0;
}

.idx-eco-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: gap 0.2s ease;
    margin-top: 1rem;
}

.idx-eco-primary .idx-eco-link {
    color: #ee5a52;
}

.idx-eco-teal .idx-eco-link {
    color: #44a08d;
}

.idx-eco-indigo .idx-eco-link {
    color: #6c5ce7;
}

.idx-eco-amber .idx-eco-link {
    color: #f0932b;
}

.idx-eco-pink .idx-eco-link {
    color: #e84393;
}

.idx-eco-green .idx-eco-link {
    color: #00b894;
}

.idx-eco-link:hover {
    gap: 0.7rem;
}

/* Background icon decorativo */
.idx-eco-bg-icon {
    position: absolute;
    bottom: -10px;
    right: -5px;
    font-size: 5rem;
    opacity: 0.05;
    pointer-events: none;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.idx-eco-card:hover .idx-eco-bg-icon {
    opacity: 0.08;
    transform: scale(1.1) rotate(10deg);
}

/* ===== STEPS / TIMELINE ===== */
.idx-steps {
    padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 3vw, 2rem);
    background: #F8F9FA;
}

.idx-steps-timeline {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    position: relative;
}

.idx-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.idx-step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    z-index: 2;
}

.idx-step-connector {
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
    z-index: 1;
}

.idx-step:last-child .idx-step-connector {
    display: none;
}

.idx-step-card {
    background: white;
    border-radius: 18px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: all 0.3s ease;
}

.idx-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.2);
}

.idx-step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 142, 83, 0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ff6b6b;
    margin: 0 auto 1rem;
}

.idx-step-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.idx-step-card p {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.6;
    margin: 0;
}

/* ===== JUEGO BANNER ===== */
.idx-game-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
}

.idx-game-banner::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.idx-game-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .idx-game-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.idx-game-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(253, 121, 168, 0.15);
    border: 1px solid rgba(253, 121, 168, 0.35);
    color: #fd79a8;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    width: fit-content;
}

.idx-game-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.idx-game-text p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.idx-game-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.idx-btn-game {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white !important;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(232, 67, 147, 0.4);
    transition: all 0.3s ease;
}

.idx-btn-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(232, 67, 147, 0.55);
}

.idx-game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.idx-game-features span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.idx-game-features i {
    color: #fd79a8;
}

/* Dispositivo visual del juego */
.idx-game-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.idx-game-device {
    background: linear-gradient(135deg, #2d3436, #1e272e);
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    width: min(320px, 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.idx-game-screen {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 18px;
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.idx-game-pet-preview {
    text-align: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    animation: pet-breathe 3s ease-in-out infinite;
}

.idx-game-pet-preview span {
    display: block;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

@keyframes pet-breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.idx-game-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.idx-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
}

.idx-bar-row span {
    width: 65px;
    flex-shrink: 0;
}

.idx-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.idx-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

/* Emojis flotantes del juego */
.idx-game-emoji {
    position: absolute;
    font-size: 1.8rem;
    animation: game-float 4s ease-in-out infinite;
    pointer-events: none;
}

.idx-game-emoji:nth-child(2) {
    animation-delay: 1s;
}

.idx-game-emoji:nth-child(3) {
    animation-delay: 2s;
}

.idx-game-emoji:nth-child(4) {
    animation-delay: 3s;
}

@keyframes game-float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ===== COMMUNITY SECTION ===== */
.idx-community {
    padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 3vw, 2rem);
    background: white;
}

.idx-community-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 1.5rem;
}

.idx-comm-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.idx-comm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.idx-comm-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.idx-comm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.idx-comm-card:hover .idx-comm-img img {
    transform: scale(1.06);
}

.idx-comm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.idx-comm-tag {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0.25rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d3436;
}

.idx-comm-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.idx-comm-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idx-comm-body h3 i {
    color: #ff6b6b;
    font-size: 0.9rem;
}

.idx-comm-body p {
    font-size: 0.88rem;
    color: #636e72;
    line-height: 1.65;
    flex: 1;
}

.idx-comm-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1rem;
    transition: gap 0.2s ease;
}

.idx-comm-card:hover .idx-comm-cta {
    gap: 0.7rem;
}

/* ===== CTA FINAL ===== */
.idx-cta {
    padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
    position: relative;
    overflow: hidden;
}

.idx-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.idx-cta-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.idx-cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.idx-cta-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.idx-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.idx-btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: #ee5a52 !important;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.idx-btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.idx-btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white !important;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.idx-btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Huellas decorativas */
.idx-cta-paws {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.idx-cta-paws i {
    position: absolute;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: rgba(255, 255, 255, 0.1);
    animation: paw-drift 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.idx-cta-paws i:nth-child(1) {
    top: 10%;
    left: 5%;
}

.idx-cta-paws i:nth-child(2) {
    top: 20%;
    right: 8%;
    transform: rotate(45deg);
}

.idx-cta-paws i:nth-child(3) {
    bottom: 15%;
    left: 15%;
    transform: rotate(-30deg);
}

.idx-cta-paws i:nth-child(4) {
    bottom: 25%;
    right: 5%;
    transform: rotate(20deg);
}

.idx-cta-paws i:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: rotate(-15deg);
}

@keyframes paw-drift {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rot, 0deg)) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 15deg)) scale(1.1);
        opacity: 0.15;
    }
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 768px) {

    .idx-float-top,
    .idx-float-bottom {
        display: none;
    }

    .idx-step-connector {
        display: none;
    }

    .idx-steps-timeline {
        grid-template-columns: 1fr;
    }

    .idx-game-emoji {
        font-size: 1.2rem;
    }

    .idx-hero-actions {
        flex-direction: column;
    }

    .idx-btn-primary,
    .idx-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .idx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .idx-stat-item {
        padding: 1rem;
        gap: 0.6rem;
    }

    .idx-stat-number {
        font-size: 1.4rem;
    }

    .idx-stat-label {
        font-size: 0.68rem;
    }
}