/* ========================================
   HERO SECTION - OPTIMIZADO V2 - ALINEACIÓN PERFECTA
   Todos los elementos respetan el mismo contenedor
======================================== */

/* CONTENEDOR PRINCIPAL CON ANCHO MÁXIMO CONSISTENTE */
.hero-content {
    flex: 0 0 480px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Importante: todos los hijos ocupan el ancho completo */
}

/* Hero Badge - Alineado a la izquierda pero dentro del contenedor */
.hero-badge {
    align-self: flex-start; /* Badge pequeño, no full-width */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Título - Full width del contenedor */
.hero-title {
    width: 100%;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Live Stats Inline - FULL WIDTH del contenedor */
.hero-live-stats-inline {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.live-stat-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(26, 26, 46, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: var(--text-gray);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    white-space: nowrap;
}

.live-stat-inline strong {
    color: var(--accent-cyan);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff00;
    flex-shrink: 0;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hero Subtitle - Full width */
.hero-subtitle {
    width: 100%;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-highlight {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* CTA PRIMARY - FULL WIDTH como referencia de ancho */
.hero-cta-primary {
    width: 100%;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.primary-btn-large {
    width: 100%; /* IMPORTANTE: Full width del contenedor */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: linear-gradient(135deg, var(--accent-cyan), #00cc99);
    color: var(--primary-dark);
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 255, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.primary-btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.primary-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(0, 255, 204, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.primary-btn-large:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    flex: 1;
}

.btn-main-text {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sub-text {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: none;
}

.btn-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.primary-btn-large:hover .btn-arrow {
    transform: translateX(5px);
}

/* CTA SECONDARY - Centrado debajo del primario */
.hero-cta-secondary {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.secondary-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.secondary-btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.secondary-btn-text:hover {
    transform: translateX(5px);
    color: var(--text-white);
}

.secondary-btn-text:hover::after {
    width: 100%;
}

/* Trust Badge ENHANCED - FULL WIDTH como el CTA */
.trust-badge-enhanced {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(26, 26, 46, 0.6);
    padding: 1rem 1.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.trustpilot-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-stars {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.rating-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-count {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
}

.trust-platform {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Stats Compact - FULL WIDTH en grid de 3 columnas */
.hero-stats-compact {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 0.5rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-compact:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

.stat-compact .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-cyan);
    line-height: 1;
}

.stat-compact .label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Compatibility Strip - FULL WIDTH */
.compatibility-strip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 204, 0.1);
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

.compatibility-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.os-icon-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.os-icon {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.os-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 255, 204, 0.3));
    transition: all 0.3s ease;
}

.os-icon:hover {
    transform: translateY(-3px);
}

.os-icon:hover img {
    filter: drop-shadow(0 4px 12px rgba(0, 255, 204, 0.6));
}

.os-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.os-icon:hover .os-tooltip {
    opacity: 1;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE OPTIMIZATIONS
======================================== */

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-content {
        flex: 1;
        max-width: 600px; /* Más ancho en tablet */
        width: 100%;
    }
    
    .carousel-3d-container {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Live stats apilados verticalmente */
    .hero-live-stats-inline {
        grid-template-columns: 1fr; /* Una columna en mobile */
        gap: 0.8rem;
    }
    
    .live-stat-inline {
        justify-content: center;
    }
    
    .primary-btn-large {
        padding: 1rem 1.5rem;
    }
    
    .hero-stats-compact {
        gap: 0.8rem;
    }
    
    .stat-compact {
        padding: 0.8rem 0.5rem;
    }
    
    .stat-compact .number {
        font-size: 1.6rem;
    }
    
    .compatibility-strip {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .os-icon-wrapper {
        justify-content: center;
    }
    
    .trust-badge-enhanced {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .primary-btn-large {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    .btn-main-text {
        font-size: 0.95rem;
    }
    
    .btn-sub-text {
        font-size: 0.75rem;
    }

    /* Stats en 2 columnas si es muy pequeño */
    .hero-stats-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .stat-compact:last-child {
        grid-column: 1 / -1; /* El tercero ocupa ambas columnas */
    }
    
    .stat-compact .number {
        font-size: 1.5rem;
    }
    
    .stat-compact .label {
        font-size: 0.75rem;
    }

    .os-icon {
        width: 32px;
        height: 32px;
    }
}