/**
 * Home V2 - Vive Aguachica
 * Diseño moderno y llamativo para el inicio
 */

/* === HERO SECTION === */

.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

@media (min-width: 769px) {
    .home-hero {
        padding-top: 60px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

/* Formas flotantes animadas */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    bottom: 30%;
    left: 5%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* Contenido del Hero */
.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

/* Badge "Ya estamos en línea" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título principal */
.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}

.title-highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Botones CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

.cta-primary i {
    font-size: 1.25rem;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.cta-secondary i {
    font-size: 1.25rem;
    color: #fbbf24;
}

/* Scroll hint */
.hero-scroll-hint {
    display: none;
}

/* === WELCOME SECTION === */

.welcome-section {
    background: var(--color-surface, #fff);
    padding: 5rem 0;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.welcome-icon i {
    font-size: 2.5rem;
    color: #ef4444;
}

.welcome-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-text-primary, #1f2937);
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.7;
}

/* Quick Access Cards */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.quick-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-icon i {
    font-size: 1.5rem;
    color: #6366f1;
}

.quick-icon.icon-amber {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.quick-icon.icon-amber i {
    color: #f59e0b;
}

.quick-icon.icon-emerald {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.quick-icon.icon-emerald i {
    color: #10b981;
}

.quick-info {
    flex: 1;
}

.quick-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary, #1f2937);
    margin-bottom: 0.25rem;
}

.quick-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #6b7280);
}

.quick-arrow {
    font-size: 1.25rem;
    color: var(--color-text-tertiary, #9ca3af);
    transition: transform 0.3s ease;
}

.quick-card:hover .quick-arrow {
    transform: translateX(4px);
    color: #6366f1;
}

/* === STATUS BANNER === */

.status-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem 0;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon i {
    font-size: 1.25rem;
    color: #b45309;
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.status-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
}

.status-text span {
    font-size: 0.875rem;
    color: #a16207;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .home-hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-container {
        padding: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-scroll-hint {
        bottom: 1.5rem;
    }
    
    .welcome-section {
        padding: 3rem 0;
    }
    
    .quick-access {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .status-content {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .shape-1, .shape-2, .shape-3, .shape-4 {
        filter: blur(40px);
        opacity: 0.4;
    }
    
    .shape-1 { width: 250px; height: 250px; }
    .shape-2 { width: 200px; height: 200px; }
    .shape-3 { width: 150px; height: 150px; }
    .shape-4 { width: 180px; height: 180px; }
}

/* === DARK MODE === */

@media (prefers-color-scheme: dark) {
    .welcome-section {
        background: #111827;
    }
    
    .welcome-title {
        color: #f9fafb;
    }
    
    .welcome-text {
        color: #9ca3af;
    }
    
    .quick-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .quick-card:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
    
    .quick-info h3 {
        color: #f9fafb;
    }
    
    .quick-info p {
        color: #9ca3af;
    }
    
    .status-banner {
        background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    }
    
    .status-icon {
        background: rgba(251, 191, 36, 0.2);
    }
    
    .status-icon i {
        color: #fbbf24;
    }
    
    .status-text strong {
        color: #fef3c7;
    }
    
    .status-text span {
        color: #fde68a;
    }
}

/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
    .shape,
    .pulse-dot,
    .title-highlight,
    .btn-shine,
    .hero-scroll-hint i {
        animation: none;
    }
    
    .cta-btn:hover,
    .quick-card:hover {
        transform: none;
    }
    
    .hero-badge,
    .hero-title,
    .hero-tagline,
    .hero-cta,
    .hero-scroll-hint {
        animation: none;
        opacity: 1;
    }
}


/* === JOIN SECTION === */

.join-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, var(--color-surface, #fff) 0%, #f8fafc 100%);
}

.join-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.join-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.join-content {
    position: relative;
    z-index: 1;
}

.join-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.join-icon i {
    font-size: 2rem;
    color: #fbbf24;
}

.join-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.join-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.join-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.join-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.join-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.join-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.join-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .join-section {
        padding: 3rem 1rem 4rem;
    }
    
    .join-card {
        padding: 2rem 1.5rem;
    }
    
    .join-actions {
        flex-direction: column;
    }
    
    .join-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .join-section {
        background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    }
}
