/* ===== GLOWFIT MINIMAL LINKS ===== */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores principales GlowFit */
    --primary-green: #103954;
    --secondary-green: #2ecc71;
    --accent-orange: #e8623d;
    
    /* Colores minimalistas */
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Gradientes sutiles */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green) 100%);
    --gradient-card: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    
    /* Sombras minimalistas */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Bordes minimalistas */
    --border-sm: 1px solid var(--gray-200);
    --border-md: 1px solid var(--gray-300);
    
    /* Espaciado consistente */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Transiciones suaves */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    overflow-x: hidden;
    position: relative;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER MINIMALISTA ===== */
.header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 10;
}

/* Logo con efecto WOW */
/* Descomenta para activar el efecto GLOWING RAINBOW */
.logo::before {
    /* Activa estas líneas para el efecto WOW completo */
    /* content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green), var(--accent-orange), var(--primary-green));
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease; */
}

.logo:hover::before {
    opacity: 1;
}

.logo:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 30px rgba(16, 57, 84, 0.3);
}

/* Partículas alrededor del logo */
.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px;
    border-radius: 50%;
    border: 1px solid rgba(16, 57, 84, 0.1);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.05);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

.brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ===== HERO CARD SIMPLE ===== */
.hero-card {
    background: var(--white);
    border-radius: 16px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: var(--border-sm);
    transition: all var(--transition-normal);
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-description {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-sm);
}

.badge i {
    font-size: 0.7rem;
}

/* ===== LINKS SECTION MINIMALISTA ===== */
.links-section {
    flex: 1;
    margin-bottom: var(--space-xl);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ===== LINK ITEMS MINIMALISTAS ===== */
.link-item {
    background: var(--white);
    border: var(--border-sm);
    border-radius: 12px;
    padding: var(--space-lg);
    text-decoration: none;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: width var(--transition-normal);
}

.link-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.link-item:hover::before {
    width: 100%;
}

.link-item:hover::before {
    width: 100%;
}

.link-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 10px;
    transition: all var(--transition-normal);
    color: var(--gray-600);
}

.link-item:hover .link-icon {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.link-item:hover .link-icon {
    background: var(--primary-green);
    transform: scale(1.1);
}

.link-content {
    flex: 1;
}

.link-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--gray-800);
}

.link-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--gray-400);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.link-item:hover .link-arrow {
    color: var(--primary-green);
    transform: translateX(2px);
}

