/* Non-Critical Styles - El Código Brasileño LP002 */
/* Loaded asynchronously after critical rendering path */

/* Social Video Section Styles */
.social-video-section {
    padding: 4rem 0;
    background: var(--gradient-dark);
}

.social-video-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.video-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.video-carousel-wrapper {
    overflow: hidden;
    margin: 0 auto;
}

.video-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
}

.video-item {
    flex: 0 0 auto;
    width: 320px;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all var(--transition-normal);
}

.video-item.active {
    opacity: 1;
    transform: scale(1);
}

.video-container-item {
    position: relative;
    aspect-ratio: 9/16;
    background: #1a1a1a;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    background-image: linear-gradient(135deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%, #2a2a2a);
    background-size: 20px 20px;
    animation: shimmer 1s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

.video-container-item[data-thumbnail-loaded] {
    background: #1a1a1a;
    animation: none;
}

@media (min-width: 768px) {
    .video-carousel-track {
        justify-content: center;
    }
    
    .video-item {
        width: 280px;
    }
}

@media (min-width: 1024px) {
    .video-item {
        width: 320px;
    }
}

.social-proof-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.video-container-item.playing .play-button-overlay {
    opacity: 0;
}

.play-button-overlay svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Video Info */
.video-info {
    padding: 1rem 0.5rem;
    text-align: center;
}

.video-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.video-description {
    font-size: 0.875rem;
    color: var(--secondary-yellow);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.video-description .underline {
    text-decoration: underline;
}

.video-description br:first-child+br {
    display: none;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.video-container-item.loading .play-button-overlay {
    display: none;
}

.video-container-item.loading .loading-spinner {
    display: block !important;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

@media (max-width: 768px) {
    .social-video-section {
        padding: 3rem 0;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-prev {
        left: -10px;
    }
    
    .carousel-nav-next {
        right: -10px;
    }
    
    .video-carousel-container {
        padding: 0 1rem;
    }
    
    .video-carousel-track {
        gap: 1rem;
    }
    
    .video-item {
        width: calc(100vw - 4rem);
        max-width: 320px;
    }
    
    .play-button-overlay svg {
        width: 50px;
        height: 50px;
    }
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--secondary-yellow);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.indicator:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
}

.indicator.active {
    background: var(--secondary-yellow);
}

/* Pain Points Section */
.pain-points {
    background: var(--primary-black);
}

.whatsapp-messages {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.whatsapp-message {
    background: #075E54;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0 18px 18px 18px;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(-20px);
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #075E54 transparent transparent;
}

.whatsapp-message strong {
    color: var(--secondary-yellow);
}

.whatsapp-message.animate-in {
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Social Proof Grid */
.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.proof-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.proof-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.proof-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-item.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

/* Authority Section */
.authority {
    background: var(--gradient-dark);
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.results-showcase {
    max-width: 800px;
    margin: 2rem auto;
}

.results-showcase img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

.results-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-highlight .stat-value {
    font-size: 2rem;
    color: var(--secondary-yellow);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Benefits Section */
.benefits {
    background: var(--primary-black);
}

.benefits-list {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-item .check-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-item p {
    margin: 0;
    font-size: 1.125rem;
}

/* Pricing Section */
.pricing {
    background: var(--gradient-dark);
}

.discount-highlight {
    color: var(--secondary-yellow);
    font-size: 120%;
}

.limited-spots {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-box {
    max-width: 800px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--secondary-yellow);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-yellow);
}

.discount-badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
}

.urgency-text {
    color: var(--danger);
    font-weight: 600;
}

.pricing-cta {
    margin: 2rem 0;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
}

.guarantee-box {
    background: rgba(78, 94, 234, 0.1);
    border: 1px solid rgba(78, 94, 234, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.guarantee-box h4 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Founder Story Section */
.founder-story {
    background: var(--primary-black);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-image {
    margin: 2rem 0;
    text-align: center;
}

.story-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.story-text {
    margin: 2rem 0;
}

.story-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.journey-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.journey-images img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Final CTA */
.final-cta {
    padding: 3rem 0;
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta .lead {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
}

.footer-content {
    color: var(--text-tertiary);
}

.footer-logo {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer p {
    margin-bottom: 0.5rem;
    color: var(--text-tertiary);
}

.footer small {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.value-item.animate-in {
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 205, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(255, 205, 0, 0.6);
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--secondary-yellow);
    z-index: 10000;
    transition: width 0.1s ease;
    width: 0%;
}

/* Image Fade In */
img.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments for Non-Critical Sections */
@media (max-width: 768px) {
    .whatsapp-message {
        font-size: 1rem;
    }
    
    .social-proof-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .price-tag {
        flex-wrap: wrap;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .journey-images {
        grid-template-columns: 1fr;
    }
    
    .results-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .pricing-box {
        padding: 1.5rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .whatsapp-message {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-proof-grid {
        gap: 0.5rem;
    }
    
    .pricing-header h3 {
        font-size: 1.25rem;
    }
    
    .old-price {
        font-size: 1.25rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .features-list li {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

/* Hero Animation */
.hero-content > * {
    opacity: 0;
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}