/* ===== FOOTER MINIMALISTA ===== */
.footer {
    text-align: center;
    padding: var(--space-lg) 0;
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: var(--border-sm);
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-info {
    color: var(--gray-500);
}

.copyright {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

.location {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===== MOBILE FIRST OPTIMIZATION ===== */

/* Tablets y móviles grandes */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
        max-width: 100%;
    }
    
    .brand {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    
    .hero-card {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-badges {
        gap: var(--space-xs);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 6px 10px;
        border-radius: 15px;
    }
    
    .link-item {
        padding: var(--space-md);
        gap: var(--space-md);
        min-height: 70px;
    }
    
    .link-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    
    .link-content h3 {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .link-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .link-arrow {
        font-size: 1rem;
    }
    
    /* Optimización del logo para móviles */
    .logo::before {
        display: none; /* Desactivar efectos WOW en móviles */
    }
    
    .logo::after {
        display: none;
    }
    
    .logo:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(16, 57, 84, 0.2);
    }
    
    /* Reducir efectos en móviles */
    .animated-bg .bg-bubble {
        opacity: 0.2;
        animation-duration: 30s;
    }
    
    .mouse-glow {
        display: none; /* Desactivar mouse glow en móviles */
    }
    
    .logo-particle {
        display: none; /* Desactivar partículas en móviles */
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .container {
        padding: var(--space-sm);
        width: 100%;
        min-height: 100vh;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .header {
        padding: var(--space-md) 0;
        margin-bottom: var(--space-lg);
    }
    
    .brand {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .tagline {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        border-width: 1.5px;
    }
    
    .hero-card {
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
        border-radius: 12px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: var(--space-md);
    }
    
    .hero-badges {
        gap: 8px;
        justify-content: center;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 5px 8px;
        border-radius: 12px;
        flex-direction: row;
    }
    
    .badge i {
        font-size: 0.6rem;
        margin-right: 4px;
    }
    
    .links-section {
        margin-bottom: var(--space-lg);
    }
    
    .link-item {
        padding: var(--space-sm);
        gap: var(--space-sm);
        min-height: 65px;
        border-radius: 10px;
    }
    
    .link-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 7px;
    }
    
    .link-content h3 {
        font-size: 0.95rem;
        margin-bottom: 1px;
        font-weight: 600;
    }
    
    .link-content p {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 0;
    }
    
    .link-arrow {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: var(--space-md) 0;
        margin-top: auto;
    }
    
    .social-links {
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-info {
        font-size: 0.8rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
    
    .location {
        font-size: 0.7rem;
    }
    
    /* Mejorar touch targets */
    .link-item:active {
        transform: translateX(2px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .social-link:active {
        transform: translateY(-1px) scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Optimizar animaciones para móviles */
    .animated-bg .bg-bubble {
        opacity: 0.1;
        animation-duration: 40s;
    }
    
    /* Reducir efectos de hover para touch */
    .link-item:hover {
        transform: translateX(2px);
    }
    
    .link-item:hover .link-icon {
        transform: scale(1.05);
    }
}

/* iPhone SE y otros dispositivos pequeños */
@media (max-width: 375px) {
    .container {
        padding: 12px;
    }
    
    .brand {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 55px;
        height: 55px;
        border-radius: 12px;
    }
    
    .hero-card {
        padding: 16px;
    }
    
    .link-item {
        padding: 12px;
        gap: 12px;
        min-height: 60px;
    }
    
    .link-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .link-content h3 {
        font-size: 0.9rem;
    }
    
    .link-content p {
        font-size: 0.7rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 4px 6px;
        border-radius: 10px;
    }
}

/* Orientación landscape en móviles */
@media (max-width: 896px) and (max-height: 480px) and (orientation: landscape) {
    .container {
        min-height: 100vh;
        padding: var(--space-sm);
    }
    
    .header {
        padding: var(--space-sm) 0;
        margin-bottom: var(--space-sm);
    }
    
    .logo {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }
    
    .brand {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .hero-card {
        padding: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-badges {
        gap: 6px;
        margin-bottom: 0;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 4px 6px;
        border-radius: 8px;
    }
    
    .links-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .link-item {
        padding: var(--space-sm);
        min-height: 55px;
        font-size: 0.85rem;
    }
    
    .link-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .link-content h3 {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .link-content p {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .link-arrow {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: var(--space-sm) 0;
    }
    
    .social-links {
        gap: var(--space-xs);
        margin-bottom: var(--space-xs);
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* ===== ESTADOS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ESTADOS DE FOCO ===== */
.link-item:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: var(--space-xs);
}

/* ===== SELECCIÓN DE TEXTO ===== */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Scrollbar optimizado para móviles */
.mobile-device ::-webkit-scrollbar {
    width: 3px;
}

.mobile-device ::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-device ::-webkit-scrollbar-thumb {
    background: rgba(16, 57, 84, 0.3);
    border-radius: 2px;
}

/* ===== FONDO ANIMADO WOW ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    overflow: hidden;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 57, 84, 0.03);
    animation: floatUp 20s infinite ease-in-out;
}

.bg-bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.bg-bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.bg-bubble:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 30s;
}

.bg-bubble:nth-child(4) {
    width: 40px;
    height: 40px;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 22s;
}

.bg-bubble:nth-child(5) {
    width: 120px;
    height: 120px;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 35s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Glow effect sutil */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(46, 204, 113, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 57, 84, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(232, 98, 61, 0.03) 0%, transparent 50%);
    animation: glowMove 15s infinite ease-in-out;
}

@keyframes glowMove {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--gray-900);
        color: var(--gray-300);
    }
    
    .animated-bg {
        background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    }
    
    .hero-card,
    .link-item {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }
    
    .social-link {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }
    
    .brand {
        color: var(--secondary-green);
    }
    
    .link-icon {
        background: var(--gray-700);
    }
    
    .link-content h3 {
        color: var(--gray-200);
    }
    
    /* Dark mode optimizado para móviles */
    .mobile-device .animated-bg .bg-bubble {
        opacity: 0.05;
        background: rgba(46, 204, 113, 0.1);
    }
}

/* ===== EFECTOS SUAVES ===== */
.link-item:active {
    transform: translateX(2px) scale(0.98);
}

.social-link:active {
    transform: translateY(-1px) scale(0.95);
}